Você está na página 1de 113

N funciona

DatabaseType PostgreSQL 8.3


Date 22/07/2018

1
ER diagram

2
List of entities

Name Primary key constraint Number Comment


name of
columns
Animal PK_Animal 19
Animal_Compra PK_Animal_Compra 3
Animal_Reproducao PK_Animal_Reproducao 4
Animal_Vacinas PK_Animal_Vacinas 4
Animal_Venda PK_Animal_Venda 4
Cidade PK_Cidade 3
Compra PK_Compra 8
Compra_Insumos PK_Compra_Insumos 4
contas_pagar PK_contas_pagar 8
contas_receber PK_contas_receber 7
Estado PK_Estado 3
Fisica PK_Fisica 4
Insumos PK_Insumos 6
Juridica PK_Juridica 5
Lote PK_Lote 6
Pesagem 4
Pessoa PK_Pessoa 17
Piquete PK_Piquete 4
Raca 2
Reproducao PK_Reproducao 3
Semem PK_Semem 5
tipos_insumos PK_tipos_insumos 2
Vacinas PK_Vacinas 5
Venda PK_Venda 7

3
Entity: Animal
Primary key constraint PK_Animal
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes SERIAL Yes
ani_numero No CHARACTER Yes
VARYING(40)
ani_nasc No DATE No
ani_morte No DATE No
ani_sexo No CHARACTER No
VARYING(40)
ani_mae No CHARACTER No
VARYING(40)
ani_pai No CHARACTER No
VARYING(40)
ani_peso No CHARACTER No
VARYING(40)
ani_idade No INTEGER No
ani_status No CHARACTER No
VARYING(40)
ani_nome No CHARACTER No
VARYING(40)
lote_id No INTEGER No
ani_serieNF No CHARACTER No
VARYING(40)
ani_nf No CHARACTER No
VARYING(40)
raca_id No INTEGER No
ani_pelagem No CHARACTER(40) No
ani_preco No MONEY No
ani_precoven No MONEY No
piq_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Compra Identifying Animal Animal_Compra Zero Or More
Animal_Animal_Reprodu Identifying Animal Animal_Reproduc Zero Or More
cao ao
Animal_Animal_Vacinas Identifying Animal Animal_Vacinas Zero Or More
Animal_Animal_Venda Identifying Animal Animal_Venda Zero Or More
Animal_Pesagem Non Identifying Animal Pesagem Zero Or More
Animal_Semem Non Identifying Animal Semem Zero Or More
Lote_Animal Non Identifying Lote Animal Zero Or More
Piquete_Animal Non Identifying Piquete Animal Zero Or More
Raca_Animal Non Identifying Raca Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ani_numero)
Not Null Column Constraint NOT NULL (ani_id)
Lote_Animal Foreign Key Table Constraint FOREIGN KEY (lote_id)
REFERENCES Lote(lote_id)
Piquete_Animal Foreign Key Table Constraint FOREIGN KEY (piq_id)
REFERENCES Piquete(piq_id)

4
PK_Animal Primary Key Table Constraint PRIMARY KEY (ani_id)
Raca_Animal Foreign Key Table Constraint FOREIGN KEY (raca_id)
REFERENCES Raca(raca_id)

Entity: Animal_Compra
Primary key constraint PK_Animal_Compra
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
comp_id Yes INTEGER Yes
ac_valor No MONEY Yes

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Compra Identifying Animal Animal_Compra Zero Or More
Compra_Animal_Compra Identifying Compra Animal_Compra Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ac_valor)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (comp_id)
Animal_Animal_Compra Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
Compra_Animal_Compra Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
PK_Animal_Compra Primary Key Table Constraint PRIMARY KEY (ani_id, comp_id)

Entity: Animal_Reproducao
Primary key constraint PK_Animal_Reproducao
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
rep_id Yes INTEGER Yes
ar_data No CHARACTER(40) No
ar_tipo No CHARACTER(40) No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Reproduc Identifying Animal Animal_Reprodu Zero Or More
ao cao
Reproducao_Animal_Repr Identifying Reproducao Animal_Reprodu Zero Or More
oducao cao

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
5
Not Null Column Constraint NOT NULL (ani_id)
Animal_Animal_Reproducao Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Reproducao Primary Key Table Constraint PRIMARY KEY (ani_id, rep_id)
Reproducao_Animal_Reprodu Foreign Key Table Constraint FOREIGN KEY (rep_id)
cao REFERENCES Reproducao(rep_id)

Entity: Animal_Vacinas
Primary key constraint PK_Animal_Vacinas
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
vac_id Yes INTEGER Yes
av_data No CHARACTER Yes
VARYING(40)
av_quant No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Vacinas Identifying Animal Animal_Vacinas Zero Or More
Vacinas_Animal_Vacina Identifying Vacinas Animal_Vacinas Zero Or More
s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (av_quant)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (vac_id)
Not Null Column Constraint NOT NULL (av_data)
Animal_Animal_Vacinas Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Vacinas Primary Key Table Constraint PRIMARY KEY (ani_id, vac_id)
Vacinas_Animal_Vacinas Foreign Key Table Constraint FOREIGN KEY (vac_id)
REFERENCES Vacinas(vac_id)

Entity: Animal_Venda
Primary key constraint PK_Animal_Venda
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
vend_id Yes INTEGER Yes
av_valor No MONEY Yes
av_quant No INTEGER Yes

Relationships:
Name Relationship type Parent Child Cardinality
6
Animal_Animal_Venda Identifying Animal Animal_Venda Zero Or More
Venda_Animal_Venda Identifying Venda Animal_Venda Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (av_quant)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (vend_id)
Not Null Column Constraint NOT NULL (av_valor)
Animal_Animal_Venda Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Venda Primary Key Table Constraint PRIMARY KEY (ani_id, vend_id)
Venda_Animal_Venda Foreign Key Table Constraint FOREIGN KEY (vend_id)
REFERENCES Venda(vend_id)

Entity: Cidade
Primary key constraint PK_Cidade
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
cid_id Yes SERIAL Yes
cid_nome No CHARACTER Yes
VARYING(40)
est_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Cidade_Pessoa Non Identifying Cidade Pessoa Exactly One
Estado_Cidade Non Identifying Estado Cidade Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (cid_nome)
Not Null Column Constraint NOT NULL (cid_id)
Estado_Cidade Foreign Key Table Constraint FOREIGN KEY (est_id)
REFERENCES Estado(est_id)
PK_Cidade Primary Key Table Constraint PRIMARY KEY (cid_id)

Entity: Compra
Primary key constraint PK_Compra
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
comp_id Yes SERIAL Yes
comp_data No DATE Yes
comp_total No MONEY Yes
comp_nota No CHARACTER Yes
VARYING(40)

7
comp_serie_nota No CHARACTER Yes
VARYING(40)
comp_tipo No CHARACTER Yes
VARYING(40)
comp_formapag No CHARACTER Yes
VARYING(40)
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Compra_Animal_Compra Identifying Compra Animal_Compra Zero Or More
Compra_Compra_Insum Identifying Compra Compra_Insumo Zero Or More
os s
Compra_contas_pagar Non Identifying Compra contas_pagar Zero Or More
Pessoa_Compra Non Identifying Pessoa Compra Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (comp_formapag)
Not Null Column Constraint NOT NULL (comp_id)
Not Null Column Constraint NOT NULL (comp_data)
Not Null Column Constraint NOT NULL (comp_total)
Not Null Column Constraint NOT NULL (comp_nota)
Not Null Column Constraint NOT NULL (comp_serie_nota)
Not Null Column Constraint NOT NULL (comp_tipo)
Pessoa_Compra Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Compra Primary Key Table Constraint PRIMARY KEY (comp_id)

Entity: Compra_Insumos
Primary key constraint PK_Compra_Insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
comp_id Yes INTEGER Yes
ins_id Yes INTEGER Yes
ci_valor No MONEY Yes
ci_quant No INTEGER Yes

