207 lines
4.0 KiB
Go
207 lines
4.0 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package database
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"mediarr/ident"
|
|
)
|
|
|
|
type Account struct {
|
|
PrincipalID ident.UUID
|
|
Login string
|
|
LoginKey string
|
|
PasswordHash sql.NullString
|
|
PasswordChangedAt sql.NullInt64
|
|
MustChangePassword int64
|
|
State string
|
|
FailedAttempts int64
|
|
LockedUntil sql.NullInt64
|
|
LastLoginAt sql.NullInt64
|
|
CreatedAt int64
|
|
}
|
|
|
|
type AclEntry struct {
|
|
ID ident.UUID
|
|
DocumentID ident.UUID
|
|
SubjectID ident.UUID
|
|
Permissions int64
|
|
Propagate int64
|
|
ExpiresAt sql.NullInt64
|
|
GrantedBy ident.UUID
|
|
CreatedAt int64
|
|
RevokedAt sql.NullInt64
|
|
}
|
|
|
|
type Blob struct {
|
|
Root []byte
|
|
Size int64
|
|
State string
|
|
Role string
|
|
UnitSize int64
|
|
Have []byte
|
|
TreeState string
|
|
Encryption string
|
|
LastVerifiedAt sql.NullInt64
|
|
VerifyError sql.NullString
|
|
LastAccessAt sql.NullInt64
|
|
CreatedAt int64
|
|
}
|
|
|
|
type BlobLocation struct {
|
|
Root []byte
|
|
BackendID ident.UUID
|
|
Locator string
|
|
State string
|
|
CreatedAt int64
|
|
}
|
|
|
|
type Document struct {
|
|
ID ident.UUID
|
|
Kind string
|
|
OwnerID ident.UUID
|
|
CreatedBy ident.UUID
|
|
ParentID *ident.UUID
|
|
Name string
|
|
NameKey string
|
|
Path string
|
|
Depth int64
|
|
Position sql.NullString
|
|
HeadVersionID *ident.UUID
|
|
Metadata string
|
|
PolicyID *ident.UUID
|
|
Visibility sql.NullString
|
|
AclInherit int64
|
|
Rev int64
|
|
CreatedAt int64
|
|
UpdatedAt int64
|
|
DeletedAt sql.NullInt64
|
|
DeletedBy *ident.UUID
|
|
TrashBatch []byte
|
|
}
|
|
|
|
type DocumentKind struct {
|
|
Kind string
|
|
Provider string
|
|
HasContent int64
|
|
Hidden int64
|
|
MetadataSchema sql.NullString
|
|
}
|
|
|
|
type DocumentVersion struct {
|
|
ID ident.UUID
|
|
DocumentID ident.UUID
|
|
Seq int64
|
|
ContentRoot []byte
|
|
Size int64
|
|
Mime sql.NullString
|
|
AuthorID ident.UUID
|
|
DeviceID *ident.UUID
|
|
Origin string
|
|
Message sql.NullString
|
|
Pinned int64
|
|
ContentPurgedAt sql.NullInt64
|
|
CreatedAt int64
|
|
}
|
|
|
|
type ExportLink struct {
|
|
TargetID ident.UUID
|
|
DocumentID ident.UUID
|
|
Relpath string
|
|
BlobRoot []byte
|
|
State string
|
|
UpdatedAt int64
|
|
}
|
|
|
|
type ExportTarget struct {
|
|
ID ident.UUID
|
|
LibraryID ident.UUID
|
|
RootPath string
|
|
Mode string
|
|
Enabled int64
|
|
CheckState string
|
|
LastCheckAt sql.NullInt64
|
|
LastError sql.NullString
|
|
ConsentBy *ident.UUID
|
|
}
|
|
|
|
type LibraryConfig struct {
|
|
DocumentID ident.UUID
|
|
Protection string
|
|
AdminVisible int64
|
|
CreatedAt int64
|
|
}
|
|
|
|
type Membership struct {
|
|
GroupID ident.UUID
|
|
MemberID ident.UUID
|
|
Role string
|
|
CreatedAt int64
|
|
}
|
|
|
|
type Principal struct {
|
|
ID ident.UUID
|
|
Kind string
|
|
Name string
|
|
PublicKey []byte
|
|
Status string
|
|
SuccessorID *ident.UUID
|
|
CreatedAt int64
|
|
DisabledAt sql.NullInt64
|
|
}
|
|
|
|
type Session struct {
|
|
ID ident.UUID
|
|
TokenHash []byte
|
|
PrincipalID ident.UUID
|
|
Kind string
|
|
Label sql.NullString
|
|
UserAgent sql.NullString
|
|
IpPrefix sql.NullString
|
|
CreatedAt int64
|
|
LastSeenAt int64
|
|
ExpiresAt int64
|
|
IdleExpiresAt int64
|
|
RevokedAt sql.NullInt64
|
|
}
|
|
|
|
type StagingItem struct {
|
|
ID ident.UUID
|
|
Origin string
|
|
JobRef sql.NullString
|
|
Locator string
|
|
Size sql.NullInt64
|
|
State string
|
|
CreatedAt int64
|
|
UpdatedAt int64
|
|
}
|
|
|
|
type StorageBackend struct {
|
|
ID ident.UUID
|
|
Kind string
|
|
Name string
|
|
Config string
|
|
SecretRef sql.NullString
|
|
Enabled int64
|
|
CapacityBytes sql.NullInt64
|
|
State string
|
|
LastOkAt sql.NullInt64
|
|
LastError sql.NullString
|
|
CreatedAt int64
|
|
}
|
|
|
|
type StoragePolicy struct {
|
|
ID ident.UUID
|
|
Name string
|
|
Mode string
|
|
MinRemoteReplicas int64
|
|
ReplicateHistory int64
|
|
CacheTtlS sql.NullInt64
|
|
CacheMaxBytes sql.NullInt64
|
|
VersionRetention string
|
|
CreatedAt int64
|
|
}
|