donetick/external/user/model/model.go

15 lines
355 B
Go
Raw Permalink Normal View History

2024-07-01 02:41:41 +01:00
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
}