Relationships:
Name Relationship type Parent Child Cardinality
Compra_Compra_Insum Identifying Compra Compra_Insumo Zero Or More
os s
Insumos_Compra_Insu Identifying Insumos Compra_Insumo Zero Or More
mos s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ci_quant)
Not Null Column Constraint NOT NULL (comp_id)
Not Null Column Constraint NOT NULL (ins_id)
Not Null Column Constraint NOT NULL (ci_valor)
Compra_Compra_Insumos Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
8
Insumos_Compra_Insumos Foreign Key Table Constraint FOREIGN KEY (ins_id)
REFERENCES Insumos(ins_id)
PK_Compra_Insumos Primary Key Table Constraint PRIMARY KEY (comp_id, ins_id)

Entity: contas_pagar
Primary key constraint PK_contas_pagar
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pag_id Yes SERIAL Yes
pag_valor No MONEY Yes
pag_date No DATE No
pag_vencimento No DATE No
pag_pagamento No DATE No
pag_cond No CHARACTER No
VARYING(40)
pag_ordem No INTEGER No
comp_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Compra_contas_pagar Non Identifying Compra contas_pagar Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (pag_valor)
Not Null Column Constraint NOT NULL (pag_id)
Compra_contas_pagar Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
PK_contas_pagar Primary Key Table Constraint PRIMARY KEY (pag_id)

Entity: contas_receber
Primary key constraint PK_contas_receber
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
rec_id Yes SERIAL Yes
rec_valor No MONEY Yes
rec_vencimento No DATE Yes
rec_pagamento No DATE Yes
rec_ordem No INTEGER Yes
rec_tipo No CHARACTER Yes
VARYING(40)
vend_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More

9
Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rec_tipo)
Not Null Column Constraint NOT NULL (rec_id)
Not Null Column Constraint NOT NULL (rec_valor)
Not Null Column Constraint NOT NULL (rec_vencimento)
Not Null Column Constraint NOT NULL (rec_pagamento)
Not Null Column Constraint NOT NULL (rec_ordem)
PK_contas_receber Primary Key Table Constraint PRIMARY KEY (rec_id)
Venda_contas_receber Foreign Key Table Constraint FOREIGN KEY (vend_id)
REFERENCES Venda(vend_id)

Entity: Estado
Primary key constraint PK_Estado
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
est_id Yes SERIAL Yes
est_nome No CHARACTER Yes
VARYING(40)
est_sigla No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Estado_Cidade Non Identifying Estado Cidade Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (est_sigla)
Not Null Column Constraint NOT NULL (est_id)
Not Null Column Constraint NOT NULL (est_nome)
PK_Estado Primary Key Table Constraint PRIMARY KEY (est_id)

Entity: Fisica
Primary key constraint PK_Fisica
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
fis_id Yes SERIAL Yes
fis_cpf No CHARACTER(40) Yes
fis_rg No CHARACTER(40) Yes
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More

Constraints:
10
Name Type Level Constraint
Not Null Column Constraint NOT NULL (fis_rg)
Not Null Column Constraint NOT NULL (fis_id)
Not Null Column Constraint NOT NULL (fis_cpf)
Pessoa_Fisica Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Fisica Primary Key Table Constraint PRIMARY KEY (fis_id)

Entity: Insumos
Primary key constraint PK_Insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ins_id Yes SERIAL Yes
ins_nome No CHARACTER Yes
VARYING(40)
ins_estoque No INTEGER Yes
ins_val No MONEY Yes
ti_id No INTEGER No
ti_nome No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Insumos_Compra_Insu Identifying Insumos Compra_Insumo Zero Or More
mos s
tipos_insumos_Insumos Non Identifying tipos_insumos Insumos Zero Or One

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ins_val)
Not Null Column Constraint NOT NULL (ins_id)
Not Null Column Constraint NOT NULL (ins_nome)
Not Null Column Constraint NOT NULL (ins_estoque)
PK_Insumos Primary Key Table Constraint PRIMARY KEY (ins_id)
tipos_insumos_Insumos Foreign Key Table Constraint FOREIGN KEY (ti_id, ti_nome)
REFERENCES tipos_insumos(ti_id,
ti_nome)

Entity: Juridica
Primary key constraint PK_Juridica
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
jur_id Yes SERIAL Yes
jur_cnpj No CHARACTER(40) Yes
jur_ie No CHARACTER(40) Yes
jur_mun No CHARACTER(40) Yes
pes_id No INTEGER No
11
Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Juridica Non Identifying Pessoa Juridica Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (jur_mun)
Not Null Column Constraint NOT NULL (jur_id)
Not Null Column Constraint NOT NULL (jur_cnpj)
Not Null Column Constraint NOT NULL (jur_ie)
Pessoa_Juridica Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Juridica Primary Key Table Constraint PRIMARY KEY (jur_id)

Entity: Lote
Primary key constraint PK_Lote
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
lote_id Yes SERIAL Yes
lote_nome No CHARACTER Yes
VARYING(40)
lote_ini No DATE No
lote_fim No CHARACTER(40) No
lote_quant No INTEGER No
lote_obs No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Lote_Animal Non Identifying Lote Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (lote_nome)
Not Null Column Constraint NOT NULL (lote_id)
PK_Lote Primary Key Table Constraint PRIMARY KEY (lote_id)

Entity: Pesagem
Primary key constraint
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pes_id Yes SERIAL Yes
pes_data No CHARACTER Yes
VARYING(40)
pes_peso No CHARACTER Yes
VARYING(40)
12
ani_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Pesagem Non Identifying Animal Pesagem Zero Or More

Constraints:
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (pes_id)
Not Null Column Constraint NOT NULL (pes_id)
Not Null Column Constraint NOT NULL (pes_data)
Not Null Column Constraint NOT NULL (pes_peso)
Animal_Pesagem Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)

Entity: Pessoa
Primary key constraint PK_Pessoa
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pes_id Yes SERIAL Yes
pes_nome No CHARACTER Yes
VARYING(40)
pes_rua No CHARACTER Yes
VARYING(40)
pes_numero No CHARACTER Yes
VARYING(40)
pes_bairro No CHARACTER Yes
VARYING(40)
pes_complemento No CHARACTER No
VARYING(40)
pes_cep No CHARACTER No
VARYING(40)
pes_telefone No CHARACTER No
VARYING(40)
pes_celular No CHARACTER No
VARYING(40)
pes_email No CHARACTER No
VARYING(40)
pes_login No CHARACTER No
VARYING(40)
pes_senha No CHARACTER No
VARYING(40)
pes_nivel No INTEGER No
pes_tipo No INTEGER Yes
pes_contato No CHARACTER(40) No
pes_telContato No CHARACTER(40) No
cid_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Cidade_Pessoa Non Identifying Cidade Pessoa Exactly One
Pessoa_Compra Non Identifying Pessoa Compra Zero Or More
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More

13
Pessoa_Juridica Non Identifying Pessoa Juridica Zero Or More
Pessoa_Venda Non Identifying Pessoa Venda Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (pes_tipo)
Not Null Column Constraint NOT NULL (pes_id)
Not Null Column Constraint NOT NULL (pes_nome)
Not Null Column Constraint NOT NULL (pes_rua)
Not Null Column Constraint NOT NULL (pes_numero)
Not Null Column Constraint NOT NULL (pes_bairro)
Cidade_Pessoa Foreign Key Table Constraint FOREIGN KEY (cid_id)
REFERENCES Cidade(cid_id)
PK_Pessoa Primary Key Table Constraint PRIMARY KEY (pes_id)

Entity: Piquete
Primary key constraint PK_Piquete
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
piq_id Yes INTEGER Yes
piq_numero No INTEGER No
piq_lotacao No INTEGER No
piq_obs No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Piquete_Animal Non Identifying Piquete Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (piq_id)
PK_Piquete Primary Key Table Constraint PRIMARY KEY (piq_id)

Entity: Raca
Primary key constraint
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
raca_id Yes SERIAL Yes
raca_nome No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Raca_Animal Non Identifying Raca Animal Zero Or More

