|
@@ -1,9 +1,9 @@
|
|
|
package model
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
|
+ "encoding/json"
|
|
|
"one-api/common"
|
|
"one-api/common"
|
|
|
|
|
|
|
|
- "gorm.io/datatypes"
|
|
|
|
|
"gorm.io/gorm"
|
|
"gorm.io/gorm"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -18,7 +18,7 @@ type PrefillGroup struct {
|
|
|
Id int `json:"id"`
|
|
Id int `json:"id"`
|
|
|
Name string `json:"name" gorm:"size:64;not null;uniqueIndex:uk_prefill_name,where:deleted_at IS NULL"`
|
|
Name string `json:"name" gorm:"size:64;not null;uniqueIndex:uk_prefill_name,where:deleted_at IS NULL"`
|
|
|
Type string `json:"type" gorm:"size:32;index;not null"`
|
|
Type string `json:"type" gorm:"size:32;index;not null"`
|
|
|
- Items datatypes.JSON `json:"items" gorm:"type:json"`
|
|
|
|
|
|
|
+ Items json.RawMessage `json:"items" gorm:"type:json"`
|
|
|
Description string `json:"description,omitempty" gorm:"type:varchar(255)"`
|
|
Description string `json:"description,omitempty" gorm:"type:varchar(255)"`
|
|
|
CreatedTime int64 `json:"created_time" gorm:"bigint"`
|
|
CreatedTime int64 `json:"created_time" gorm:"bigint"`
|
|
|
UpdatedTime int64 `json:"updated_time" gorm:"bigint"`
|
|
UpdatedTime int64 `json:"updated_time" gorm:"bigint"`
|