mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +08:00
fix: 索引长度
This commit is contained in:
parent
2a995a5da2
commit
a5e0f86c65
@ -11,8 +11,8 @@ import (
|
|||||||
type QuotaData struct {
|
type QuotaData struct {
|
||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
UserID int `json:"user_id" gorm:"index"`
|
UserID int `json:"user_id" gorm:"index"`
|
||||||
Username string `json:"username" gorm:"index:idx_qdt_model_user_name,priority:2;default:''"`
|
Username string `json:"username" gorm:"index:idx_qdt_model_user_name,priority:2;size:100;default:''"`
|
||||||
ModelName string `json:"model_name" gorm:"index;index:idx_qdt_model_user_name,priority:1;default:''"`
|
ModelName string `json:"model_name" gorm:"index;index:idx_qdt_model_user_name,priority:1;size:100;default:''"`
|
||||||
CreatedAt int64 `json:"created_at" gorm:"bigint;index:idx_qdt_created_at,priority:2"`
|
CreatedAt int64 `json:"created_at" gorm:"bigint;index:idx_qdt_created_at,priority:2"`
|
||||||
Count int `json:"count" gorm:"default:0"`
|
Count int `json:"count" gorm:"default:0"`
|
||||||
Quota int `json:"quota" gorm:"default:0"`
|
Quota int `json:"quota" gorm:"default:0"`
|
||||||
|
Loading…
Reference in New Issue
Block a user