Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notes ¶
func Notes() orm.QuerySeter
Types ¶
type Note ¶
type Note struct { Id int `orm:"auto;pk" json:"id"` UserId int `orm:"column(user_id);index" json:"user_id"` Content string `orm:"size(1024)" json:"content"` Done int8 `orm:"type(tinyint)" json:"done"` DoneAt time.Time `orm:"null;type(datetime);column(done_at)" json:"done_at"` CreateAt time.Time `orm:"auto_now_add;type(datetime);column(create_at)" json:"create_at"` }
func (*Note) TableEngine ¶
type User ¶
type User struct { Id int `orm:"auto;pk"` Name string `orm:"size(64);unique;index"` Email string `orm:"size(64);unique;index"` Password string `orm:"size(64);null"` Portrait string `orm:"null"` Blocked int8 `orm:"type(tinyint)"` CreateAt time.Time `orm:"auto_now_add;type(datetime);column(create_at)"` }
func FindUserByEmail ¶
func FindUserByName ¶
func (*User) TableEngine ¶
Click to show internal directories.
Click to hide internal directories.