<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://rf/static/gerador/sqldesigner/ -->
<sql>
<datatypes db="mysql">
	<group label="Numeric" color="rgb(238,238,170)">
		<type label="Integer" length="0" sql="INTEGER" re="INT" 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="375" y="211" name="(Pag) Venda">
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="data" null="0" autoincrement="0">
<datatype>TIMESTAMP</datatype>
</row>
<row name="Recorrência" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Pag) Recorrência" row="cod" />
</row>
<row name="cod_usuario" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Usuário) Login" row="cod_usuario" />
</row>
<row name="Total" null="0" autoincrement="0">
<datatype>DECIMAL(11,2)</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
<table x="376" y="363" name="(Usuário) Login">
<row name="cod_usuario" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod_usuario</part>
</key>
</table>
<table x="644" y="72" name="(Pag) Produto">
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="Nome" null="0" autoincrement="0">
<datatype>VARCHAR(64)</datatype>
</row>
<row name="Descrição" null="0" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
</row>
<row name="Preço" null="0" autoincrement="0">
<datatype>DECIMAL(11,2)</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
<table x="375" y="72" name="(Pag) Item">
<row name="Produto" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Pag) Produto" row="cod" />
</row>
<row name="Venda" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Pag) Venda" row="cod" />
</row>
<row name="quantidade" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
</row>
<row name="subtotal" null="0" autoincrement="0">
<datatype>DECIMAL(11,2)</datatype>
</row>
<key type="PRIMARY" name="">
<part>Venda</part>
<part>Produto</part>
</key>
</table>
<table x="635" y="345" name="(Pag) Vencimento">
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="Venda" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Pag) Venda" row="cod" />
</row>
<row name="data" null="0" autoincrement="0">
<datatype>TIMESTAMP</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
<table x="109" y="257" name="(Pag) Recorrência">
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="título" null="0" autoincrement="0">
<datatype>VARCHAR(32)</datatype>
</row>
<row name="tipo" null="0" autoincrement="0">
<datatype>ENUM(dia, semana, mês, ano)</datatype>
</row>
<row name="intervalo" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
<table x="378" y="429" name="(Contato) Mensagem">
<row name="cod_usuario" null="0" autoincrement="0">
<datatype>INTEGER(11)</datatype>
<relation table="(Usuário) Login" row="cod_usuario" />
</row>
<row name="CanalComunicação" null="0" autoincrement="0">
<datatype>ENUM(email, sms, popup)</datatype>
</row>
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="Mensagem" null="0" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
</row>
<row name="data" null="0" autoincrement="0">
<datatype>TIMESTAMP</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
<table x="842" y="71" name="(Pag) Filther">
<row name="cod" null="0" autoincrement="1">
<datatype>INTEGER(11)</datatype>
</row>
<row name="Título" null="0" autoincrement="0">
<datatype>VARCHAR(64)</datatype>
</row>
<row name="Query" null="0" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
</row>
<key type="PRIMARY" name="">
<part>cod</part>
</key>
</table>
</sql>
