Library/models/publisher.go

12 lines
269 B
Go

package models
type Publisher struct {
ID int64 `xorm:"int(11) autoincr not null unique pk"`
Name string `xorm:"varchar(250) not null"`
Created int64 `xorm:"created"`
Updated int64 `xorm:"updated"`
}
func (Publisher) TableName() string {
return "publishers"
}