moved db indices to uint
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Consent struct {
|
||||
CreatedAt time.Time
|
||||
@@ -9,6 +11,7 @@ type Consent struct {
|
||||
LastName string `gorm:"not null" json:"last_name" validate:"safe_content"`
|
||||
Email string `json:"email" validate:"email,safe_content"`
|
||||
ConsentType string `gorm:"not null" json:"consent_type" validate:"safe_content"`
|
||||
ID int64 `gorm:"primaryKey"`
|
||||
UserID int64 `gorm:"not null" json:"user_id"`
|
||||
ID uint `gorm:"primaryKey"`
|
||||
User User
|
||||
UserID uint
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user