Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { ID uint64 `json:"id" xorm:"not null pk autoincr BIGINT(20) id"` Amount int `json:"amount" xorm:"not null DECIMAL(10,2) amount"` Kind string `json:"type" xorm:"not null VARCHAR(10) kind"` TagId uint64 `json:"tag_id" xorm:"not null BIGINT(20) tag_id"` UserId uint64 `json:"user_id" xorm:"not null BIGINT(20) user_id"` HappenedAt time.Time `json:"happened_at" xorm:"not null DATETIME happened_at"` CreatedAt time.Time `json:"-" xorm:"created TIMESTAMP created_at"` UpdatedAt time.Time `json:"-" xorm:"updated TIMESTAMP updated_at"` }
type Tag ¶
type Tag struct { ID uint64 `xorm:"not null pk autoincr BIGINT(20) id" json:"id"` Name string `xorm:"not null VARCHAR(30) name" json:"name"` Kind string `xorm:"not null VARCHAR(10) kind" json:"kind"` Sign string `xorm:"not null CHAR(1) sign" json:"sign"` UserId uint64 `xorm:"not null BIGINT(20) user_id" json:"user_id"` CreatedAt time.Time `xorm:"created TIMESTAMP created_at" json:"created_at"` UpdatedAt time.Time `xorm:"updated TIMESTAMP updated_at" json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.