stillbox/pkg/gordio/database/models.go
2024-07-17 19:30:49 -04:00

87 lines
1.4 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.26.0
package database
import (
"github.com/jackc/pgx/v5/pgtype"
)
type ApiKey struct {
ID int32
Owner pgtype.Int4
CreatedAt pgtype.Timestamp
Expires pgtype.Timestamp
Disabled pgtype.Bool
ApiKey pgtype.UUID
}
type Call struct {
ID pgtype.UUID
Submitter pgtype.Int4
System int32
Talkgroup int32
CallDate pgtype.Timestamp
AudioName pgtype.Text
AudioBlob []byte
AudioType pgtype.Text
AudioUrl pgtype.Text
Frequency pgtype.Int4
Frequencies []byte
Patches []byte
TgLabel pgtype.Text
Source pgtype.Text
Transcript pgtype.Text
}
type Incident struct {
ID pgtype.UUID
Name string
Description pgtype.Text
StartTime pgtype.Timestamp
EndTime pgtype.Timestamp
Location []byte
Metadata []byte
}
type IncidentsCall struct {
IncidentID pgtype.UUID
CallID pgtype.UUID
Notes []byte
}
type Setting struct {
Name string
UpdatedBy pgtype.Int4
Value []byte
}
type System struct {
ID int32
Name string
}
type Talkgroup struct {
ID int32
System int32
Name pgtype.Text
Frequency pgtype.Int4
Tgid int32
AutoCreated pgtype.Bool
Metadata []byte
}
type TalkgroupsTag struct {
TalkgroupID int32
Tags []string
}
type User struct {
ID int32
Username string
Password string
Email string
IsAdmin pgtype.Bool
Prefs []byte
}