2025-03-15 15:51:18 +08:00

26 lines
764 B
Go

package models
import (
"time"
)
type MemberRegistrationDB struct {
ID string `gorm:"column:id;primary_key"`
Token string `gorm:"column:token;unique_index"`
Name string `gorm:"column:name"`
Email string `gorm:"column:email"`
Phone string `gorm:"column:phone"`
BirthDate time.Time `gorm:"column:birth_date"`
OTP string `gorm:"column:otp"`
Status string `gorm:"column:status"`
ExpiresAt time.Time `gorm:"column:expires_at"`
CreatedAt time.Time `gorm:"column:created_at"`
UpdatedAt time.Time `gorm:"column:updated_at"`
BranchID int64 `gorm:"column:branch_id"`
CashierID int64 `gorm:"column:cashier_id"`
}
func (MemberRegistrationDB) TableName() string {
return "member_registrations"
}