Files
phylum/server/internal/sql/models.go
T
Abhishek Shroff 5dfd272fde Grant Permissions
2024-08-04 17:37:43 +05:30

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
}