Create report platform layer

Rework phone subscription at the database layer so that we have a
seprate phone status and subscriptions to district communications.
This commit is contained in:
Eli Ribble 2026-01-31 20:08:08 +00:00
parent cbcd998803
commit a9b0a55f20
No known key found for this signature in database
34 changed files with 4844 additions and 257 deletions

View file

@ -27,9 +27,18 @@ var CommsPhones = Table[
IsSubscribed: column{
Name: "is_subscribed",
DBType: "boolean",
Default: "NULL",
Default: "",
Comment: "",
Nullable: true,
Nullable: false,
Generated: false,
AutoIncr: false,
},
Status: column{
Name: "status",
DBType: "comms.phonestatustype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
@ -65,11 +74,12 @@ var CommsPhones = Table[
type commsPhoneColumns struct {
E164 column
IsSubscribed column
Status column
}
func (c commsPhoneColumns) AsSlice() []column {
return []column{
c.E164, c.IsSubscribed,
c.E164, c.IsSubscribed, c.Status,
}
}