Constraints:
14
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (raca_id)
Not Null Column Constraint NOT NULL (raca_id)
Not Null Column Constraint NOT NULL (raca_nome)

Entity: Reproducao
Primary key constraint PK_Reproducao
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
rep_id Yes SERIAL Yes
red_data No DATE No
rep_relatorio No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Reproducao_Animal_Repr Identifying Reproducao Animal_Reprodu Zero Or More
oducao cao

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
PK_Reproducao Primary Key Table Constraint PRIMARY KEY (rep_id)

Entity: Semem
Primary key constraint PK_Semem
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
sem_id Yes SERIAL Yes
sem_amostra No CHARACTER Yes
VARYING(40)
sem_data No DATE Yes
sem_quant No INTEGER Yes
ani_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Semem Non Identifying Animal Semem Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (sem_quant)
Not Null Column Constraint NOT NULL (sem_id)
Not Null Column Constraint NOT NULL (sem_amostra)
Not Null Column Constraint NOT NULL (sem_data)
Animal_Semem Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
15
PK_Semem Primary Key Table Constraint PRIMARY KEY (sem_id)

Entity: tipos_insumos
Primary key constraint PK_tipos_insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ti_id Yes SERIAL Yes
ti_nome Yes CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
tipos_insumos_Insumos Non Identifying tipos_insumos Insumos Zero Or One

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ti_nome)
Not Null Column Constraint NOT NULL (ti_id)
PK_tipos_insumos Primary Key Table Constraint PRIMARY KEY (ti_id, ti_nome)

Entity: Vacinas
Primary key constraint PK_Vacinas
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
vac_id Yes SERIAL Yes
vac_nome No CHARACTER(40) No
vac_estoque No CHARACTER(40) No
vac_validade No DATE No
vac_preco No MONEY No

Relationships:
Name Relationship type Parent Child Cardinality
Vacinas_Animal_Vacina Identifying Vacinas Animal_Vacinas Zero Or More
s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (vac_id)
PK_Vacinas Primary Key Table Constraint PRIMARY KEY (vac_id)

Entity: Venda
Primary key constraint PK_Venda
name
Comment
Table options
16
Attributes:
Column name Primary key Data type Not NULL Comment
vend_id Yes SERIAL Yes
vend_data No DATE Yes
vend_total No MONEY Yes
vend_nota No CHARACTER Yes
VARYING(40)
vend_serie_nota No CHARACTER Yes
VARYING(40)
vend_formRec No CHARACTER Yes
VARYING(40)
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Venda Non Identifying Pessoa Venda Zero Or More
Venda_Animal_Venda Identifying Venda Animal_Venda Zero Or More
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (vend_formRec)
Not Null Column Constraint NOT NULL (vend_id)
Not Null Column Constraint NOT NULL (vend_data)
Not Null Column Constraint NOT NULL (vend_total)
Not Null Column Constraint NOT NULL (vend_nota)
Not Null Column Constraint NOT NULL (vend_serie_nota)
Pessoa_Venda Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Venda Primary Key Table Constraint PRIMARY KEY (vend_id)

17
Entity details

18
Entity: Animal
Primary key constraint PK_Animal
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes SERIAL Yes
ani_numero No CHARACTER Yes
VARYING(40)
ani_nasc No DATE No
ani_morte No DATE No
ani_sexo No CHARACTER No
VARYING(40)
ani_mae No CHARACTER No
VARYING(40)
ani_pai No CHARACTER No
VARYING(40)
ani_peso No CHARACTER No
VARYING(40)
ani_idade No INTEGER No
ani_status No CHARACTER No
VARYING(40)
ani_nome No CHARACTER No
VARYING(40)
lote_id No INTEGER No
ani_serieNF No CHARACTER No
VARYING(40)
ani_nf No CHARACTER No
VARYING(40)
raca_id No INTEGER No
ani_pelagem No CHARACTER(40) No
ani_preco No MONEY No
ani_precoven No MONEY No
piq_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Compra Identifying Animal Animal_Compra Zero Or More
Animal_Animal_Reprodu Identifying Animal Animal_Reproduc Zero Or More
cao ao
Animal_Animal_Vacinas Identifying Animal Animal_Vacinas Zero Or More
Animal_Animal_Venda Identifying Animal Animal_Venda Zero Or More
Animal_Pesagem Non Identifying Animal Pesagem Zero Or More
Animal_Semem Non Identifying Animal Semem Zero Or More
Lote_Animal Non Identifying Lote Animal Zero Or More
Piquete_Animal Non Identifying Piquete Animal Zero Or More
Raca_Animal Non Identifying Raca Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ani_numero)
Not Null Column Constraint NOT NULL (ani_id)
Lote_Animal Foreign Key Table Constraint FOREIGN KEY (lote_id)
REFERENCES Lote(lote_id)
Piquete_Animal Foreign Key Table Constraint FOREIGN KEY (piq_id)
REFERENCES Piquete(piq_id)

19
PK_Animal Primary Key Table Constraint PRIMARY KEY (ani_id)
Raca_Animal Foreign Key Table Constraint FOREIGN KEY (raca_id)
REFERENCES Raca(raca_id)

Entity: Animal_Compra
Primary key constraint PK_Animal_Compra
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
comp_id Yes INTEGER Yes
ac_valor No MONEY Yes

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Compra Identifying Animal Animal_Compra Zero Or More
Compra_Animal_Compra Identifying Compra Animal_Compra Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ac_valor)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (comp_id)
Animal_Animal_Compra Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
Compra_Animal_Compra Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
PK_Animal_Compra Primary Key Table Constraint PRIMARY KEY (ani_id, comp_id)

Entity: Animal_Reproducao
Primary key constraint PK_Animal_Reproducao
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
rep_id Yes INTEGER Yes
ar_data No CHARACTER(40) No
ar_tipo No CHARACTER(40) No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Reproduc Identifying Animal Animal_Reprodu Zero Or More
ao cao
Reproducao_Animal_Repr Identifying Reproducao Animal_Reprodu Zero Or More
oducao cao

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
20
Not Null Column Constraint NOT NULL (ani_id)
Animal_Animal_Reproducao Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Reproducao Primary Key Table Constraint PRIMARY KEY (ani_id, rep_id)
Reproducao_Animal_Reprodu Foreign Key Table Constraint FOREIGN KEY (rep_id)
cao REFERENCES Reproducao(rep_id)

Entity: Animal_Vacinas
Primary key constraint PK_Animal_Vacinas
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
vac_id Yes INTEGER Yes
av_data No CHARACTER Yes
VARYING(40)
av_quant No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Animal_Vacinas Identifying Animal Animal_Vacinas Zero Or More
Vacinas_Animal_Vacina Identifying Vacinas Animal_Vacinas Zero Or More
s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (av_quant)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (vac_id)
Not Null Column Constraint NOT NULL (av_data)
Animal_Animal_Vacinas Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Vacinas Primary Key Table Constraint PRIMARY KEY (ani_id, vac_id)
Vacinas_Animal_Vacinas Foreign Key Table Constraint FOREIGN KEY (vac_id)
REFERENCES Vacinas(vac_id)

Entity: Animal_Venda
Primary key constraint PK_Animal_Venda
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ani_id Yes INTEGER Yes
vend_id Yes INTEGER Yes
av_valor No MONEY Yes
av_quant No INTEGER Yes

Relationships:
Name Relationship type Parent Child Cardinality
21
Animal_Animal_Venda Identifying Animal Animal_Venda Zero Or More
Venda_Animal_Venda Identifying Venda Animal_Venda Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (av_quant)
Not Null Column Constraint NOT NULL (ani_id)
Not Null Column Constraint NOT NULL (vend_id)
Not Null Column Constraint NOT NULL (av_valor)
Animal_Animal_Venda Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
PK_Animal_Venda Primary Key Table Constraint PRIMARY KEY (ani_id, vend_id)
Venda_Animal_Venda Foreign Key Table Constraint FOREIGN KEY (vend_id)
REFERENCES Venda(vend_id)

Entity: Cidade
Primary key constraint PK_Cidade
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
cid_id Yes SERIAL Yes
cid_nome No CHARACTER Yes
VARYING(40)
est_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Cidade_Pessoa Non Identifying Cidade Pessoa Exactly One
Estado_Cidade Non Identifying Estado Cidade Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (cid_nome)
Not Null Column Constraint NOT NULL (cid_id)
Estado_Cidade Foreign Key Table Constraint FOREIGN KEY (est_id)
REFERENCES Estado(est_id)
PK_Cidade Primary Key Table Constraint PRIMARY KEY (cid_id)

Entity: Compra
Primary key constraint PK_Compra
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
comp_id Yes SERIAL Yes
comp_data No DATE Yes
comp_total No MONEY Yes
comp_nota No CHARACTER Yes
VARYING(40)

22
comp_serie_nota No CHARACTER Yes
VARYING(40)
comp_tipo No CHARACTER Yes
VARYING(40)
comp_formapag No CHARACTER Yes
VARYING(40)
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Compra_Animal_Compra Identifying Compra Animal_Compra Zero Or More
Compra_Compra_Insum Identifying Compra Compra_Insumo Zero Or More
os s
Compra_contas_pagar Non Identifying Compra contas_pagar Zero Or More
Pessoa_Compra Non Identifying Pessoa Compra Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (comp_formapag)
Not Null Column Constraint NOT NULL (comp_id)
Not Null Column Constraint NOT NULL (comp_data)
Not Null Column Constraint NOT NULL (comp_total)
Not Null Column Constraint NOT NULL (comp_nota)
Not Null Column Constraint NOT NULL (comp_serie_nota)
Not Null Column Constraint NOT NULL (comp_tipo)
Pessoa_Compra Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Compra Primary Key Table Constraint PRIMARY KEY (comp_id)

Entity: Compra_Insumos
Primary key constraint PK_Compra_Insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
comp_id Yes INTEGER Yes
ins_id Yes INTEGER Yes
ci_valor No MONEY Yes
ci_quant No INTEGER Yes

Relationships:
Name Relationship type Parent Child Cardinality
Compra_Compra_Insum Identifying Compra Compra_Insumo Zero Or More
os s
Insumos_Compra_Insu Identifying Insumos Compra_Insumo Zero Or More
mos s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ci_quant)
Not Null Column Constraint NOT NULL (comp_id)
Not Null Column Constraint NOT NULL (ins_id)
Not Null Column Constraint NOT NULL (ci_valor)
Compra_Compra_Insumos Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
23
Insumos_Compra_Insumos Foreign Key Table Constraint FOREIGN KEY (ins_id)
REFERENCES Insumos(ins_id)
PK_Compra_Insumos Primary Key Table Constraint PRIMARY KEY (comp_id, ins_id)

Entity: contas_pagar
Primary key constraint PK_contas_pagar
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pag_id Yes SERIAL Yes
pag_valor No MONEY Yes
pag_date No DATE No
pag_vencimento No DATE No
pag_pagamento No DATE No
pag_cond No CHARACTER No
VARYING(40)
pag_ordem No INTEGER No
comp_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Compra_contas_pagar Non Identifying Compra contas_pagar Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (pag_valor)
Not Null Column Constraint NOT NULL (pag_id)
Compra_contas_pagar Foreign Key Table Constraint FOREIGN KEY (comp_id)
REFERENCES Compra(comp_id)
PK_contas_pagar Primary Key Table Constraint PRIMARY KEY (pag_id)

Entity: contas_receber
Primary key constraint PK_contas_receber
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
rec_id Yes SERIAL Yes
rec_valor No MONEY Yes
rec_vencimento No DATE Yes
rec_pagamento No DATE Yes
rec_ordem No INTEGER Yes
rec_tipo No CHARACTER Yes
VARYING(40)
vend_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More

24
Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rec_tipo)
Not Null Column Constraint NOT NULL (rec_id)
Not Null Column Constraint NOT NULL (rec_valor)
Not Null Column Constraint NOT NULL (rec_vencimento)
Not Null Column Constraint NOT NULL (rec_pagamento)
Not Null Column Constraint NOT NULL (rec_ordem)
PK_contas_receber Primary Key Table Constraint PRIMARY KEY (rec_id)
Venda_contas_receber Foreign Key Table Constraint FOREIGN KEY (vend_id)
REFERENCES Venda(vend_id)

Entity: Estado
Primary key constraint PK_Estado
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
est_id Yes SERIAL Yes
est_nome No CHARACTER Yes
VARYING(40)
est_sigla No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Estado_Cidade Non Identifying Estado Cidade Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (est_sigla)
Not Null Column Constraint NOT NULL (est_id)
Not Null Column Constraint NOT NULL (est_nome)
PK_Estado Primary Key Table Constraint PRIMARY KEY (est_id)

Entity: Fisica
Primary key constraint PK_Fisica
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
fis_id Yes SERIAL Yes
fis_cpf No CHARACTER(40) Yes
fis_rg No CHARACTER(40) Yes
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More

Constraints:
25
Name Type Level Constraint
Not Null Column Constraint NOT NULL (fis_rg)
Not Null Column Constraint NOT NULL (fis_id)
Not Null Column Constraint NOT NULL (fis_cpf)
Pessoa_Fisica Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Fisica Primary Key Table Constraint PRIMARY KEY (fis_id)

Entity: Insumos
Primary key constraint PK_Insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ins_id Yes SERIAL Yes
ins_nome No CHARACTER Yes
VARYING(40)
ins_estoque No INTEGER Yes
ins_val No MONEY Yes
ti_id No INTEGER No
ti_nome No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Insumos_Compra_Insu Identifying Insumos Compra_Insumo Zero Or More
mos s
tipos_insumos_Insumos Non Identifying tipos_insumos Insumos Zero Or One

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ins_val)
Not Null Column Constraint NOT NULL (ins_id)
Not Null Column Constraint NOT NULL (ins_nome)
Not Null Column Constraint NOT NULL (ins_estoque)
PK_Insumos Primary Key Table Constraint PRIMARY KEY (ins_id)
tipos_insumos_Insumos Foreign Key Table Constraint FOREIGN KEY (ti_id, ti_nome)
REFERENCES tipos_insumos(ti_id,
ti_nome)

Entity: Juridica
Primary key constraint PK_Juridica
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
jur_id Yes SERIAL Yes
jur_cnpj No CHARACTER(40) Yes
jur_ie No CHARACTER(40) Yes
jur_mun No CHARACTER(40) Yes
pes_id No INTEGER No
26
Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Juridica Non Identifying Pessoa Juridica Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (jur_mun)
Not Null Column Constraint NOT NULL (jur_id)
Not Null Column Constraint NOT NULL (jur_cnpj)
Not Null Column Constraint NOT NULL (jur_ie)
Pessoa_Juridica Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Juridica Primary Key Table Constraint PRIMARY KEY (jur_id)

Entity: Lote
Primary key constraint PK_Lote
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
lote_id Yes SERIAL Yes
lote_nome No CHARACTER Yes
VARYING(40)
lote_ini No DATE No
lote_fim No CHARACTER(40) No
lote_quant No INTEGER No
lote_obs No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Lote_Animal Non Identifying Lote Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (lote_nome)
Not Null Column Constraint NOT NULL (lote_id)
PK_Lote Primary Key Table Constraint PRIMARY KEY (lote_id)

Entity: Pesagem
Primary key constraint
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pes_id Yes SERIAL Yes
pes_data No CHARACTER Yes
VARYING(40)
pes_peso No CHARACTER Yes
VARYING(40)
27
ani_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Pesagem Non Identifying Animal Pesagem Zero Or More

Constraints:
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (pes_id)
Not Null Column Constraint NOT NULL (pes_id)
Not Null Column Constraint NOT NULL (pes_data)
Not Null Column Constraint NOT NULL (pes_peso)
Animal_Pesagem Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)

