<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE schema SYSTEM "../../dtd/xmlSchema.dtd">
<!--
* xml/schema/submissions.xml
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Submission-related schema (e.g. authors) in XML.
* XML-BASED DESCRIPTORS ARE DEPRECATED AND SHOULD NOT BE EDITED.
-->
<schema version="0.2">
<!--
*
* TABLE categories
*
-->
<table name="categories">
<field name="category_id" type="I8">
<KEY />
<AUTOINCREMENT />
</field>
<field name="context_id" type="I8">
<NOTNULL/>
</field>
<field name="parent_id" type="I8">
<NOTNULL/>
</field>
<field name="seq" type="I8" />
<field name="path" type="C2" size="255">
<NOTNULL />
</field>
<field name="image" type="X"/>
<descr>Permits the organization of content into categories.</descr>
<index name="category_context_id">
<col>context_id</col>
<col>parent_id</col>
</index>
<index name="category_path">
<col>context_id</col>
<col>path</col>
<UNIQUE />
</index>
</table>
<!--
*
* TABLE category_settings
*
-->
<table name="category_settings">
<field name="category_id" type="I8">
<NOTNULL />
</field>
<field name="locale" type="C2" size="14">
<NOTNULL />
<DEFAULT VALUE=""/>
</field>
<field name="setting_name" type="C2" size="255">
<NOTNULL />
</field>
<field name="setting_value" type="X"/>
<field name="setting_type" type="C2" size="6">
<NOTNULL/>
<descr>(bool|int|float|string|object)</descr>
</field>
<descr>Category-specific settings</descr>
<index name="category_settings_pkey">
<col>category_id</col>
<col>locale</col>
<col>setting_name</col>
<UNIQUE />
</index>
</table>
<!--
*
* TABLE publication_categories
*
-->
<table name="publication_categories">
<field name="publication_id" type="I8">
<NOTNULL/>
</field>
<field name="category_id" type="I8">
<NOTNULL/>
</field>
<descr>Associations for categories and publications.</descr>
<index name="publication_categories_id">
<col>publication_id</col>
<col>category_id</col>
<UNIQUE/>
</index>
</table>
</schema>
|