revert commit & add meta/:id route

This commit is contained in:
grngxd 2025-07-31 22:46:34 +01:00
parent b48a610e90
commit 698f3b1a02
3 changed files with 31 additions and 8 deletions

View file

@ -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 {