database & CD bucket

This commit is contained in:
schreifuchs committed 2024-11-13 21:16:22 +01:00
1 parent f5013e5f9e
commit abd805b9cd
18 files changed
+530 -34

No files matched your search

+16
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
}