chore: correct namespaces and hiearchy

This commit is contained in:
2026-01-31 02:16:32 -05:00
parent 56d393e127
commit 19e2c22111
136 changed files with 1366 additions and 1404 deletions

View File

@@ -0,0 +1,28 @@
namespace TrackQrApi.Models;
public enum EventType
{
Click,
Scan
}
public class Event
{
public long Id { get; set; }
public Guid WorkspaceId { get; set; }
public Guid ShortLinkId { get; set; }
public Guid? QRCodeId { get; set; }
public EventType Type { get; set; }
public DateTime Timestamp { get; set; }
public string? IpHash { get; set; }
public string? UserAgent { get; set; }
public string? Referrer { get; set; }
public string? CountryCode { get; set; }
public string? DeviceType { get; set; }
public string? DedupeKey { get; set; }
// Navigation properties
public Workspace Workspace { get; set; } = null!;
public ShortLink ShortLink { get; set; } = null!;
public QRCodeDesign? QRCode { get; set; }
}