13 lines
300 B
Go
13 lines
300 B
Go
package models
|
|
|
|
type Author struct {
|
|
ID int64 `xorm:"int(11) autoincr not null unique pk"`
|
|
Forename string `xorm:"varchar(250)"`
|
|
Lastame string `xorm:"varchar(250) not null"`
|
|
Created int64 `xorm:"created"`
|
|
Updated int64 `xorm:"updated"`
|
|
}
|
|
|
|
func (Author) TableName() string {
|
|
return "authors"
|
|
} |