Files
phylum/server/internal/db/models.go
2024-10-15 19:37:31 +05:30

49 lines
888 B
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 Resource struct {
ID uuid.UUID
Parent *uuid.UUID
Name string
Dir bool
Created pgtype.Timestamp
Modified pgtype.Timestamp
Deleted pgtype.Timestamp
ContentSize int64
ContentType string
ContentSha256 string
Permissions []byte
}
type StorageBackend struct {
Name string
Driver string
Params map[string]string
}
type User struct {
Username string
Created pgtype.Timestamp
Modified pgtype.Timestamp
DisplayName string
PasswordHash string
Deleted pgtype.Timestamp
Root uuid.UUID
Home uuid.UUID
}