Add the quota type
This commit is contained in:
parent
bbe7a5f5cc
commit
f449c1e55c
7
main.go
7
main.go
|
@ -1,7 +1,7 @@
|
||||||
package library
|
package library
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OAuthInformation struct {
|
type OAuthInformation struct {
|
||||||
|
@ -22,3 +22,8 @@ type File struct {
|
||||||
User uuid.UUID `validate:"required"`
|
User uuid.UUID `validate:"required"`
|
||||||
Bytes []byte // Only used in write operations
|
Bytes []byte // Only used in write operations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Quota struct {
|
||||||
|
User uuid.UUID `validate:"required"`
|
||||||
|
Bytes int64 `validate:"required"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue