Merge branch '5.48' to master
[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 <html>
17 <type>Number</type>
18 </html>
19 <add>1.8</add>
20 </field>
21 <primaryKey>
22 <name>id</name>
23 <autoincrement>true</autoincrement>
24 </primaryKey>
25 <field>
26 <name>entity_table</name>
27 <title>Entity Table</title>
28 <type>varchar</type>
29 <length>64</length>
30 <required>true</required>
31 <comment>Table which uses this price set</comment>
32 <add>1.8</add>
33 </field>
34 <field>
35 <name>entity_id</name>
36 <title>Entity IF</title>
37 <type>int unsigned</type>
38 <required>true</required>
39 <comment>Item in table</comment>
40 <add>1.8</add>
41 </field>
42 <dynamicForeignKey>
43 <idColumn>entity_id</idColumn>
44 <typeColumn>entity_table</typeColumn>
45 <add>1.8</add>
46 </dynamicForeignKey>
47 <field>
48 <name>price_set_id</name>
49 <title>Price Set ID</title>
50 <type>int unsigned</type>
51 <required>true</required>
52 <comment>price set being used</comment>
53 <add>1.8</add>
54 <pseudoconstant>
55 <table>civicrm_price_set</table>
56 <keyColumn>id</keyColumn>
57 <labelColumn>title</labelColumn>
58 </pseudoconstant>
59 <html>
60 <label>Price Set</label>
61 </html>
62 </field>
63 <foreignKey>
64 <name>price_set_id</name>
65 <table>civicrm_price_set</table>
66 <key>id</key>
67 </foreignKey>
68 <index>
69 <name>UI_entity</name>
70 <fieldName>entity_table</fieldName>
71 <fieldName>entity_id</fieldName>
72 <unique>true</unique>
73 <add>1.8</add>
74 </index>
75 </table>