-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.xml
104 lines (104 loc) · 5.37 KB
/
schema.xml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="utf-8"?>
<database name="default" defaultIdMethod="native" defaultPhpNamingMethod="underscore" identifierQuoting="true">
<table name="file" idMethod="native" phpName="File" namespace="propel\models">
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="path" phpName="Path" type="LONGVARCHAR"/>
<column name="size" phpName="Size" type="INTEGER"/>
<column name="mimetype" phpName="Mimetype" type="VARCHAR" size="255"/>
<column name="filename" phpName="Filename" type="VARCHAR" size="255"/>
<column name="original_filename" phpName="OriginalFilename" type="VARCHAR" size="255"/>
<column name="public" phpName="Public" type="BOOLEAN" size="1"/>
<column name="local_file_instance_id" phpName="LocalFileInstanceId" type="BIGINT"/>
<column name="public_files_s3_file_instance_id" phpName="PublicFilesS3FileInstanceId" type="BIGINT"/>
<column name="filestack_file_instance_id" phpName="FilestackFileInstanceId" type="BIGINT"/>
<column name="filestack_pending_file_instance_id" phpName="FilestackPendingFileInstanceId" type="BIGINT"/>
<column name="parent_file_id" phpName="ParentFileId" type="INTEGER"/>
<column name="created" phpName="Created" type="TIMESTAMP"/>
<column name="modified" phpName="Modified" type="TIMESTAMP"/>
<foreign-key foreignTable="file" name="fk_file_file1">
<reference local="parent_file_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="file_instance" name="fk_file_file_instance1">
<reference local="local_file_instance_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="file_instance" name="fk_file_file_instance2">
<reference local="public_files_s3_file_instance_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="file_instance" name="fk_file_file_instance3">
<reference local="filestack_file_instance_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="file_instance" name="fk_file_file_instance4">
<reference local="filestack_pending_file_instance_id" foreign="id"/>
</foreign-key>
<index name="fk_file_file_instance1_idx">
<index-column name="local_file_instance_id"/>
</index>
<index name="fk_file_file_instance2_idx">
<index-column name="public_files_s3_file_instance_id"/>
</index>
<index name="fk_file_file_instance3_idx">
<index-column name="filestack_file_instance_id"/>
</index>
<index name="fk_file_file_instance4_idx">
<index-column name="filestack_pending_file_instance_id"/>
</index>
<index name="fk_file_file1_idx">
<index-column name="parent_file_id"/>
</index>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
<behavior name="timestampable">
<parameter name="create_column" value="created"/>
<parameter name="update_column" value="modified"/>
<parameter name="disable_created_at" value="false"/>
<parameter name="disable_updated_at" value="false"/>
</behavior>
</table>
<table name="file_instance" idMethod="native" phpName="FileInstance" namespace="propel\models">
<column name="id" phpName="Id" type="BIGINT" primaryKey="true" autoIncrement="true" required="true"/>
<column name="storage_component_ref" phpName="StorageComponentRef" type="VARCHAR" size="255"/>
<column name="uri" phpName="Uri" type="VARCHAR" size="255"/>
<column name="data_json" phpName="DataJson" type="LONGVARCHAR"/>
<column name="created" phpName="Created" type="TIMESTAMP"/>
<column name="modified" phpName="Modified" type="TIMESTAMP"/>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
<behavior name="timestampable">
<parameter name="create_column" value="created"/>
<parameter name="update_column" value="modified"/>
<parameter name="disable_created_at" value="false"/>
<parameter name="disable_updated_at" value="false"/>
</behavior>
</table>
<table name="example_item_type" idMethod="native" phpName="ExampleItemType" namespace="propel\models">
<column name="id" phpName="Id" type="BIGINT" primaryKey="true" autoIncrement="true" required="true"/>
<column name="label" phpName="Mimetype" type="VARCHAR" size="255"/>
<column name="foo_file_id" phpName="FooFileId" type="INTEGER"/>
<column name="bar_file_id" phpName="BarFileId" type="INTEGER"/>
<column name="created" phpName="Created" type="TIMESTAMP"/>
<column name="modified" phpName="Modified" type="TIMESTAMP"/>
<foreign-key foreignTable="file" name="fk_example_item_type_file1">
<reference local="foo_file_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="file" name="fk_example_item_type_file2">
<reference local="bar_file_id" foreign="id"/>
</foreign-key>
<index name="fk_example_item_type_file1_idx">
<index-column name="foo_file_id"/>
</index>
<index name="fk_example_item_type_file1_idx">
<index-column name="bar_file_id"/>
</index>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
<behavior name="timestampable">
<parameter name="create_column" value="created"/>
<parameter name="update_column" value="modified"/>
<parameter name="disable_created_at" value="false"/>
<parameter name="disable_updated_at" value="false"/>
</behavior>
</table>
</database>