15 lines
500 B
Go
15 lines
500 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Consent struct {
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
FirstName string `gorm:"not null" json:"first_name" validate:"safe_content"`
|
|
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"`
|
|
}
|