Entity: Pessoa
Primary key constraint PK_Pessoa
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
pes_id Yes SERIAL Yes
pes_nome No CHARACTER Yes
VARYING(40)
pes_rua No CHARACTER Yes
VARYING(40)
pes_numero No CHARACTER Yes
VARYING(40)
pes_bairro No CHARACTER Yes
VARYING(40)
pes_complemento No CHARACTER No
VARYING(40)
pes_cep No CHARACTER No
VARYING(40)
pes_telefone No CHARACTER No
VARYING(40)
pes_celular No CHARACTER No
VARYING(40)
pes_email No CHARACTER No
VARYING(40)
pes_login No CHARACTER No
VARYING(40)
pes_senha No CHARACTER No
VARYING(40)
pes_nivel No INTEGER No
pes_tipo No INTEGER Yes
pes_contato No CHARACTER(40) No
pes_telContato No CHARACTER(40) No
cid_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Cidade_Pessoa Non Identifying Cidade Pessoa Exactly One
Pessoa_Compra Non Identifying Pessoa Compra Zero Or More
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More

28
Pessoa_Juridica Non Identifying Pessoa Juridica Zero Or More
Pessoa_Venda Non Identifying Pessoa Venda Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (pes_tipo)
Not Null Column Constraint NOT NULL (pes_id)
Not Null Column Constraint NOT NULL (pes_nome)
Not Null Column Constraint NOT NULL (pes_rua)
Not Null Column Constraint NOT NULL (pes_numero)
Not Null Column Constraint NOT NULL (pes_bairro)
Cidade_Pessoa Foreign Key Table Constraint FOREIGN KEY (cid_id)
REFERENCES Cidade(cid_id)
PK_Pessoa Primary Key Table Constraint PRIMARY KEY (pes_id)

Entity: Piquete
Primary key constraint PK_Piquete
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
piq_id Yes INTEGER Yes
piq_numero No INTEGER No
piq_lotacao No INTEGER No
piq_obs No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Piquete_Animal Non Identifying Piquete Animal Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (piq_id)
PK_Piquete Primary Key Table Constraint PRIMARY KEY (piq_id)

Entity: Raca
Primary key constraint
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
raca_id Yes SERIAL Yes
raca_nome No CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Raca_Animal Non Identifying Raca Animal Zero Or More

Constraints:
29
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (raca_id)
Not Null Column Constraint NOT NULL (raca_id)
Not Null Column Constraint NOT NULL (raca_nome)

Entity: Reproducao
Primary key constraint PK_Reproducao
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
rep_id Yes SERIAL Yes
red_data No DATE No
rep_relatorio No CHARACTER No
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
Reproducao_Animal_Repr Identifying Reproducao Animal_Reprodu Zero Or More
oducao cao

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
PK_Reproducao Primary Key Table Constraint PRIMARY KEY (rep_id)

Entity: Semem
Primary key constraint PK_Semem
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
sem_id Yes SERIAL Yes
sem_amostra No CHARACTER Yes
VARYING(40)
sem_data No DATE Yes
sem_quant No INTEGER Yes
ani_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Animal_Semem Non Identifying Animal Semem Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (sem_quant)
Not Null Column Constraint NOT NULL (sem_id)
Not Null Column Constraint NOT NULL (sem_amostra)
Not Null Column Constraint NOT NULL (sem_data)
Animal_Semem Foreign Key Table Constraint FOREIGN KEY (ani_id)
REFERENCES Animal(ani_id)
30
PK_Semem Primary Key Table Constraint PRIMARY KEY (sem_id)

Entity: tipos_insumos
Primary key constraint PK_tipos_insumos
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
ti_id Yes SERIAL Yes
ti_nome Yes CHARACTER Yes
VARYING(40)

Relationships:
Name Relationship type Parent Child Cardinality
tipos_insumos_Insumos Non Identifying tipos_insumos Insumos Zero Or One

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (ti_nome)
Not Null Column Constraint NOT NULL (ti_id)
PK_tipos_insumos Primary Key Table Constraint PRIMARY KEY (ti_id, ti_nome)

Entity: Vacinas
Primary key constraint PK_Vacinas
name
Comment
Table options

Attributes:
Column name Primary key Data type Not NULL Comment
vac_id Yes SERIAL Yes
vac_nome No CHARACTER(40) No
vac_estoque No CHARACTER(40) No
vac_validade No DATE No
vac_preco No MONEY No

Relationships:
Name Relationship type Parent Child Cardinality
Vacinas_Animal_Vacina Identifying Vacinas Animal_Vacinas Zero Or More
s

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (vac_id)
PK_Vacinas Primary Key Table Constraint PRIMARY KEY (vac_id)

Entity: Venda
Primary key constraint PK_Venda
name
Comment
Table options
31
Attributes:
Column name Primary key Data type Not NULL Comment
vend_id Yes SERIAL Yes
vend_data No DATE Yes
vend_total No MONEY Yes
vend_nota No CHARACTER Yes
VARYING(40)
vend_serie_nota No CHARACTER Yes
VARYING(40)
vend_formRec No CHARACTER Yes
VARYING(40)
pes_id No INTEGER No

Relationships:
Name Relationship type Parent Child Cardinality
Pessoa_Venda Non Identifying Pessoa Venda Zero Or More
Venda_Animal_Venda Identifying Venda Animal_Venda Zero Or More
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More

Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (vend_formRec)
Not Null Column Constraint NOT NULL (vend_id)
Not Null Column Constraint NOT NULL (vend_data)
Not Null Column Constraint NOT NULL (vend_total)
Not Null Column Constraint NOT NULL (vend_nota)
Not Null Column Constraint NOT NULL (vend_serie_nota)
Pessoa_Venda Foreign Key Table Constraint FOREIGN KEY (pes_id)
REFERENCES Pessoa(pes_id)
PK_Venda Primary Key Table Constraint PRIMARY KEY (vend_id)

32
List of attributes

Column name Table Key Data type Not NULL


ac_valor Animal_Compra MONEY Yes
ani_id Semem FK INTEGER No
ani_id Animal PK SERIAL Yes
ani_id Pesagem FK INTEGER No
ani_id Animal_Vacinas PK, FK INTEGER Yes
ani_id Animal_Venda PK, FK INTEGER Yes
ani_id Animal_Reproducao PK, FK INTEGER Yes
ani_id Animal_Compra PK, FK INTEGER Yes
ani_idade Animal INTEGER No
ani_mae Animal CHARACTER No
VARYING(40)
ani_morte Animal DATE No
ani_nasc Animal DATE No
ani_nf Animal CHARACTER No
VARYING(40)
ani_nome Animal CHARACTER No
VARYING(40)
ani_numero Animal CHARACTER Yes
VARYING(40)
ani_pai Animal CHARACTER No
VARYING(40)
ani_pelagem Animal CHARACTER(40) No
ani_peso Animal CHARACTER No
VARYING(40)
ani_preco Animal MONEY No
ani_precoven Animal MONEY No
ani_serieNF Animal CHARACTER No
VARYING(40)
ani_sexo Animal CHARACTER No
VARYING(40)
ani_status Animal CHARACTER No
VARYING(40)
ar_data Animal_Reproducao CHARACTER(40) No
ar_tipo Animal_Reproducao CHARACTER(40) No
av_data Animal_Vacinas CHARACTER Yes
VARYING(40)
av_quant Animal_Vacinas CHARACTER Yes
VARYING(40)
av_quant Animal_Venda INTEGER Yes
av_valor Animal_Venda MONEY Yes
cid_id Cidade PK SERIAL Yes
cid_id Pessoa FK INTEGER No
cid_nome Cidade CHARACTER Yes
VARYING(40)
ci_quant Compra_Insumos INTEGER Yes
ci_valor Compra_Insumos MONEY Yes
comp_data Compra DATE Yes
comp_formapag Compra CHARACTER Yes
VARYING(40)
comp_id Compra PK SERIAL Yes
comp_id contas_pagar FK INTEGER No
comp_id Compra_Insumos PK, FK INTEGER Yes
comp_id Animal_Compra PK, FK INTEGER Yes
comp_nota Compra CHARACTER Yes
VARYING(40)

