-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCoralFileBundle.module.xml
More file actions
71 lines (71 loc) · 4.63 KB
/
CoralFileBundle.module.xml
File metadata and controls
71 lines (71 loc) · 4.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<orm-designer version="2.3.0.826" mvc="Symfony2" orm="Doctrine2">
<module name="FileBundle" import-format="Doctrine2Php" import-path="Entity" uuid="eb1512a5-d3e0-4530-8f9f-a57ca2f64d24">
<entity name="File" uuid="e402bd50-74d3-48a5-9b73-c3b75e002fff">
<field name="id" type="integer" required="true" primary="true" auto-increment="true" uuid="b141f5ae-26fd-4058-aaa8-39f12db7df67"/>
<field name="filename" type="string" size="255" required="true" uuid="bed0b024-2012-4928-b2f0-31940f9cba16"/>
<field name="mime_type" type="string" size="32" required="true" uuid="6e75f661-362e-4af8-8c10-d2a26a7016dd"/>
<field name="hash" description="file content hash sha1" type="string" size="40" required="true" uuid="7ffa778f-120a-4870-9513-c80a4d68bee5"/>
<field name="account_id" type="integer" required="true" uuid="75846dc7-3ebc-4c52-a427-0c4518046467"/>
<field name="created_at" type="datetime" uuid="57e4c1fa-d728-4e35-ab9f-863a3d30bf7a"/>
<field name="updated_at" type="datetime" uuid="2e00d359-f779-4256-aeaf-ebbafe3f6d4e"/>
<index name="FileHashIndex">
<index-field name="hash"/>
</index>
<orm-attributes>
<attribute name="table">coral_file</attribute>
</orm-attributes>
</entity>
<association from="File" to="Account" caption="Files for account" inverse-alias="account" uuid="30cf615c-e012-4f6f-b808-28f32077658c">
<association-field from="account_id" to="id"/>
</association>
<entity name="Thumbnail" uuid="9bdc07ee-016e-46c2-90ff-83920475cef3">
<field name="id" type="integer" required="true" primary="true" auto-increment="true" uuid="6bb67007-0e8d-414b-96e7-e3b91b9d19ec"/>
<field name="filename" type="string" size="255" uuid="826c2b66-623c-42d2-952d-01b86572a706"/>
<field name="mime_type" type="string" size="32" required="true" uuid="2ea10e3a-856b-44a4-884c-2a4d52471043"/>
<field name="thumb_size" type="string" size="32" required="true" uuid="881214a6-eee2-4a87-91f6-6812a0b8512b"/>
<field name="is_origin" type="boolean" uuid="7b145fc0-c0f6-4a49-998c-a74cb45c2851"/>
<field name="file_id" type="integer" uuid="42501846-aee5-4ff4-8751-68674d0bcace"/>
<orm-attributes>
<attribute name="export-file-name">Thumbnail.php</attribute>
<attribute name="table">coral_thumbnail</attribute>
</orm-attributes>
</entity>
<association from="Thumbnail" to="File" owner-alias="thumbnails" inverse-alias="file" uuid="0c3a3e27-c0df-41c2-986c-db6ab2c0063f">
<association-field from="file_id" to="id"/>
<orm-attributes>
<attribute name="on-delete">CASCADE</attribute>
</orm-attributes>
</association>
<entity name="FileAttribute" uuid="798ac5e4-338a-4b4e-9cf5-14d5b82bc772">
<field name="id" type="integer" required="true" primary="true" auto-increment="true" uuid="be99a570-4d5d-4e9a-bc36-075e155dc154"/>
<field name="name" type="string" size="32" required="true" uuid="dd24bc95-a169-40f2-b620-5d453b54f98c"/>
<field name="value" type="string" size="128" required="true" uuid="427fbd9c-4e72-4cad-9a86-ca3f472eccfd"/>
<field name="file_id" type="integer" required="true" uuid="9e64f1e0-157c-4132-ac8e-3324efc02b41"/>
<index name="FileAttributeNameIndex">
<index-field name="name"/>
</index>
<index name="FileAttributeNameValueIndex">
<index-field name="name"/>
<index-field name="value"/>
</index>
<orm-attributes>
<attribute name="export-file-name">FileAttribute.php</attribute>
<attribute name="table">coral_file_attribute</attribute>
</orm-attributes>
</entity>
<association from="FileAttribute" to="File" owner-alias="fileAttributes" inverse-alias="file" uuid="b131c67d-2a3a-42f3-9206-9e7c2489c976">
<association-field from="file_id" to="id"/>
</association>
<orm-attributes>
<attribute name="namespace">Coral\FileBundle\Entity</attribute>
<attribute name="filename-format">entity-name-only</attribute>
</orm-attributes>
</module>
<visual-data>
<entity uuid="798ac5e4-338a-4b4e-9cf5-14d5b82bc772" position-x="300" position-y="201" size-x="0" size-x2="106" size-y="0" size-y2="73"/>
<entity uuid="9bdc07ee-016e-46c2-90ff-83920475cef3" position-x="300" position-y="51" size-x="0" size-x2="120" size-y="0" size-y2="73"/>
<entity uuid="e402bd50-74d3-48a5-9b73-c3b75e002fff" position-x="25" position-y="101" size-x="0" size-x2="120" size-y="0" size-y2="101"/>
<module uuid="eb1512a5-d3e0-4530-8f9f-a57ca2f64d24" bk-color="4294375930" position-x="25" position-y="499" size-x="0" size-x2="575" size-y="0" size-y2="350"/>
</visual-data>
</orm-designer>