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