16 lines
503 B
Go
16 lines
503 B
Go
package model
|
|
|
|
type InviteCode struct {
|
|
ID int `gorm:"primaryKey;column:id" json:"id"`
|
|
UserID int `gorm:"column:user_id" json:"user_id"`
|
|
Code string `gorm:"column:code" json:"code"`
|
|
Status bool `gorm:"column:status" json:"status"`
|
|
PV int `gorm:"column:pv" json:"pv"`
|
|
CreatedAt int64 `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt int64 `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
func (InviteCode) TableName() string {
|
|
return "v2_invite_code"
|
|
}
|