mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
936 B
Go
26 lines
936 B
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 entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNamePostCategory = "post_category"
|
|
|
|
// PostCategory mapped from table <post_category>
|
|
type PostCategory struct {
|
|
ID int32 `gorm:"column:id;type:int;primaryKey;autoIncrement:true" json:"id"`
|
|
CreateTime time.Time `gorm:"column:create_time;type:datetime;not null" json:"create_time"`
|
|
UpdateTime *time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
|
|
CategoryID int32 `gorm:"column:category_id;type:int;not null;index:post_category_category_id,priority:1" json:"category_id"`
|
|
PostID int32 `gorm:"column:post_id;type:int;not null;index:post_category_post_id,priority:1" json:"post_id"`
|
|
}
|
|
|
|
// TableName PostCategory's table name
|
|
func (*PostCategory) TableName() string {
|
|
return TableNamePostCategory
|
|
}
|