database & CD bucket
This commit is contained in:
16
model/resource.go
Normal file
16
model/resource.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user