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.
30 lines
1.1 KiB
Go
30 lines
1.1 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 entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNameLink = "link"
|
|
|
|
// Link mapped from table <link>
|
|
type Link 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"`
|
|
Description string `gorm:"column:description;type:varchar(255);not null" json:"description"`
|
|
Logo string `gorm:"column:logo;type:varchar(1023);not null" json:"logo"`
|
|
Name string `gorm:"column:name;type:varchar(255);not null;index:link_name,priority:1" json:"name"`
|
|
Priority int32 `gorm:"column:priority;type:int;not null" json:"priority"`
|
|
Team string `gorm:"column:team;type:varchar(255);not null" json:"team"`
|
|
URL string `gorm:"column:url;type:varchar(1023);not null" json:"url"`
|
|
}
|
|
|
|
// TableName Link's table name
|
|
func (*Link) TableName() string {
|
|
return TableNameLink
|
|
}
|