database & CD bucket

This commit is contained in:
2024-11-13 21:16:22 +01:00
parent f5013e5f9e
commit abd805b9cd
18 changed files with 530 additions and 34 deletions

16
model/resource.go Normal file
View File

@ -0,0 +1,16 @@
package model
import "gorm.io/gorm"
type Bucket struct {
gorm.Model
Name string `gorm:"uniqueIndex"`
Objects []Object
}
type Object struct {
gorm.Model
Name string `gorm:"uniqueIndex"`
Size uint
BucketId uint
}