Files
GoMembership/internal/models/consents.go
2024-09-29 20:58:42 +02:00

18 lines
488 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 uint `gorm:"primaryKey"`
User User
UserID uint
}