micro-document/internel/model/members.go

26 lines
1013 B
Go

package model
import (
"time"
"gorm.io/gorm"
)
type Members struct {
Id int32 `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_members_deleted_at;"`
Uuid string `gorm:"column:uuid;type:varchar(256);not null;default:'';comment:uuid"`
Name string `gorm:"column:name;type:varchar(30);not null;default:'';comment:姓名"`
Brief string `gorm:"column:brief;type:varchar(256);not null;default:'';comment:简介"`
Introduction string `gorm:"column:introduction;type:varchar(1024);not null;default:'';comment:详细介绍"`
Sort int32 `gorm:"column:sort;type:int;not null;default:1;comment:排序"`
Operator string `gorm:"column:operator;type:varchar(100);not null;default:'';comment:操作人"`
OperatorID int32 `gorm:"column:operator_id;comment:操作人Id"`
}
func (*Members) TableName() string {
return "members"
}