database & CD bucket
This commit is contained in:
1 parent
f5013e5f9e
commit
abd805b9cd
18 files changed
+530
-34
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user