Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | <table> | |
3 | <base>CRM/Campaign</base> | |
4 | <class>CampaignGroup</class> | |
5 | <name>civicrm_campaign_group</name> | |
6 | <comment>Campaign Group Details.</comment> | |
7 | <add>3.3</add> | |
8 | ||
9 | <field> | |
10 | <name>id</name> | |
11 | <type>int unsigned</type> | |
12 | <required>true</required> | |
13 | <comment>Campaign Group id.</comment> | |
14 | <add>3.3</add> | |
15 | </field> | |
16 | <primaryKey> | |
17 | <name>id</name> | |
18 | <autoincrement>true</autoincrement> | |
19 | </primaryKey> | |
20 | ||
21 | <field> | |
22 | <name>campaign_id</name> | |
23 | <type>int unsigned</type> | |
24 | <required>true</required> | |
25 | <comment>Foreign key to the activity Campaign.</comment> | |
26 | <add>3.3</add> | |
27 | </field> | |
28 | <foreignKey> | |
29 | <name>campaign_id</name> | |
30 | <table>civicrm_campaign</table> | |
31 | <key>id</key> | |
32 | <add>3.3</add> | |
33 | <onDelete>CASCADE</onDelete> | |
34 | </foreignKey> | |
35 | ||
36 | <field> | |
37 | <name>group_type</name> | |
38 | <type>enum</type> | |
39 | <values>Include, Exclude</values> | |
40 | <default>NULL</default> | |
41 | <comment>Type of Group.</comment> | |
42 | </field> | |
43 | ||
44 | <field> | |
45 | <name>entity_table</name> | |
46 | <type>varchar</type> | |
47 | <length>64</length> | |
48 | <default>NULL</default> | |
49 | <comment>Name of table where item being referenced is stored.</comment> | |
50 | <add>3.3</add> | |
51 | </field> | |
52 | ||
53 | <field> | |
54 | <name>entity_id</name> | |
55 | <type>int unsigned</type> | |
56 | <default>NULL</default> | |
57 | <comment>Entity id of referenced table.</comment> | |
58 | <add>3.3</add> | |
59 | </field> | |
71e5aa5c ARW |
60 | |
61 | <dynamicForeignKey> | |
62 | <idColumn>entity_id</idColumn> | |
63 | <typeColumn>entity_table</typeColumn> | |
64 | <add>3.3</add> | |
65 | </dynamicForeignKey> | |
6a488035 | 66 | </table> |