Make it possible to save SMS support status on phone record
This commit is contained in:
parent
96878f24de
commit
9c557a0391
14 changed files with 135 additions and 54 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue