revert commit & add meta/:id route
This commit is contained in:
parent
b48a610e90
commit
698f3b1a02
3 changed files with 31 additions and 8 deletions
|
@ -32,14 +32,12 @@ type TokenResponse struct {
|
|||
}
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Username string `json:"username"`
|
||||
Blacklisted bool `json:"blacklisted"`
|
||||
Email string `json:"email"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
HashedApiKey string `json:"hashed_api_key"`
|
||||
Role string `json:"role" gorm:"default:'free'"` // free, pro, pro+, admin
|
||||
SubscriptionExpiresAt time.Time `json:"subscription_expires_at"`
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Username string `json:"username"`
|
||||
Blacklisted bool `json:"blacklisted"`
|
||||
Email string `json:"email"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
HashedApiKey string `json:"hashed_api_key"`
|
||||
}
|
||||
|
||||
type AvatarDecorationData struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue