Merge pull request #14728 from eileenmcnaughton/last_icing
[civicrm-core.git] / xml / schema / SMS / Provider.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/SMS</base>
5 <class>Provider</class>
6 <name>civicrm_sms_provider</name>
7 <comment>Table to add different sms providers </comment>
8 <add>4.2</add>
9 <field>
5435b737 10 <name>id</name>
b3c176f1 11 <title>SMS Provider ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>SMS Provider ID</comment>
15 <add>4.2</add>
6a488035
TO
16 </field>
17 <primaryKey>
5435b737
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
5435b737 22 <name>name</name>
b3c176f1 23 <title>SMS Provider Name</title>
5435b737
EM
24 <type>varchar</type>
25 <length>64</length>
26 <comment>Provider internal name points to option_value of option_group sms_provider_name</comment>
27 <add>4.2</add>
6a488035
TO
28 </field>
29 <field>
5435b737 30 <name>title</name>
b3c176f1 31 <title>SMS Provider Title</title>
5435b737
EM
32 <type>varchar</type>
33 <length>64</length>
34 <comment>Provider name visible to user</comment>
35 <html>
36 <type>Text</type>
37 </html>
38 <add>4.2</add>
6a488035
TO
39 </field>
40 <field>
5435b737 41 <name>username</name>
b3c176f1 42 <title>SMS Provider Username</title>
5435b737
EM
43 <type>varchar</type>
44 <length>255</length>
45 <html>
46 <type>Text</type>
47 </html>
48 <add>4.2</add>
6a488035
TO
49 </field>
50 <field>
5435b737 51 <name>password</name>
b3c176f1 52 <title>SMS Provider Password</title>
5435b737
EM
53 <type>varchar</type>
54 <length>255</length>
55 <html>
56 <type>Text</type>
57 </html>
58 <add>4.2</add>
6a488035
TO
59 </field>
60 <field>
5435b737 61 <name>api_type</name>
b3c176f1 62 <title>SMS Provider API</title>
5435b737
EM
63 <type>int unsigned</type>
64 <required>true</required>
65 <comment>points to value in civicrm_option_value for group sms_api_type</comment>
66 <html>
67 <type>Select</type>
68 </html>
69 <add>4.2</add>
6a488035
TO
70 </field>
71 <field>
5435b737 72 <name>api_url</name>
b3c176f1 73 <title>SMS Provider API URL</title>
5435b737
EM
74 <type>varchar</type>
75 <length>128</length>
76 <html>
77 <type>Text</type>
78 </html>
79 <add>4.2</add>
6a488035
TO
80 </field>
81 <field>
5435b737 82 <name>api_params</name>
b3c176f1 83 <title>SMS Provider API Params</title>
5435b737
EM
84 <type>text</type>
85 <comment>the api params in xml, http or smtp format</comment>
86 <html>
87 <type>Text</type>
88 </html>
89 <add>4.2</add>
6a488035 90 </field>
5435b737
EM
91 <field>
92 <name>is_default</name>
b3c176f1 93 <title>SMS Provider is Default?</title>
5435b737
EM
94 <type>boolean</type>
95 <default>0</default>
96 <add>4.2</add>
97 <html>
98 <type>CheckBox</type>
99 </html>
6a488035 100 </field>
5435b737
EM
101 <field>
102 <name>is_active</name>
b3c176f1 103 <title>SMS Provider is Active?</title>
5435b737
EM
104 <type>boolean</type>
105 <default>0</default>
106 <add>4.2</add>
107 <html>
108 <type>CheckBox</type>
109 </html>
6a488035 110 </field>
4eae8dda
SL
111 <field>
112 <name>domain_id</name>
113 <title>SMS Domain</title>
114 <type>int unsigned</type>
115 <pseudoconstant>
116 <table>civicrm_domain</table>
117 <keyColumn>id</keyColumn>
118 <labelColumn>name</labelColumn>
119 </pseudoconstant>
120 <comment>Which Domain is this sms provider for</comment>
121 <add>4.7</add>
122 </field>
123 <foreignKey>
124 <name>domain_id</name>
125 <table>civicrm_domain</table>
126 <key>id</key>
127 <add>4.7</add>
128 <onDelete>SET NULL</onDelete>
129 </foreignKey>
6a488035 130</table>