-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_schema.xml
More file actions
58 lines (58 loc) · 2.18 KB
/
sample_schema.xml
File metadata and controls
58 lines (58 loc) · 2.18 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
<?xml version="1.0" encoding="utf-8"?>
<schema version="0.1">
<table_list>
<table name="tbl_foreign">
<comment>Numeric column table</comment>
<column_list>
<column name="col_big" type="BIGINT" default="0"/>
</column_list>
<constraint_list>
<primary>
<column>col_big</column>
</primary>
</constraint_list>
</table>
<table name="tbl_sample">
<comment>Numeric column table</comment>
<column_list>
<column name="col_tiny" type="TINYINT" default="0"/>
<column name="col_small" type="SMALLINT" default="0"/>
<column name="col_int" type="INTEGER" default="0"/>
<column name="col_big" type="BIGINT" default="0"/>
<column name="col_num" type="NUMERIC" default="0">
<param>
<precision>max</precision>
</param>
</column>
<column name="col_dec" type="DECIMAL" default="0">
<param>
<precision>max</precision>
</param>
</column>
<column name="col_real" type="REAL" default="0"/>
<column name="col_float" type="FLOAT" default="0"/>
<column name="col_double" type="DOUBLE" default="0"/>
</column_list>
<index_list>
<index name="tiny_small" type="btree">
<column>col_tiny</column>
<column>col_small</column>
</index>
</index_list>
<constraint_list>
<primary>
<column>col_int</column>
</primary>
<unique name="uni_col">
<column>col_num</column>
</unique>
<foreign name="for_key">
<column>col_big</column>
<table_ref name="tbl_foreign">
<column>col_big</column>
</table_ref>
</foreign>
</constraint_list>
</table>
</table_list>
</schema>