package model import "time" type TicketNote struct { Noteid int `gorm:"primaryKey;autoIncrement" json:"noteid"` Ticketid int `gorm:"not null" json:"ticketid"` Authorid int `json:"authorid"` Content string `gorm:"type:text;not null" json:"content"` Createtime time.Time `json:"createtime"` } func (TicketNote) TableName() string { return "ticket_note" }