33
comp_serie_nota Compra CHARACTER Yes
VARYING(40)
comp_tipo Compra CHARACTER Yes
VARYING(40)
comp_total Compra MONEY Yes
est_id Estado PK SERIAL Yes
est_id Cidade FK INTEGER No
est_nome Estado CHARACTER Yes
VARYING(40)
est_sigla Estado CHARACTER Yes
VARYING(40)
fis_cpf Fisica CHARACTER(40) Yes
fis_id Fisica PK SERIAL Yes
fis_rg Fisica CHARACTER(40) Yes
ins_estoque Insumos INTEGER Yes
ins_id Compra_Insumos PK, FK INTEGER Yes
ins_id Insumos PK SERIAL Yes
ins_nome Insumos CHARACTER Yes
VARYING(40)
ins_val Insumos MONEY Yes
jur_cnpj Juridica CHARACTER(40) Yes
jur_id Juridica PK SERIAL Yes
jur_ie Juridica CHARACTER(40) Yes
jur_mun Juridica CHARACTER(40) Yes
lote_fim Lote CHARACTER(40) No
lote_id Animal FK INTEGER No
lote_id Lote PK SERIAL Yes
lote_ini Lote DATE No
lote_nome Lote CHARACTER Yes
VARYING(40)
lote_obs Lote CHARACTER No
VARYING(40)
lote_quant Lote INTEGER No
pag_cond contas_pagar CHARACTER No
VARYING(40)
pag_date contas_pagar DATE No
pag_id contas_pagar PK SERIAL Yes
pag_ordem contas_pagar INTEGER No
pag_pagamento contas_pagar DATE No
pag_valor contas_pagar MONEY Yes
pag_vencimento contas_pagar DATE No
pes_bairro Pessoa CHARACTER Yes
VARYING(40)
pes_celular Pessoa CHARACTER No
VARYING(40)
pes_cep Pessoa CHARACTER No
VARYING(40)
pes_complemento Pessoa CHARACTER No
VARYING(40)
pes_contato Pessoa CHARACTER(40) No
pes_data Pesagem CHARACTER Yes
VARYING(40)
pes_email Pessoa CHARACTER No
VARYING(40)
pes_id Fisica FK INTEGER No
pes_id Juridica FK INTEGER No
pes_id Venda FK INTEGER No
pes_id Pesagem PK SERIAL Yes
pes_id Compra FK INTEGER No

34
pes_id Pessoa PK SERIAL Yes
pes_login Pessoa CHARACTER No
VARYING(40)
pes_nivel Pessoa INTEGER No
pes_nome Pessoa CHARACTER Yes
VARYING(40)
pes_numero Pessoa CHARACTER Yes
VARYING(40)
pes_peso Pesagem CHARACTER Yes
VARYING(40)
pes_rua Pessoa CHARACTER Yes
VARYING(40)
pes_senha Pessoa CHARACTER No
VARYING(40)
pes_telContato Pessoa CHARACTER(40) No
pes_telefone Pessoa CHARACTER No
VARYING(40)
pes_tipo Pessoa INTEGER Yes
piq_id Piquete PK INTEGER Yes
piq_id Animal FK INTEGER No
piq_lotacao Piquete INTEGER No
piq_numero Piquete INTEGER No
piq_obs Piquete CHARACTER No
VARYING(40)
raca_id Raca PK SERIAL Yes
raca_id Animal FK INTEGER No
raca_nome Raca CHARACTER Yes
VARYING(40)
rec_id contas_receber PK SERIAL Yes
rec_ordem contas_receber INTEGER Yes
rec_pagamento contas_receber DATE Yes
rec_tipo contas_receber CHARACTER Yes
VARYING(40)
rec_valor contas_receber MONEY Yes
rec_vencimento contas_receber DATE Yes
red_data Reproducao DATE No
rep_id Reproducao PK SERIAL Yes
rep_id Animal_Reproducao PK, FK INTEGER Yes
rep_relatorio Reproducao CHARACTER No
VARYING(40)
sem_amostra Semem CHARACTER Yes
VARYING(40)
sem_data Semem DATE Yes
sem_id Semem PK SERIAL Yes
sem_quant Semem INTEGER Yes
ti_id Insumos FK INTEGER No
ti_id tipos_insumos PK SERIAL Yes
ti_nome Insumos FK CHARACTER No
VARYING(40)
ti_nome tipos_insumos PK CHARACTER Yes
VARYING(40)
vac_estoque Vacinas CHARACTER(40) No
vac_id Animal_Vacinas PK, FK INTEGER Yes
vac_id Vacinas PK SERIAL Yes
vac_nome Vacinas CHARACTER(40) No
vac_preco Vacinas MONEY No
vac_validade Vacinas DATE No
vend_data Venda DATE Yes

35
vend_formRec Venda CHARACTER Yes
VARYING(40)
vend_id contas_receber FK INTEGER No
vend_id Animal_Venda PK, FK INTEGER Yes
vend_id Venda PK SERIAL Yes
vend_nota Venda CHARACTER Yes
VARYING(40)
vend_serie_nota Venda CHARACTER Yes
VARYING(40)
vend_total Venda MONEY Yes

36
Attribute: ac_valor
Table Animal_Compra
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_id
Table Animal
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Pesagem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_id
Table Animal_Vacinas
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

37
Attribute: ani_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_idade
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_mae
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_morte
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: ani_nasc
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No

38
Default

Attribute: ani_nf
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_nome
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_numero
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ani_pai
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_pelagem
Table Animal
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: ani_peso
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

39
Not NULL No
Default

Attribute: ani_preco
Table Animal
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: ani_precoven
Table Animal
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: ani_serieNF
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_sexo
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_status
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ar_data
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)

40
Domain name
Not NULL No
Default

Attribute: ar_tipo
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: av_data
Table Animal_Vacinas
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: av_quant
Table Animal_Vacinas
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: av_quant
Table Animal_Venda
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: av_valor
Table Animal_Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: cid_id
Table Cidade
Comment
Primary key Yes
41
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: cid_id
Table Pessoa
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: cid_nome
Table Cidade
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ci_quant
Table Compra_Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ci_valor
Table Compra_Insumos
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: comp_data
Table Compra
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: comp_formapag
Table Compra
Comment

42
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table Compra
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table contas_pagar
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: comp_id
Table Compra_Insumos
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: comp_nota
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_serie_nota
Table Compra

43
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_tipo
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_total
Table Compra
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: est_id
Table Estado
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: est_id
Table Cidade
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: est_nome
Table Estado
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: est_sigla
44
Table Estado
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: fis_cpf
Table Fisica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: fis_id
Table Fisica
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: fis_rg
Table Fisica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: ins_estoque
Table Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ins_id
Table Compra_Insumos
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

45
Attribute: ins_id
Table Insumos
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ins_nome
Table Insumos
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ins_val
Table Insumos
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: jur_cnpj
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: jur_id
Table Juridica
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: jur_ie
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

46
Attribute: jur_mun
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: lote_fim
Table Lote
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: lote_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: lote_id
Table Lote
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: lote_ini
Table Lote
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: lote_nome
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

47
Attribute: lote_obs
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: lote_quant
Table Lote
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pag_cond
Table contas_pagar
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pag_date
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pag_id
Table contas_pagar
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pag_ordem
Table contas_pagar
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No

48
Default

Attribute: pag_pagamento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pag_valor
Table contas_pagar
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: pag_vencimento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pes_bairro
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_celular
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_cep
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

49
Not NULL No
Default

Attribute: pes_complemento
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_contato
Table Pessoa
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: pes_data
Table Pesagem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_email
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_id
Table Fisica
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Juridica
Comment
Primary key No
Data type INTEGER

50
Domain name
Not NULL No
Default

