Skip to content

Instantly share code, notes, and snippets.

@flexbox
Created March 11, 2019 14:35
Show Gist options
  • Save flexbox/fd913e6b8cbb3a4a898648cc40e14531 to your computer and use it in GitHub Desktop.
Save flexbox/fd913e6b8cbb3a4a898648cc40e14531 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: https://kitt.lewagon.com/db/825 -->
<sql>
<datatypes db="postgresql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
<type label="Small Integer" length="0" sql="SMALLINT" quote=""/>
<type label="Big Integer" length="0" sql="BIGINT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="numeric" quote=""/>
<type label="Serial" length="0" sql="SERIAL" re="SERIAL4" fk="Integer" quote=""/>
<type label="Big Serial" length="0" sql="BIGSERIAL" re="SERIAL8" fk="Big Integer" quote=""/>
<type label="Real" length="0" sql="BIGINT" 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" re="CHARACTER VARYING" quote="'"/>
<type label="Text" length="0" sql="TEXT" quote="'"/>
<type label="Binary" length="1" sql="BYTEA" quote="'"/>
<type label="Boolean" length="0" sql="BOOLEAN" quote="'"/>
</group>
<group label="Date &amp; Time" color="rgb(200,255,200)">
<type label="Date" length="0" sql="DATE" quote="'"/>
<type label="Time" length="1" sql="TIME" quote="'"/>
<type label="Time w/ TZ" length="0" sql="TIME WITH TIME ZONE" quote="'"/>
<type label="Interval" length="1" sql="INTERVAL" quote="'"/>
<type label="Timestamp" length="1" sql="TIMESTAMP" quote="'"/>
<type label="Timestamp w/ TZ" length="0" sql="TIMESTAMP WITH TIME ZONE" quote="'"/>
<type label="Timestamp wo/ TZ" length="0" sql="TIMESTAMP WITHOUT TIME ZONE" quote="'"/>
</group>
<group label="Miscellaneous" color="rgb(200,200,255)">
<type label="XML" length="1" sql="XML" quote="'"/>
<type label="Bit" length="1" sql="BIT" quote="'"/>
<type label="Bit Varying" length="1" sql="VARBIT" re="BIT VARYING" quote="'"/>
<type label="Inet Host Addr" length="0" sql="INET" quote="'"/>
<type label="Inet CIDR Addr" length="0" sql="CIDR" quote="'"/>
<type label="Geometry" length="0" sql="GEOMETRY" quote="'"/>
</group>
</datatypes><table x="636" y="332" name="PROGRAMMES_MATCHING">
<row name="emailMatch" null="1" autoincrement="1">
<datatype>CHAR</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>emailMatch</part>
</key>
</table>
<table x="388" y="331" name="PROGRAMMES_CODES">
<row name="secretDigit" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>secretDigit</part>
</key>
</table>
<table x="192" y="407" name="MEMBERSHIPS">
<row name="userEmail" null="1" autoincrement="1">
<datatype>VARCHAR(255)</datatype>
<default>NULL</default></row>
<row name="programmeId" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="userName" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>userEmail</part>
</key>
</table>
<table x="191" y="329" name="PROGRAMMES">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
</sql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment