rhymix/tests/_data/dbtable/example.xml
Kijin Sung 7f2504b9b7 Allow escaping column type with a backslash to use literal DB type, e.g. date
DB에서 지원하는 타입명과 XE 호환성을 위해 유지하는 타입명이 충돌하는 경우
(예: date) XML 스키마에서 타입명 앞에 백슬래시를 붙이면 (예: \date)
DB에서 지원하는 타입명을 강제로 사용할 수 있도록 함.
2020-10-22 01:15:23 +09:00

19 lines
1.2 KiB
XML

<table name="example">
<column name="example_srl" type="bignumber" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module_srl" type="number" notnull="notnull" index="idx_module_srl" />
<column name="document_srl" type="number" notnull="notnull" index="idx_document_srl" />
<column name="comment_srl" type="number" notnull="notnull" index="idx_comment_srl" />
<column name="description" type="bigtext" />
<column name="geometry" type="multipolygon" />
<column name="status" type="varchar" size="20" default="PUBLIC" />
<column name="custom_date" type="\date" notnull="notnull" />
<column name="regdate" type="date" notnull="notnull" />
<column name="list_order" type="number" notnull="notnull" />
<index name="idx_module_document_srl" columns="module_srl,document_srl" />
<index name="idx_status" columns="status(6)" />
<index name="unique_list_order" column="list_order" unique="unique" />
<index name="spatial_geometry" column="geometry" type="spatial" />
<index name="fulltext_description" column="description" type="fulltext" options="WITH PARSER ngram" />
<constraint type="foreign key" column="module_srl" references="module.module_srl" ondelete="CASCADE" />
<constraint type="check" condition="list_order &lt; 0" />
</table>