2024-07-15 10:12:53 -04:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.26.0
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
2024-07-26 09:29:58 -04:00
|
|
|
"time"
|
|
|
|
|
2024-07-24 22:42:30 -04:00
|
|
|
"github.com/google/uuid"
|
2024-07-15 10:12:53 -04:00
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
|
|
)
|
|
|
|
|
2024-07-16 19:31:30 -04:00
|
|
|
type ApiKey struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
ID int32 `json:"id"`
|
2024-07-27 19:25:16 -04:00
|
|
|
Owner int `json:"owner"`
|
2024-07-26 09:29:58 -04:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2024-07-25 09:37:27 -04:00
|
|
|
Expires pgtype.Timestamp `json:"expires"`
|
|
|
|
Disabled *bool `json:"disabled"`
|
|
|
|
ApiKey uuid.UUID `json:"api_key"`
|
2024-07-15 10:12:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Call struct {
|
2024-07-26 09:29:58 -04:00
|
|
|
ID uuid.UUID `json:"id"`
|
|
|
|
Submitter *int32 `json:"submitter"`
|
|
|
|
System int `json:"system"`
|
|
|
|
Talkgroup int `json:"talkgroup"`
|
|
|
|
CallDate time.Time `json:"call_date"`
|
|
|
|
AudioName *string `json:"audio_name"`
|
|
|
|
AudioBlob []byte `json:"audio_blob"`
|
|
|
|
AudioType *string `json:"audio_type"`
|
|
|
|
AudioUrl *string `json:"audio_url"`
|
2024-07-27 19:25:16 -04:00
|
|
|
Frequency int `json:"frequency"`
|
|
|
|
Frequencies []int `json:"frequencies"`
|
|
|
|
Patches []int `json:"patches"`
|
2024-07-26 09:29:58 -04:00
|
|
|
TgLabel *string `json:"tg_label"`
|
2024-07-27 19:25:16 -04:00
|
|
|
TgTag *string `json:"tg_tag"`
|
|
|
|
TgGroup *string `json:"tg_group"`
|
|
|
|
Source int `json:"source"`
|
2024-07-26 09:29:58 -04:00
|
|
|
Transcript *string `json:"transcript"`
|
2024-07-16 19:31:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Incident struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
ID uuid.UUID `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description *string `json:"description"`
|
|
|
|
StartTime pgtype.Timestamp `json:"start_time"`
|
|
|
|
EndTime pgtype.Timestamp `json:"end_time"`
|
|
|
|
Location []byte `json:"location"`
|
|
|
|
Metadata []byte `json:"metadata"`
|
2024-07-16 19:31:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type IncidentsCall struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
IncidentID uuid.UUID `json:"incident_id"`
|
|
|
|
CallID uuid.UUID `json:"call_id"`
|
|
|
|
Notes []byte `json:"notes"`
|
2024-07-15 19:03:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Setting struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
Name string `json:"name"`
|
|
|
|
UpdatedBy *int32 `json:"updated_by"`
|
|
|
|
Value []byte `json:"value"`
|
2024-07-15 19:03:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type System struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
ID int `json:"id"`
|
|
|
|
Name string `json:"name"`
|
2024-07-15 19:03:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Talkgroup struct {
|
2024-07-28 23:07:04 -04:00
|
|
|
SystemID int `json:"system_id"`
|
|
|
|
Tgid int `json:"tgid"`
|
|
|
|
Name *string `json:"name"`
|
|
|
|
TgGroup *string `json:"tg_group"`
|
|
|
|
Frequency *int32 `json:"frequency"`
|
|
|
|
Metadata []byte `json:"metadata"`
|
|
|
|
Tags []string `json:"tags"`
|
2024-07-15 10:12:53 -04:00
|
|
|
}
|
|
|
|
|
2024-07-27 19:25:16 -04:00
|
|
|
type TalkgroupsLearned struct {
|
2024-07-28 08:40:01 -04:00
|
|
|
ID int32 `json:"id"`
|
|
|
|
SystemID int `json:"system_id"`
|
|
|
|
Tgid int `json:"tgid"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
GroupTag *string `json:"group_tag"`
|
|
|
|
Ignored *bool `json:"ignored"`
|
2024-07-27 19:25:16 -04:00
|
|
|
}
|
|
|
|
|
2024-07-15 10:12:53 -04:00
|
|
|
type User struct {
|
2024-07-25 09:37:27 -04:00
|
|
|
ID int32 `json:"id"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Email string `json:"email"`
|
2024-07-27 19:25:16 -04:00
|
|
|
IsAdmin bool `json:"is_admin"`
|
2024-07-25 09:37:27 -04:00
|
|
|
Prefs []byte `json:"prefs"`
|
2024-07-15 10:12:53 -04:00
|
|
|
}
|