aboutsummaryrefslogtreecommitdiffstats
path: root/external/user/model
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-06-30 21:41:41 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-06-30 21:41:41 -0400
commitc13dd9addbf89f716e4ef5cfdf1d673139ffcb68 (patch)
treebc09646ce1d6d3a402abb4694e19da51b57204f6 /external/user/model
downloaddonetick-c13dd9addbf89f716e4ef5cfdf1d673139ffcb68.tar.gz
donetick-c13dd9addbf89f716e4ef5cfdf1d673139ffcb68.tar.bz2
donetick-c13dd9addbf89f716e4ef5cfdf1d673139ffcb68.zip
Move to Donetick Org, first commit
Diffstat (limited to 'external/user/model')
-rw-r--r--external/user/model/model.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/external/user/model/model.go b/external/user/model/model.go
new file mode 100644
index 0000000..d132e68
--- /dev/null
+++ b/external/user/model/model.go
@@ -0,0 +1,14 @@
+package model
+
+import (
+ "time"
+
+ uModel "donetick.com/core/internal/user/model"
+)
+
+type UserExtended struct {
+ uModel.User
+ Credit int `gorm:"column:amount;->"`
+ SubscriptionStatus *string `gorm:"column:status;<-:false"` // read one column
+ ExpiredAt *time.Time `gorm:"column:expired_at;<-:false"` // read one column
+}