Commit fe8a1b5a authored by Marc Duez's avatar Marc Duez Committed by Mathieu Giraud

doc/database-schema.xml: authentification/patient/sample/result database schema

This schema can be visualized and edited on-line: http://ondras.zarovi.cz/sql/demo/
parent e2a885c9
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
<type label="INT" length="0" sql="INT" quote=""/>
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="BIGINT" length="0" sql="BIGINT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
<type label="Single precision" length="0" sql="FLOAT" quote=""/>
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
</group>
<group label="Character" color="rgb(255,200,200)">
<type label="Char" length="1" sql="CHAR" quote="'"/>
<type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
<type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
<type label="Binary" length="1" sql="BINARY" quote="'"/>
<type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
<type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
</group>
<group label="Date &amp; Time" color="rgb(200,255,200)">
<type label="Date" length="0" sql="DATE" quote="'"/>
<type label="Time" length="0" sql="TIME" quote="'"/>
<type label="Datetime" length="0" sql="DATETIME" quote="'"/>
<type label="Year" length="0" sql="YEAR" quote=""/>
<type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
</group>
<group label="Miscellaneous" color="rgb(200,200,255)">
<type label="ENUM" length="1" sql="ENUM" quote=""/>
<type label="SET" length="1" sql="SET" quote=""/>
<type label="Bit" length="0" sql="bit" quote=""/>
</group>
</datatypes><table x="235" y="361" name="sequence_file">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="patient_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="patient" row="id" />
</row>
<row name="sampling_date" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="info" null="1" autoincrement="0">
<datatype>VARCHAR</datatype>
<default>NULL</default></row>
<row name="data_file" null="1" autoincrement="0">
<datatype>BLOB</datatype>
<default>NULL</default></row>
<row name="PCR" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="Producer" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="Sequencer" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="102" y="202" name="patient">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="first_name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="last_name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="birth" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="info" null="1" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="432" y="404" name="data_file">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="sequence_file_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="sequence_file" row="id" />
</row>
<row name="config_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="config" row="id" />
</row>
<row name="run_date" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="status" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="data_file" null="1" autoincrement="0">
<datatype>BLOB</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="91" y="21" name="auth_user">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="first_name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="last_name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="email" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="password" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="721" y="400" name="analysis_file">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="patient_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="patient" row="id" />
</row>
<row name="config_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="config" row="id" />
</row>
<row name="analyze_date" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="status" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="analysis_file" null="1" autoincrement="0">
<datatype>BLOB</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="489" y="34" name="auth_group">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="role" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="description" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="692" y="16" name="auth_permission">
<row name="id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="group_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="auth_group" row="id" />
</row>
<row name="name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="table_name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="record_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="255" y="24" name="auth_membership">
<row name="user_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="auth_user" row="id" />
</row>
<row name="group_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="auth_group" row="id" />
</row>
<key type="PRIMARY" name="">
</key>
</table>
<table x="593" y="301" name="config">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="name" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<row name="command" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default><comment>program settings</comment>
</row>
<row name="Task" null="1" autoincrement="0">
<datatype>CHAR</datatype>
<default>NULL</default><comment>program task name for scheduller</comment>
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="735" y="201" name="fused_file">
<row name="id" null="1" autoincrement="1">
<datatype>TINYINT</datatype>
<default>NULL</default></row>
<row name="patient_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="patient" row="id" />
</row>
<row name="config_id" null="1" autoincrement="0">
<datatype>TINYINT</datatype>
<default>NULL</default><relation table="config" row="id" />
</row>
<row name="fuse_date" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="status" null="1" autoincrement="0">
<datatype>CHAR(status)</datatype>
<default>NULL</default></row>
<row name="fused_file" null="1" autoincrement="0">
<datatype>BLOB</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
</sql>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment