Make it possible to save SMS support status on phone record

This commit is contained in:
Eli Ribble 2026-04-13 22:07:56 +00:00
parent 96878f24de
commit 9c557a0391
No known key found for this signature in database
14 changed files with 135 additions and 54 deletions

View file

@ -42,6 +42,15 @@ var CommsPhones = Table[
Generated: false,
AutoIncr: false,
},
CanSMS: column{
Name: "can_sms",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: commsPhoneIndexes{
PhonePkey: index{
@ -75,11 +84,12 @@ type commsPhoneColumns struct {
E164 column
IsSubscribed column
Status column
CanSMS column
}
func (c commsPhoneColumns) AsSlice() []column {
return []column{
c.E164, c.IsSubscribed, c.Status,
c.E164, c.IsSubscribed, c.Status, c.CanSMS,
}
}