Files
phylum/server/internal/db/models.go
T
2024-08-29 11:45:18 +05:30

54 lines
920 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
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
Sha256sum pgtype.Text
}
type StorageBackend struct {
Name string
Driver string
Params map[string]string
}
type User struct {
ID int32
Email string
Created pgtype.Timestamp
Modified pgtype.Timestamp
DisplayName string
PasswordHash string
Deleted pgtype.Timestamp
Root uuid.UUID
Home uuid.UUID
}