File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type DropConfig struct {
1515 DropTime string `gorm:"type:time;not null"` // "09:00:00"
1616 Timezone string `gorm:"type:varchar(50);not null"`
1717 Confidence int16 `gorm:"type:smallint;not null;default:0"`
18- LastVerifiedAt * time.Time `gorm:"type:timestampz "`
18+ LastVerifiedAt * time.Time `gorm:"type:timestamptz "`
1919
2020 CreatedBy * uuid.UUID `gorm:"type:uuid"`
2121 LastUpdatedBy * uuid.UUID `gorm:"type:uuid"`
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type Reservation struct {
1414
1515 Platform Platform `gorm:"type:varchar(50);not null"`
1616 ConfirmationCode * string `gorm:"type:varchar(255)"`
17- ReservationAt string `gorm:"type:timestampz ;not null;index:idx_reservation_user_at"`
17+ ReservationAt string `gorm:"type:timestamptz ;not null;index:idx_reservation_user_at"`
1818 PartySize int16 `gorm:"type:smallint;not null"`
1919
2020 // Relations
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ type User struct {
1212 PasswordHash * string `gorm:"type:varchar(255)"`
1313
1414 // OIDC fields
15- OIDCProvider * string `gorm:"type:varchar(50);index:idx_users_oidc,where:oidc_provider IS NOT NULL"`
16- OIDCSubject * string `gorm:"type:varchar(255);index:idx_users_oidc,where:oidc_provider IS NOT NULL"`
15+ OIDCProvider * string `gorm:"column:oidc_provider; type:varchar(50);index:idx_users_oidc,where:oidc_provider IS NOT NULL"`
16+ OIDCSubject * string `gorm:"column:oidc_subject; type:varchar(255);index:idx_users_oidc,where:oidc_provider IS NOT NULL"`
1717
1818 // Relations
1919 NotificationPreferences * UserNotificationPreferences `gorm:"foreignKey:UserID;constraint:OnDelete:CASCADE"`
You can’t perform that action at this time.
0 commit comments