add storage types

This commit is contained in:
Rogee
2025-01-10 17:51:36 +08:00
parent 005beee08e
commit 749add1b89
2 changed files with 11 additions and 7 deletions

View File

@@ -8,15 +8,16 @@
package model package model
import ( import (
"backend/database/fields"
"time" "time"
) )
type Storages struct { type Storages struct {
ID int64 `sql:"primary_key" json:"id"` ID int64 `sql:"primary_key" json:"id"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"` UpdatedAt time.Time `json:"updated_at"`
IsDefault bool `json:"is_default"` IsDefault bool `json:"is_default"`
Name string `json:"name"` Name string `json:"name"`
Type int16 `json:"type"` Type fields.StorageType `json:"type"`
Config string `json:"config"` Config string `json:"config"`
} }

View File

@@ -11,3 +11,6 @@ types:
user_oauths: user_oauths:
channel: AuthChannel channel: AuthChannel
storages:
type: StorageType