Merge pull request #16659 from demeritcowboy/name-label-print-report
[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 <field>
10 <name>id</name>
11 <title>Price Set Entity ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Price Set Entity</comment>
15 <add>1.8</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>entity_table</name>
23 <title>Entity Table</title>
24 <type>varchar</type>
25 <length>64</length>
26 <required>true</required>
27 <comment>Table which uses this price set</comment>
28 <add>1.8</add>
29 </field>
30 <field>
31 <name>entity_id</name>
32 <title>Entity IF</title>
33 <type>int unsigned</type>
34 <required>true</required>
35 <comment>Item in table</comment>
36 <add>1.8</add>
37 </field>
38 <dynamicForeignKey>
39 <idColumn>entity_id</idColumn>
40 <typeColumn>entity_table</typeColumn>
41 <add>1.8</add>
42 </dynamicForeignKey>
43 <field>
44 <name>price_set_id</name>
45 <title>Price Set</title>
46 <type>int unsigned</type>
47 <required>true</required>
48 <comment>price set being used</comment>
49 <add>1.8</add>
50 <pseudoconstant>
51 <table>civicrm_price_set</table>
52 <keyColumn>id</keyColumn>
53 <labelColumn>title</labelColumn>
54 </pseudoconstant>
55 </field>
56 <foreignKey>
57 <name>price_set_id</name>
58 <table>civicrm_price_set</table>
59 <key>id</key>
60 </foreignKey>
61 <index>
62 <name>UI_entity</name>
63 <fieldName>entity_table</fieldName>
64 <fieldName>entity_id</fieldName>
65 <unique>true</unique>
66 <add>1.8</add>
67 </index>
68 </table>