Commit d1a836e8 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update the dabase scheme to add the domain table.

parent 31d61aed
docs/db_schema/database.png

130 KB | W: | H:

docs/db_schema/database.png

127 KB | W: | H:

docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8" ?><sql><datatypes db="web2py"> <?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: file:///home/legac/mywap/wwwsqldesigner/index.html -->
<sql>
<datatypes db="web2py">
<group label="Numeric" color="rgb(238,238,170)"> <group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="1" sql="integer" re="INTEGER" quote=""/> <type label="Integer" length="1" sql="integer" re="INTEGER" quote=""/>
<type label="Double precision" length="1" sql="double" re="DOUBLE" quote=""/> <type label="Double precision" length="1" sql="double" re="DOUBLE" quote=""/>
...@@ -22,4 +26,320 @@ ...@@ -22,4 +26,320 @@
<type label="Upload" length="0" sql="upload" quote="'"/> <type label="Upload" length="0" sql="upload" quote="'"/>
<type label="Password" length="0" sql="password" quote="'"/> <type label="Password" length="0" sql="password" quote="'"/>
</group> </group>
</datatypes><table x="303" y="21" name="people"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="first_name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="last_name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="initials" null="0" autoincrement="0"><datatype>string</datatype></row><row name="birth_date" null="1" autoincrement="0"><datatype>date</datatype></row><row name="note" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="302" y="174" name="teams"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="team" null="0" autoincrement="0"><datatype>string</datatype></row><row name="domain" null="1" autoincrement="0"><datatype>string</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="303" y="285" name="projects"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="project" null="0" autoincrement="0"><datatype>string</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="618" y="19" name="people_categories"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="code" null="0" autoincrement="0"><datatype>string</datatype></row><row name="category" null="0" autoincrement="0"><datatype>string</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>string</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="452" y="71" name="history"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="id_people" null="0" autoincrement="0"><datatype>integer</datatype><relation table="people" row="id" /></row><row name="id_teams" null="0" autoincrement="0"><datatype>integer</datatype><relation table="teams" row="id" /></row><row name="id_projects" null="0" autoincrement="0"><datatype>integer</datatype><relation table="projects" row="id" /></row><row name="id_people_categories" null="0" autoincrement="0"><datatype>integer</datatype><relation table="people_categories" row="id" /></row><row name="id_fundings" null="0" autoincrement="0"><datatype>integer</datatype><relation table="fundings" row="id" /></row><row name="id_objects" null="0" autoincrement="0"><datatype>integer</datatype><relation table="objects" row="id" /></row><row name="id_object_categories" null="0" autoincrement="0"><datatype>integer</datatype><relation table="object_categories" row="id" /></row><row name="id_events" null="0" autoincrement="0"><datatype>integer</datatype><relation table="events" row="id" /></row><row name="start_date" null="0" autoincrement="0"><datatype>date</datatype></row><row name="end_date" null="1" autoincrement="0"><datatype>date</datatype></row><row name="percentage" null="1" autoincrement="0"><datatype>integer</datatype></row><row name="note" null="0" autoincrement="0"><datatype>text</datatype></row><row name="data" null="1" autoincrement="0"><datatype>string</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="633" y="149" name="fundings"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="agency" null="0" autoincrement="0"><datatype>string</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="638" y="266" name="events"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="event" null="0" autoincrement="0"><datatype>string</datatype></row><row name="definitiion" null="1" autoincrement="0"><datatype>text</datatype></row><row name="data" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="827" y="22" name="lists"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="title" null="1" autoincrement="0"><datatype>string</datatype></row><row name="conditions" null="1" autoincrement="0"><datatype>text</datatype></row><row name="group_field" null="1" autoincrement="0"><datatype>string</datatype></row><row name="sorters" null="1" autoincrement="0"><datatype>integer</datatype></row><row name="columns" null="0" autoincrement="0"><datatype>text</datatype></row><row name="features" null="1" autoincrement="0"><datatype>text</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="934" y="193" name="metrics2d"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="title" null="1" autoincrement="0"><datatype>string</datatype></row><row name="conditions" null="1" autoincrement="0"><datatype>text</datatype></row><row name="group_field_x" null="0" autoincrement="0"><datatype>string</datatype></row><row name="group_field_y" null="0" autoincrement="0"><datatype>string</datatype></row><row name="metric_field_z" null="0" autoincrement="0"><datatype>string</datatype></row><row name="aggregate_z" null="0" autoincrement="0"><datatype>string</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="1065" y="22" name="graphs"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="title" null="1" autoincrement="0"><datatype>string</datatype></row><row name="report_type" null="0" autoincrement="0"><datatype>string</datatype></row><row name="report_name" null="1" autoincrement="0"><datatype>string</datatype></row><row name="plot" null="0" autoincrement="0"><datatype>text</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="929" y="19" name="metrics1d"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="name" null="0" autoincrement="0"><datatype>string</datatype></row><row name="title" null="1" autoincrement="0"><datatype>string</datatype></row><row name="conditions" null="1" autoincrement="0"><datatype>text</datatype></row><row name="group_field" null="1" autoincrement="0"><datatype>string</datatype></row><row name="columns" null="0" autoincrement="0"><datatype>text</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="616" y="391" name="object_categories"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="code" null="0" autoincrement="0"><datatype>string</datatype></row><row name="category" null="0" autoincrement="0"><datatype>string</datatype></row><row name="definition" null="1" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table><table x="324" y="372" name="objects"><row name="id" null="0" autoincrement="1"><datatype>integer</datatype></row><row name="reference" null="1" autoincrement="0"><datatype>string</datatype></row><row name="serial_number" null="0" autoincrement="0"><datatype>string</datatype></row><row name="batch_number" null="0" autoincrement="0"><datatype>string</datatype></row><row name="note" null="0" autoincrement="0"><datatype>text</datatype></row><key type="PRIMARY" name=""><part>id</part></key></table></sql> </datatypes><table x="303" y="21" name="people">
\ No newline at end of file <row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="first_name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="last_name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="initials" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="birth_date" null="1" autoincrement="0">
<datatype>date</datatype>
<default>NULL</default></row>
<row name="note" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="302" y="183" name="teams">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="team" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="303" y="285" name="projects">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="project" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="618" y="19" name="people_categories">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="code" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="category" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="447" y="100" name="history">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="id_people" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="people" row="id" />
</row>
<row name="id_domains" null="1" autoincrement="0">
<datatype>integer</datatype>
<default>NULL</default><relation table="domains" row="id" />
</row>
<row name="id_teams" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="teams" row="id" />
</row>
<row name="id_projects" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="projects" row="id" />
</row>
<row name="id_people_categories" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="people_categories" row="id" />
</row>
<row name="id_fundings" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="fundings" row="id" />
</row>
<row name="id_objects" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="objects" row="id" />
</row>
<row name="id_object_categories" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="object_categories" row="id" />
</row>
<row name="id_events" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="events" row="id" />
</row>
<row name="start_date" null="0" autoincrement="0">
<datatype>date</datatype>
</row>
<row name="end_date" null="1" autoincrement="0">
<datatype>date</datatype>
<default>NULL</default></row>
<row name="percentage" null="1" autoincrement="0">
<datatype>integer</datatype>
<default>NULL</default></row>
<row name="note" null="0" autoincrement="0">
<datatype>text</datatype>
</row>
<row name="data" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="633" y="149" name="fundings">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="agency" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="611" y="393" name="events">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="event" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="definitiion" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<row name="data" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="827" y="22" name="lists">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="title" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="conditions" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<row name="group_field" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="sorters" null="1" autoincrement="0">
<datatype>integer</datatype>
<default>NULL</default></row>
<row name="columns" null="0" autoincrement="0">
<datatype>text</datatype>
</row>
<row name="features" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="934" y="193" name="metrics2d">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="title" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="conditions" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<row name="group_field_x" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="group_field_y" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="metric_field_z" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="aggregate_z" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1065" y="22" name="graphs">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="title" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="report_type" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="report_name" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="plot" null="0" autoincrement="0">
<datatype>text</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="929" y="19" name="metrics1d">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="name" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="title" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="conditions" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<row name="group_field" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="columns" null="0" autoincrement="0">
<datatype>text</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="626" y="258" name="object_categories">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="code" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="category" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="definition" null="1" autoincrement="0">
<datatype>text</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="309" y="365" name="objects">
<row name="id" null="0" autoincrement="1">
<datatype>integer</datatype>
</row>
<row name="reference" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="serial_number" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="batch_number" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="note" null="0" autoincrement="0">
<datatype>text</datatype>
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="466" y="18" name="domains">
<row name="id" null="1" autoincrement="1">
<datatype>integer</datatype>
<default>NULL</default></row>
<row name="domain" null="0" autoincrement="0">
<datatype>string</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