Merge pull request #9170 from tschuettler/CRM-19454
[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>
9 <field>
5435b737 10 <name>id</name>
f3ea5182 11 <title>Price Set Entity ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Price Set Entity</comment>
15 <add>1.8</add>
6a488035
TO
16 </field>
17 <primaryKey>
5435b737
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
5435b737 22 <name>entity_table</name>
f3ea5182 23 <title>Entity Table</title>
5435b737
EM
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>
6a488035
TO
29 </field>
30 <field>
5435b737 31 <name>entity_id</name>
f3ea5182 32 <title>Entity IF</title>
5435b737
EM
33 <type>int unsigned</type>
34 <required>true</required>
35 <comment>Item in table</comment>
36 <add>1.8</add>
6a488035 37 </field>
71e5aa5c 38 <dynamicForeignKey>
5435b737
EM
39 <idColumn>entity_id</idColumn>
40 <typeColumn>entity_table</typeColumn>
41 <add>1.8</add>
71e5aa5c 42 </dynamicForeignKey>
6a488035 43 <field>
5435b737 44 <name>price_set_id</name>
f3ea5182 45 <title>Price Set</title>
5435b737
EM
46 <type>int unsigned</type>
47 <required>true</required>
48 <comment>price set being used</comment>
49 <add>1.8</add>
6a488035
TO
50 </field>
51 <foreignKey>
5435b737
EM
52 <name>price_set_id</name>
53 <table>civicrm_price_set</table>
54 <key>id</key>
6a488035
TO
55 </foreignKey>
56 <index>
5435b737
EM
57 <name>UI_entity</name>
58 <fieldName>entity_table</fieldName>
59 <fieldName>entity_id</fieldName>
60 <unique>true</unique>
61 <add>1.8</add>
6a488035
TO
62 </index>
63</table>
64