2024-07-15 10:12:53 -04:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.26.0
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
|
|
)
|
|
|
|
|
2024-07-16 19:31:30 -04:00
|
|
|
type ApiKey struct {
|
|
|
|
ID int32
|
|
|
|
Owner pgtype.Int4
|
|
|
|
CreatedAt pgtype.Timestamp
|
|
|
|
Expires pgtype.Timestamp
|
|
|
|
Disabled pgtype.Bool
|
|
|
|
ApiKey pgtype.UUID
|
2024-07-15 10:12:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Call struct {
|
2024-07-15 19:03:48 -04:00
|
|
|
ID pgtype.UUID
|
2024-07-16 19:31:30 -04:00
|
|
|
Submitter pgtype.Int4
|
2024-07-15 19:03:48 -04:00
|
|
|
System int32
|
|
|
|
Talkgroup int32
|
2024-07-16 19:35:16 -04:00
|
|
|
CallDate pgtype.Timestamp
|
2024-07-15 19:03:48 -04:00
|
|
|
AudioName pgtype.Text
|
|
|
|
AudioBlob []byte
|
|
|
|
AudioType pgtype.Text
|
|
|
|
AudioUrl pgtype.Text
|
|
|
|
Frequency pgtype.Int4
|
|
|
|
Frequencies []byte
|
|
|
|
Patches []byte
|
|
|
|
TgLabel pgtype.Text
|
|
|
|
Source pgtype.Text
|
2024-07-16 19:31:30 -04:00
|
|
|
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
|
2024-07-15 19:03:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Setting struct {
|
|
|
|
Name string
|
|
|
|
UpdatedBy pgtype.Int4
|
|
|
|
Value []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
type System struct {
|
|
|
|
ID int32
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Talkgroup struct {
|
2024-07-17 19:51:29 -04:00
|
|
|
SystemID int32
|
2024-07-17 19:45:46 -04:00
|
|
|
Tgid int32
|
2024-07-16 19:31:30 -04:00
|
|
|
Name pgtype.Text
|
|
|
|
Frequency pgtype.Int4
|
|
|
|
AutoCreated pgtype.Bool
|
|
|
|
Metadata []byte
|
2024-07-15 10:12:53 -04:00
|
|
|
}
|
|
|
|
|
2024-07-17 19:30:16 -04:00
|
|
|
type TalkgroupsTag struct {
|
2024-07-17 19:45:46 -04:00
|
|
|
SystemID int32
|
2024-07-17 19:30:16 -04:00
|
|
|
TalkgroupID int32
|
|
|
|
Tags []string
|
|
|
|
}
|
|
|
|
|
2024-07-15 10:12:53 -04:00
|
|
|
type User struct {
|
|
|
|
ID int32
|
|
|
|
Username string
|
|
|
|
Password string
|
|
|
|
Email string
|
|
|
|
IsAdmin pgtype.Bool
|
|
|
|
Prefs []byte
|
|
|
|
}
|