Skip to content

Commit

Permalink
last user ts
Browse files Browse the repository at this point in the history
  • Loading branch information
it512 committed Dec 25, 2024
1 parent d298daa commit 55240fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions card/orm/schema/card.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func (Card) Fields() []ent.Field {
Optional().
Nillable(),

// 最后一次使用时间戳
field.Int64("last_use_ts").Default(0),

// 清算后的余额,单位分,清算脚本设置
field.Int64("last_clean_balance").Immutable().Default(0),
// 最后一次清算时间戳,到1/1000秒
Expand Down

0 comments on commit 55240fd

Please sign in to comment.