From 55240fdbfa2922bbbb5c06105b1f9160f8ab9aed Mon Sep 17 00:00:00 2001 From: it512 Date: Wed, 25 Dec 2024 15:21:37 +0800 Subject: [PATCH] last user ts --- card/orm/schema/card.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/card/orm/schema/card.go b/card/orm/schema/card.go index 354ddbf..1169cac 100644 --- a/card/orm/schema/card.go +++ b/card/orm/schema/card.go @@ -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秒