aboutsummaryrefslogtreecommitdiffstats
path: root/external/user/model/model.go
blob: d132e68b5cfe836c89ab7a870987c20f3f0f57c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}