add storage types
This commit is contained in:
@@ -8,15 +8,16 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"backend/database/fields"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Storages struct {
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
IsDefault bool `json:"is_default"`
|
||||
Name string `json:"name"`
|
||||
Type int16 `json:"type"`
|
||||
Config string `json:"config"`
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
IsDefault bool `json:"is_default"`
|
||||
Name string `json:"name"`
|
||||
Type fields.StorageType `json:"type"`
|
||||
Config string `json:"config"`
|
||||
}
|
||||
|
||||
@@ -11,3 +11,6 @@ types:
|
||||
|
||||
user_oauths:
|
||||
channel: AuthChannel
|
||||
|
||||
storages:
|
||||
type: StorageType
|
||||
|
||||
Reference in New Issue
Block a user