-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.xml
More file actions
44 lines (32 loc) · 1.55 KB
/
Copy pathschema.xml
File metadata and controls
44 lines (32 loc) · 1.55 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
<?xml version="1.0" encoding="UTF-8"?>
<schema>
<table name="entry">
<column name="id" type="integer" unsigned="true" autoincrement="true"/>
<!-- unique identifier -->
<column name="fqen" type="string" length="255" />
<column name="parent_fqen" type="integer" notnull="false" />
<column name="display_name" type="string" length="128" notnull="false" />
<column name="description" type="text" notnull="false" />
<column name="created_at" type="integer" notnull="false" />
<column name="deleted_at" type="integer" notnull="false" />
<!-- TODO: make type, source, name a unique key & index -->
<index name="primary" primary="true" columns="id" />
<index name="fqen_index" unique="true" columns="fqen" />
</table>
<table name="entry_property">
<column name="id" type="integer" unsigned="true" autoincrement="true"/>
<column name="entry_fqen" type="string" length="255" />
<column name="name" type="string" length="64" />
<column name="value" type="text" notnull="false" />
<index name="primary" primary="true" columns="id" />
</table>
<table name="entry_share">
<column name="id" type="integer" unsigned="true" autoincrement="true"/>
<column name="entry_id" type="integer" />
<column name="principal" type="string" lenght="128" />
<column name="created_at" type="integer" notnull="false" />
<column name="deleted_at" type="integer" notnull="false" />
<column name="actions" type="text" notnull="false" />
<index name="primary" primary="true" columns="id" />
</table>
</schema>