Merge pull request #19761 from MegaphoneJon/financial-169
[civicrm-core.git] / xml / schema / SMS / History.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/SMS</base>
5 <class>History</class>
6 <name>civicrm_sms_history</name>
7 <comment>SMS History can be linked to any object in the application.</comment>
8 <add>1.4</add>
9 <drop>2.0</drop>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>SMS History ID</comment>
15 <html>
16 <type>Number</type>
17 <label>SMS History ID</label>
18 </html>
19 <add>1.4</add>
20 </field>
21 <primaryKey>
22 <name>id</name>
23 <autoincrement>true</autoincrement>
24 </primaryKey>
25 <field>
26 <name>message</name>
27 <type>text</type>
28 <comment>Contents of the SMS.</comment>
29 <html>
30 <type>TextArea</type>
31 <rows>5</rows>
32 <cols>80</cols>
33 <label>Message</label>
34 </html>
35 <add>1.4</add>
36 </field>
37 <field>
38 <name>contact_id</name>
39 <title>Contact ID</title>
40 <type>int unsigned</type>
41 <required>true</required>
42 <comment>FK to Contact who is sending this SMS</comment>
43 <add>1.4</add>
44 <html>
45 <type>EntityRef</type>
46 <label>Contact</label>
47 </html>
48 </field>
49 <foreignKey>
50 <name>contact_id</name>
51 <table>civicrm_contact</table>
52 <key>id</key>
53 <add>1.4</add>
54 </foreignKey>
55 <field>
56 <name>sent_date</name>
57 <type>date</type>
58 <comment>When was this SMS sent</comment>
59 <html>
60 <label>Sent Date</label>
61 </html>
62 <add>1.4</add>
63 </field>
64 </table>