package dao

import (
	"wails-app/internal/global"
	"time"
)

type Owner struct {
	global.GVA_MODEL
	OwnerName     string    `gorm:"size:50;" json:"owner_name"`
	OwnerSurname  string    `gorm:"size:50;" json:"owner_surname"`
	OwnerPhone    string    `gorm:"size:20;" json:"owner_phone"`
	Vehicles      []Vehicle `gorm:"foreignKey:OwnerId" json:"vehicles"`
	IsVip         bool      `gorm:"size:1;" json:"is_vip"`
	VipExpireTime time.Time `json:"vip_expire_time"  gorm:"default:null"`
}

func (Owner) TableName() string {
	return "owner"
}
