in progress
This commit is contained in:
11
models/dir.go
Normal file
11
models/dir.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Dir struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
ParentID *uuid.UUID `json:"parent_id"`
|
||||
Name string `json:"name"`
|
||||
OwnerID uuid.UUID `json:"owner_id"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
}
|
||||
12
models/file.go
Normal file
12
models/file.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type File struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
DirID *uuid.UUID `json:"dir_id"`
|
||||
Name string `json:"name"`
|
||||
OwnerID uuid.UUID `json:"owner_id"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
Data []byte `json:"data"`
|
||||
}
|
||||
Reference in New Issue
Block a user