123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
- <!-- Active URL: http://192.168.100.140:8500/wwwsqldesigner/ -->
- <sql>
- <datatypes db="sqlite">
- <group label="Numeric" color="rgb(238,238,170)">
- <type label="Integer" length="0" sql="INTEGER" quote=""/>
- <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="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 & 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="93" y="47" name="user">
- <row name="id" null="0" autoincrement="1">
- <datatype>INTEGER</datatype>
- </row>
- <row name="username" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <row name="password" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <key type="PRIMARY" name="">
- <part>id</part>
- </key>
- </table>
- <table x="423" y="83" name="log">
- <row name="id" null="0" autoincrement="1">
- <datatype>INTEGER</datatype>
- </row>
- <row name="description" null="1" autoincrement="0">
- <datatype>VARCHAR(160)</datatype>
- <default>NULL</default></row>
- <row name="id_user" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>NULL</default><relation table="user" row="id" />
- </row>
- <key type="PRIMARY" name="">
- <part>id</part>
- </key>
- </table>
- <table x="81" y="179" name="partner">
- <row name="id" null="1" autoincrement="1">
- <datatype>INTEGER</datatype>
- <default>NULL</default></row>
- <row name="remote_id" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="name" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <row name="city" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <row name="mobile" null="1" autoincrement="0">
- <datatype>VARCHAR(20)</datatype>
- <default>NULL</default></row>
- <row name="phone" null="1" autoincrement="0">
- <datatype>VARCHAR(20)</datatype>
- <default>NULL</default></row>
- <row name="fax" null="1" autoincrement="0">
- <datatype>VARCHAR</datatype>
- <default>'20'</default></row>
- <row name="email" null="1" autoincrement="0">
- <datatype>VARCHAR(100)</datatype>
- <default>NULL</default></row>
- <row name="street" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <row name="street2" null="1" autoincrement="0">
- <datatype>VARCHAR(35)</datatype>
- <default>NULL</default></row>
- <row name="image_medium" null="1" autoincrement="0">
- <datatype>BLOB</datatype>
- <default>NULL</default></row>
- <row name="image_small" null="1" autoincrement="0">
- <datatype>BLOB</datatype>
- <default>NULL</default></row>
- <row name="comment" null="1" autoincrement="0">
- <datatype>VARCHAR(160)</datatype>
- <default>NULL</default></row>
- <row name="customer" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="employee" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="is_company" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="debit" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="debit_limit" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="opportunity_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="contracts_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="journal_item_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="meeting_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="phonecall_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>0</default></row>
- <row name="sale_order_count" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>NULL</default></row>
- <row name="total_invoiced" null="1" autoincrement="0">
- <datatype>INTEGER</datatype>
- <default>NULL</default></row>
- <key type="PRIMARY" name="">
- <part>id</part>
- </key>
- </table>
- </sql>
|