31 lines
1.4 KiB
Go
31 lines
1.4 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameGvaAnnouncementsInfo = "gva_announcements_info"
|
|
|
|
// GvaAnnouncementsInfo mapped from table <gva_announcements_info>
|
|
type GvaAnnouncementsInfo struct {
|
|
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
|
|
CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_gva_announcements_info_deleted_at,priority:1" json:"deleted_at"`
|
|
Title string `gorm:"column:title;type:varchar(191);comment:公告标题" json:"title"` // 公告标题
|
|
Content string `gorm:"column:content;type:text;comment:公告内容" json:"content"` // 公告内容
|
|
UserID int64 `gorm:"column:user_id;type:bigint(20);comment:发布者" json:"user_id"` // 发布者
|
|
Attachments string `gorm:"column:attachments;type:json;comment:相关附件" json:"attachments"` // 相关附件
|
|
}
|
|
|
|
// TableName GvaAnnouncementsInfo's table name
|
|
func (*GvaAnnouncementsInfo) TableName() string {
|
|
return TableNameGvaAnnouncementsInfo
|
|
}
|