Make not null

This commit is contained in:
Daniel 2024-11-19 10:44:54 -05:00
parent 4f63b4b26c
commit 3ba24f8c0e
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ type TalkgroupsLearned struct {
Name string `json:"name"`
AlphaTag *string `json:"alpha_tag"`
TGGroup *string `json:"tg_group"`
Ignored *bool `json:"ignored"`
Ignored bool `json:"ignored"`
}
type User struct {

View file

@ -51,7 +51,7 @@ CREATE TABLE IF NOT EXISTS talkgroups_learned(
name TEXT NOT NULL,
alpha_tag TEXT,
tg_group TEXT,
ignored BOOLEAN,
ignored BOOLEAN NOT NULL DEFAULT FALSE,
UNIQUE (system_id, tgid, name)
);