Attribute: pes_id
Table Venda
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Pesagem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pes_id
Table Compra
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Pessoa
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pes_login
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_nivel
Table Pessoa
Comment
Primary key No
51
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_nome
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_numero
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_peso
Table Pesagem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_rua
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_senha
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_telContato
Table Pessoa
Comment

52
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: pes_telefone
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_tipo
Table Pessoa
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: piq_id
Table Piquete
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: piq_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_lotacao
Table Piquete
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_numero
Table Piquete

53
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_obs
Table Piquete
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: raca_id
Table Raca
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: raca_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: raca_nome
Table Raca
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: rec_id
Table contas_receber
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: rec_ordem
54
Table contas_receber
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: rec_pagamento
Table contas_receber
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: rec_tipo
Table contas_receber
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: rec_valor
Table contas_receber
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: rec_vencimento
Table contas_receber
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: red_data
Table Reproducao
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

55
Attribute: rep_id
Table Reproducao
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: rep_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: rep_relatorio
Table Reproducao
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: sem_amostra
Table Semem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: sem_data
Table Semem
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: sem_id
Table Semem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

56
Attribute: sem_quant
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ti_id
Table Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ti_id
Table tipos_insumos
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ti_nome
Table Insumos
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ti_nome
Table tipos_insumos
Comment
Primary key Yes
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vac_estoque
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

57
Attribute: vac_id
Table Animal_Vacinas
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: vac_id
Table Vacinas
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: vac_nome
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: vac_preco
Table Vacinas
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: vac_validade
Table Vacinas
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: vend_data
Table Venda
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes

58
Default

Attribute: vend_formRec
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vend_id
Table contas_receber
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: vend_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: vend_id
Table Venda
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: vend_nota
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vend_serie_nota
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

59
Not NULL Yes
Default

Attribute: vend_total
Table Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

60
Attribute details

61
Attribute: ac_valor
Table Animal_Compra
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_id
Table Animal
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Pesagem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_id
Table Animal_Vacinas
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

62
Attribute: ani_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_id
Table Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ani_idade
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ani_mae
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_morte
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: ani_nasc
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No

63
Default

Attribute: ani_nf
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_nome
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_numero
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ani_pai
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_pelagem
Table Animal
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: ani_peso
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

64
Not NULL No
Default

Attribute: ani_preco
Table Animal
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: ani_precoven
Table Animal
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: ani_serieNF
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_sexo
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ani_status
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ar_data
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)

65
Domain name
Not NULL No
Default

Attribute: ar_tipo
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: av_data
Table Animal_Vacinas
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: av_quant
Table Animal_Vacinas
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: av_quant
Table Animal_Venda
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: av_valor
Table Animal_Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: cid_id
Table Cidade
Comment
Primary key Yes
66
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: cid_id
Table Pessoa
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: cid_nome
Table Cidade
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ci_quant
Table Compra_Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ci_valor
Table Compra_Insumos
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: comp_data
Table Compra
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: comp_formapag
Table Compra
Comment

67
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table Compra
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table contas_pagar
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: comp_id
Table Compra_Insumos
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: comp_id
Table Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: comp_nota
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_serie_nota
Table Compra

68
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_tipo
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: comp_total
Table Compra
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: est_id
Table Estado
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: est_id
Table Cidade
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: est_nome
Table Estado
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: est_sigla
69
Table Estado
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: fis_cpf
Table Fisica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: fis_id
Table Fisica
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: fis_rg
Table Fisica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: ins_estoque
Table Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ins_id
Table Compra_Insumos
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

70
Attribute: ins_id
Table Insumos
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ins_nome
Table Insumos
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: ins_val
Table Insumos
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: jur_cnpj
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: jur_id
Table Juridica
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: jur_ie
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

71
Attribute: jur_mun
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
Default

Attribute: lote_fim
Table Lote
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: lote_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: lote_id
Table Lote
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: lote_ini
Table Lote
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: lote_nome
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

72
Attribute: lote_obs
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: lote_quant
Table Lote
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pag_cond
Table contas_pagar
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pag_date
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pag_id
Table contas_pagar
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pag_ordem
Table contas_pagar
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No

73
Default

Attribute: pag_pagamento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pag_valor
Table contas_pagar
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: pag_vencimento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: pes_bairro
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_celular
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_cep
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

74
Not NULL No
Default

Attribute: pes_complemento
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_contato
Table Pessoa
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: pes_data
Table Pesagem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_email
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_id
Table Fisica
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Juridica
Comment
Primary key No
Data type INTEGER

75
Domain name
Not NULL No
Default

Attribute: pes_id
Table Venda
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Pesagem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pes_id
Table Compra
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_id
Table Pessoa
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: pes_login
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_nivel
Table Pessoa
Comment
Primary key No
76
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: pes_nome
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_numero
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_peso
Table Pesagem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_rua
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: pes_senha
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_telContato
Table Pessoa
Comment

77
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: pes_telefone
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: pes_tipo
Table Pessoa
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: piq_id
Table Piquete
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: piq_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_lotacao
Table Piquete
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_numero
Table Piquete

78
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: piq_obs
Table Piquete
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: raca_id
Table Raca
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: raca_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: raca_nome
Table Raca
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: rec_id
Table contas_receber
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: rec_ordem
79
Table contas_receber
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: rec_pagamento
Table contas_receber
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: rec_tipo
Table contas_receber
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: rec_valor
Table contas_receber
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

Attribute: rec_vencimento
Table contas_receber
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: red_data
Table Reproducao
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

80
Attribute: rep_id
Table Reproducao
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: rep_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: rep_relatorio
Table Reproducao
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: sem_amostra
Table Semem
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: sem_data
Table Semem
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes
Default

Attribute: sem_id
Table Semem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

81
Attribute: sem_quant
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: ti_id
Table Insumos
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: ti_id
Table tipos_insumos
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: ti_nome
Table Insumos
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default

Attribute: ti_nome
Table tipos_insumos
Comment
Primary key Yes
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vac_estoque
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

82
Attribute: vac_id
Table Animal_Vacinas
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: vac_id
Table Vacinas
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: vac_nome
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default

Attribute: vac_preco
Table Vacinas
Comment
Primary key No
Data type MONEY
Domain name
Not NULL No
Default

Attribute: vac_validade
Table Vacinas
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
Default

Attribute: vend_data
Table Venda
Comment
Primary key No
Data type DATE
Domain name
Not NULL Yes

83
Default

Attribute: vend_formRec
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vend_id
Table contas_receber
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default

Attribute: vend_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default

Attribute: vend_id
Table Venda
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default

Attribute: vend_nota
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default

Attribute: vend_serie_nota
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name

84
Not NULL Yes
Default

Attribute: vend_total
Table Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default

85
List of relationships

Name Relationship type Parent Child Cardinality


Animal_Animal_Compra Identifying Animal Animal_Compra Zero Or More
Animal_Animal_Reproduc Identifying Animal Animal_Reprodu Zero Or More
ao cao
Animal_Animal_Vacinas Identifying Animal Animal_Vacinas Zero Or More
Animal_Animal_Venda Identifying Animal Animal_Venda Zero Or More
Animal_Pesagem Non Identifying Animal Pesagem Zero Or More
Animal_Semem Non Identifying Animal Semem Zero Or More
Cidade_Pessoa Non Identifying Cidade Pessoa Exactly One
Compra_Animal_Compra Identifying Compra Animal_Compra Zero Or More
Compra_Compra_Insumo Identifying Compra Compra_Insumo Zero Or More
s s
Compra_contas_pagar Non Identifying Compra contas_pagar Zero Or More
Estado_Cidade Non Identifying Estado Cidade Zero Or More
Insumos_Compra_Insum Identifying Insumos Compra_Insumo Zero Or More
os s
Lote_Animal Non Identifying Lote Animal Zero Or More
Pessoa_Compra Non Identifying Pessoa Compra Zero Or More
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More
Pessoa_Juridica Non Identifying Pessoa Juridica Zero Or More
Pessoa_Venda Non Identifying Pessoa Venda Zero Or More
Piquete_Animal Non Identifying Piquete Animal Zero Or More
Raca_Animal Non Identifying Raca Animal Zero Or More
Reproducao_Animal_Repr Identifying Reproducao Animal_Reprodu Zero Or More
oducao cao
tipos_insumos_Insumos Non Identifying tipos_insumos Insumos Zero Or One
Vacinas_Animal_Vacinas Identifying Vacinas Animal_Vacinas Zero Or More
Venda_Animal_Venda Identifying Venda Animal_Venda Zero Or More
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More

