mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-02-10 21:50:03 -06:00
92 lines
1.7 KiB
Go
92 lines
1.7 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.26.0
|
|
|
|
package db
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type AccessToken struct {
|
|
ID string
|
|
Created pgtype.Timestamp
|
|
Expires pgtype.Timestamp
|
|
Username string
|
|
}
|
|
|
|
type Bookmark struct {
|
|
Username string
|
|
ResourceID uuid.UUID
|
|
Name string
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
}
|
|
|
|
type FullResource struct {
|
|
ID uuid.UUID
|
|
Name string
|
|
Parent *uuid.UUID
|
|
Dir bool
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
ContentSize int64
|
|
ContentType string
|
|
ContentSha256 string
|
|
Permissions []byte
|
|
Publinks []byte
|
|
}
|
|
|
|
type Permission struct {
|
|
ResourceID uuid.UUID
|
|
Username string
|
|
Modified pgtype.Timestamp
|
|
Value pgtype.Int4
|
|
}
|
|
|
|
type Publink struct {
|
|
ID int32
|
|
Name string
|
|
Created pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
CreatedBy string
|
|
Root uuid.UUID
|
|
Accessed int32
|
|
MaxAccesses int32
|
|
PasswordHash string
|
|
Expires pgtype.Timestamp
|
|
}
|
|
|
|
type Resource struct {
|
|
ID uuid.UUID
|
|
Name string
|
|
Parent *uuid.UUID
|
|
Dir bool
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
ContentSize int64
|
|
ContentType string
|
|
ContentSha256 string
|
|
}
|
|
|
|
type StorageBackend struct {
|
|
Name string
|
|
Driver string
|
|
Params map[string]string
|
|
}
|
|
|
|
type User struct {
|
|
Username string
|
|
Created pgtype.Timestamp
|
|
Modified pgtype.Timestamp
|
|
Deleted pgtype.Timestamp
|
|
DisplayName string
|
|
PasswordHash string
|
|
Root uuid.UUID
|
|
Home uuid.UUID
|
|
}
|