Merge pull request #19061 from christianwach/lab-core-2217
[civicrm-core.git] / xml / schema / Price / PriceSetEntity.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Price</base>
5 <class>PriceSetEntity</class>
6 <name>civicrm_price_set_entity</name>
7 <add>1.8</add>
8 <log>true</log>
9 <component>CiviContribute</component>
10 <field>
11 <name>id</name>
12 <title>Price Set Entity ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Price Set Entity</comment>
16 <add>1.8</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>entity_table</name>
24 <title>Entity Table</title>
25 <type>varchar</type>
26 <length>64</length>
27 <required>true</required>
28 <comment>Table which uses this price set</comment>
29 <add>1.8</add>
30 </field>
31 <field>
32 <name>entity_id</name>
33 <title>Entity IF</title>
34 <type>int unsigned</type>
35 <required>true</required>
36 <comment>Item in table</comment>
37 <add>1.8</add>
38 </field>
39 <dynamicForeignKey>
40 <idColumn>entity_id</idColumn>
41 <typeColumn>entity_table</typeColumn>
42 <add>1.8</add>
43 </dynamicForeignKey>
44 <field>
45 <name>price_set_id</name>
46 <title>Price Set</title>
47 <type>int unsigned</type>
48 <required>true</required>
49 <comment>price set being used</comment>
50 <add>1.8</add>
51 <pseudoconstant>
52 <table>civicrm_price_set</table>
53 <keyColumn>id</keyColumn>
54 <labelColumn>title</labelColumn>
55 </pseudoconstant>
56 </field>
57 <foreignKey>
58 <name>price_set_id</name>
59 <table>civicrm_price_set</table>
60 <key>id</key>
61 </foreignKey>
62 <index>
63 <name>UI_entity</name>
64 <fieldName>entity_table</fieldName>
65 <fieldName>entity_id</fieldName>
66 <unique>true</unique>
67 <add>1.8</add>
68 </index>
69 </table>