86
Relationship: Animal_Animal_Compra
Name Animal_Animal_Compra
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Compra (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Reproducao
Name Animal_Animal_Reproducao
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Reproducao (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Vacinas
Name Animal_Animal_Vacinas
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Vacinas (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Venda
Name Animal_Animal_Venda
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Venda (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Pesagem
Name Animal_Pesagem
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Pesagem (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Semem
Name Animal_Semem
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Semem (ani_id)
Update rule None
Delete rule None

87
Relationship: Cidade_Pessoa
Name Cidade_Pessoa
Relationship type Non Identifying
Cardinality Exactly One
Parent with columns Cidade (cid_id)
Child with columns Pessoa (cid_id)
Update rule None
Delete rule None

Relationship: Compra_Animal_Compra
Name Compra_Animal_Compra
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns Animal_Compra (comp_id)
Update rule None
Delete rule None

Relationship: Compra_Compra_Insumos
Name Compra_Compra_Insumos
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns Compra_Insumos (comp_id)
Update rule None
Delete rule None

Relationship: Compra_contas_pagar
Name Compra_contas_pagar
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns contas_pagar (comp_id)
Update rule None
Delete rule None

Relationship: Estado_Cidade
Name Estado_Cidade
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Estado (est_id)
Child with columns Cidade (est_id)
Update rule None
Delete rule None

Relationship: Insumos_Compra_Insumos
Name Insumos_Compra_Insumos
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Insumos (ins_id)
Child with columns Compra_Insumos (ins_id)
Update rule None
Delete rule None

88
Relationship: Lote_Animal
Name Lote_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Lote (lote_id)
Child with columns Animal (lote_id)
Update rule None
Delete rule None

Relationship: Pessoa_Compra
Name Pessoa_Compra
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Compra (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Fisica
Name Pessoa_Fisica
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Fisica (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Juridica
Name Pessoa_Juridica
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Juridica (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Venda
Name Pessoa_Venda
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Venda (pes_id)
Update rule None
Delete rule None

Relationship: Piquete_Animal
Name Piquete_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Piquete (piq_id)
Child with columns Animal (piq_id)
Update rule None
Delete rule None

89
Relationship: Raca_Animal
Name Raca_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Raca (raca_id)
Child with columns Animal (raca_id)
Update rule None
Delete rule None

Relationship: Reproducao_Animal_Reproducao
Name Reproducao_Animal_Reproducao
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Reproducao (rep_id)
Child with columns Animal_Reproducao (rep_id)
Update rule None
Delete rule None

Relationship: tipos_insumos_Insumos
Name tipos_insumos_Insumos
Relationship type Non Identifying
Cardinality Zero Or One
Parent with columns tipos_insumos (ti_id, ti_nome)
Child with columns Insumos (ti_id, ti_nome)
Update rule None
Delete rule None

Relationship: Vacinas_Animal_Vacinas
Name Vacinas_Animal_Vacinas
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Vacinas (vac_id)
Child with columns Animal_Vacinas (vac_id)
Update rule None
Delete rule None

Relationship: Venda_Animal_Venda
Name Venda_Animal_Venda
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Venda (vend_id)
Child with columns Animal_Venda (vend_id)
Update rule None
Delete rule None

Relationship: Venda_contas_receber
Name Venda_contas_receber
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Venda (vend_id)
Child with columns contas_receber (vend_id)
Update rule None
Delete rule None

90
91
Relationship details

92
Relationship: Animal_Animal_Compra
Name Animal_Animal_Compra
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Compra (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Reproducao
Name Animal_Animal_Reproducao
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Reproducao (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Vacinas
Name Animal_Animal_Vacinas
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Vacinas (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Animal_Venda
Name Animal_Animal_Venda
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Animal_Venda (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Pesagem
Name Animal_Pesagem
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Pesagem (ani_id)
Update rule None
Delete rule None

Relationship: Animal_Semem
Name Animal_Semem
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Animal (ani_id)
Child with columns Semem (ani_id)
Update rule None
Delete rule None

93
Relationship: Cidade_Pessoa
Name Cidade_Pessoa
Relationship type Non Identifying
Cardinality Exactly One
Parent with columns Cidade (cid_id)
Child with columns Pessoa (cid_id)
Update rule None
Delete rule None

Relationship: Compra_Animal_Compra
Name Compra_Animal_Compra
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns Animal_Compra (comp_id)
Update rule None
Delete rule None

Relationship: Compra_Compra_Insumos
Name Compra_Compra_Insumos
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns Compra_Insumos (comp_id)
Update rule None
Delete rule None

Relationship: Compra_contas_pagar
Name Compra_contas_pagar
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Compra (comp_id)
Child with columns contas_pagar (comp_id)
Update rule None
Delete rule None

Relationship: Estado_Cidade
Name Estado_Cidade
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Estado (est_id)
Child with columns Cidade (est_id)
Update rule None
Delete rule None

Relationship: Insumos_Compra_Insumos
Name Insumos_Compra_Insumos
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Insumos (ins_id)
Child with columns Compra_Insumos (ins_id)
Update rule None
Delete rule None

94
Relationship: Lote_Animal
Name Lote_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Lote (lote_id)
Child with columns Animal (lote_id)
Update rule None
Delete rule None

Relationship: Pessoa_Compra
Name Pessoa_Compra
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Compra (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Fisica
Name Pessoa_Fisica
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Fisica (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Juridica
Name Pessoa_Juridica
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Juridica (pes_id)
Update rule None
Delete rule None

Relationship: Pessoa_Venda
Name Pessoa_Venda
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Pessoa (pes_id)
Child with columns Venda (pes_id)
Update rule None
Delete rule None

Relationship: Piquete_Animal
Name Piquete_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Piquete (piq_id)
Child with columns Animal (piq_id)
Update rule None
Delete rule None

95
Relationship: Raca_Animal
Name Raca_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Raca (raca_id)
Child with columns Animal (raca_id)
Update rule None
Delete rule None

Relationship: Reproducao_Animal_Reproducao
Name Reproducao_Animal_Reproducao
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Reproducao (rep_id)
Child with columns Animal_Reproducao (rep_id)
Update rule None
Delete rule None

Relationship: tipos_insumos_Insumos
Name tipos_insumos_Insumos
Relationship type Non Identifying
Cardinality Zero Or One
Parent with columns tipos_insumos (ti_id, ti_nome)
Child with columns Insumos (ti_id, ti_nome)
Update rule None
Delete rule None

Relationship: Vacinas_Animal_Vacinas
Name Vacinas_Animal_Vacinas
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Vacinas (vac_id)
Child with columns Animal_Vacinas (vac_id)
Update rule None
Delete rule None

Relationship: Venda_Animal_Venda
Name Venda_Animal_Venda
Relationship type Identifying
Cardinality Zero Or More
Parent with columns Venda (vend_id)
Child with columns Animal_Venda (vend_id)
Update rule None
Delete rule None

Relationship: Venda_contas_receber
Name Venda_contas_receber
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Venda (vend_id)
Child with columns contas_receber (vend_id)
Update rule None
Delete rule None

96
97
List of domains

No domains available.

98
No domains available.

99
Domain details

100
No domains available.

101
List of views

No views available.

102
No views available.

103
View details

104
No views available.

105
List of procedures

No procedures available.

106
No procedures available.

107
Procedure details

108
No procedures available.

109
List of sequences

No sequences available.

110
No sequences available.

111
Sequence details

112
No sequences available.

113

Você também pode gostar