18 lines
508 B
Go
18 lines
508 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type User struct {
|
|
ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
|
|
Email string `gorm:"unique;not null" json:"email"`
|
|
PasswordHash string `json:"-"`
|
|
SubscriptionTier string `gorm:"default:'Free'" json:"subscription_tier"`
|
|
IdentityLabel string `json:"identity_label"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|