wip: user stuff

This commit is contained in:
loveuer
2025-07-11 22:12:37 +08:00
parent 99cbe8c523
commit b926a8fb80
16 changed files with 447 additions and 3 deletions

10
internal/model/object.go Normal file
View File

@ -0,0 +1,10 @@
package model
type Object struct {
Id int64 `json:"id" gorm:"column:id,primaryKey"`
CreatedAt int64 `json:"created_at" gorm:"column:created_at,autoCreateTime:milli"`
Key string `json:"key" gorm:"column:key;type:varchar(32);not null;unique"`
ContentType string `json:"content_type" gorm:"column:content_type;type:varchar(255);not null"`
Size int64 `json:"size" gorm:"column:size"`
Blob []byte `json:"-" gorm:"column:blob;type:blob"`
}