25 lines
1002 B
Go
25 lines
1002 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type BoardOfDirectors struct {
|
|
Id int32 `gorm:"primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_board_of_directors_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:姓名"`
|
|
Status int32 `gorm:"column:status;type:int;not null;default:2;comment:状态:1上架 2 下架"`
|
|
Brief string `gorm:"column:brief;type:varchar(256);not null;default:'';comment:简介"`
|
|
Introduction string `gorm:"column:introduction;type:varchar(1024);not null;default:'';comment:详细介绍"`
|
|
IsSetting int32 `gorm:"column:is_setting;type:int;not null;default:0;comment:是否设置:0 否 1 是"`
|
|
}
|
|
|
|
func (*BoardOfDirectors) TableName() string {
|
|
return "board_of_directors"
|
|
}
|