mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-09 05:39:35 -05:00
60 lines
975 B
Go
60 lines
975 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.26.0
|
|
|
|
package sql
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type AccessToken struct {
|
|
ID string
|
|
Created pgtype.Timestamp
|
|
Expires pgtype.Timestamp
|
|
UserID int32
|
|
}
|
|
|
|
type Permission struct {
|
|
ResourceID uuid.UUID
|
|
UserID int32
|
|
Permission int32
|
|
}
|
|
|
|
type Resource struct {
|
|
ID uuid.UUID
|
|
Parent *uuid.UUID
|
|
Name string
|
|
Dir bool
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
Size pgtype.Int8
|
|
Etag pgtype.Text
|
|
}
|
|
|
|
type Silo struct {
|
|
ID uuid.UUID
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
Owner int32
|
|
Name string
|
|
Storage string
|
|
}
|
|
|
|
type StorageBackend struct {
|
|
Name string
|
|
Driver string
|
|
Params map[string]string
|
|
}
|
|
|
|
type User struct {
|
|
ID int32
|
|
Username string
|
|
DisplayName string
|
|
PasswordHash string
|
|
Deleted pgtype.Timestamp
|
|
}
|