add device token

This commit is contained in:
2025-12-19 11:07:31 +03:30
parent 74e8480a68
commit 10178de7c1
10 changed files with 2078 additions and 0 deletions

View File

@@ -590,6 +590,10 @@ namespace GreenHome.Infrastructure.Migrations
b.Property<int>("DeviceId")
.HasColumnType("int");
b.Property<string>("DevicePhoneNumber")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<decimal?>("Latitude")
.HasColumnType("decimal(9,6)");
@@ -616,9 +620,24 @@ namespace GreenHome.Infrastructure.Migrations
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int?>("SimCardType")
.HasColumnType("int");
b.Property<string>("TokenCode")
.HasColumnType("nvarchar(max)");
b.Property<DateTime?>("TokenExpiresAt")
.HasColumnType("datetime2");
b.Property<DateTime>("UpdatedAt")
.HasColumnType("datetime2");
b.Property<int>("UploadIntervalMin")
.HasColumnType("int");
b.Property<string>("VerificationCode")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("DeviceId")