Escolar Documentos
Profissional Documentos
Cultura Documentos
1
ER diagram
2
List of entities
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
gru_id No INTEGER No
ani_serieNF No CHARACTER No
VARYING(40)
ani_nf No CHARACTER No
VARYING(40)
raca_id No INTEGER No
ani_desc No CHARACTER No
VARYING(40)
ani_tipo No CHARACTER No
VARYING(40)
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
Grupo_Animal Non Identifying Grupo Animal Zero Or More
Lote_Animal Non Identifying Lote 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)
Grupo_Animal Foreign Key Table Constraint FOREIGN KEY (gru_id)
REFERENCES Grupo(gru_id)
4
Lote_Animal Foreign Key Table Constraint FOREIGN KEY (lote_id)
REFERENCES Lote(lote_id)
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:
5
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
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
6
Relationships:
Name Relationship type Parent Child Cardinality
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
7
comp_nota No CHARACTER Yes
VARYING(40)
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
comp_forma No CHARACTER No
VARYING(40)
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)
8
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)
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
9
Relationships:
Name Relationship type Parent Child Cardinality
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More
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:
10
Name Relationship type Parent Child Cardinality
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More
Constraints:
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: Grupo
Primary key constraint PK_Grupo
name
Comment
Table options
Attributes:
Column name Primary key Data type Not NULL Comment
gru_id Yes SERIAL Yes
gru_nome No CHARACTER Yes
VARYING(40)
Relationships:
Name Relationship type Parent Child Cardinality
Grupo_Animal Non Identifying Grupo Animal Zero Or More
Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (gru_nome)
Not Null Column Constraint NOT NULL (gru_id)
PK_Grupo Primary Key Table Constraint PRIMARY KEY (gru_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
11
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
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)
Relationships:
Name Relationship type Parent Child Cardinality
12
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)
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)
13
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
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: 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:
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (raca_id)
14
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)
PK_Semem Primary Key Table Constraint PRIMARY KEY (sem_id)
15
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
Attributes:
16
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
gru_id No INTEGER No
ani_serieNF No CHARACTER No
VARYING(40)
ani_nf No CHARACTER No
VARYING(40)
raca_id No INTEGER No
ani_desc No CHARACTER No
VARYING(40)
ani_tipo No CHARACTER No
VARYING(40)
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
Grupo_Animal Non Identifying Grupo Animal Zero Or More
Lote_Animal Non Identifying Lote 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)
Grupo_Animal Foreign Key Table Constraint FOREIGN KEY (gru_id)
REFERENCES Grupo(gru_id)
19
Lote_Animal Foreign Key Table Constraint FOREIGN KEY (lote_id)
REFERENCES Lote(lote_id)
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:
20
Name Type Level Constraint
Not Null Column Constraint NOT NULL (rep_id)
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
21
Relationships:
Name Relationship type Parent Child Cardinality
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
22
comp_nota No CHARACTER Yes
VARYING(40)
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
comp_forma No CHARACTER No
VARYING(40)
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)
23
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)
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
24
Relationships:
Name Relationship type Parent Child Cardinality
Venda_contas_receber Non Identifying Venda contas_receber Zero Or More
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:
25
Name Relationship type Parent Child Cardinality
Pessoa_Fisica Non Identifying Pessoa Fisica Zero Or More
Constraints:
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: Grupo
Primary key constraint PK_Grupo
name
Comment
Table options
Attributes:
Column name Primary key Data type Not NULL Comment
gru_id Yes SERIAL Yes
gru_nome No CHARACTER Yes
VARYING(40)
Relationships:
Name Relationship type Parent Child Cardinality
Grupo_Animal Non Identifying Grupo Animal Zero Or More
Constraints:
Name Type Level Constraint
Not Null Column Constraint NOT NULL (gru_nome)
Not Null Column Constraint NOT NULL (gru_id)
PK_Grupo Primary Key Table Constraint PRIMARY KEY (gru_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
26
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
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)
Relationships:
Name Relationship type Parent Child Cardinality
27
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)
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)
28
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
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: 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:
Name Type Level Constraint
Primary Key Table Constraint PRIMARY KEY (raca_id)
29
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)
PK_Semem Primary Key Table Constraint PRIMARY KEY (sem_id)
30
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
Attributes:
31
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
33
comp_id Animal_Compra PK, FK INTEGER Yes
comp_nota Compra CHARACTER Yes
VARYING(40)
comp_serie_nota Compra CHARACTER Yes
VARYING(40)
comp_tipo Compra CHARACTER Yes
VARYING(40)
comp_total Compra MONEY Yes
est_id Cidade FK INTEGER No
est_id Estado PK SERIAL Yes
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
gru_id Animal FK INTEGER No
gru_id Grupo PK SERIAL Yes
gru_nome Grupo CHARACTER Yes
VARYING(40)
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_id Animal FK INTEGER No
lote_id Lote PK SERIAL Yes
lote_nome Lote CHARACTER Yes
VARYING(40)
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 Pesagem PK SERIAL Yes
pes_id Pessoa PK SERIAL Yes
pes_id Venda FK INTEGER No
pes_id Juridica FK INTEGER No
34
pes_id Fisica FK INTEGER No
pes_id Compra FK INTEGER No
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
raca_id Animal FK INTEGER No
raca_id Raca PK SERIAL Yes
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 Animal_Reproducao PK, FK INTEGER Yes
rep_id Reproducao PK SERIAL 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 tipos_insumos PK SERIAL Yes
ti_id Insumos FK INTEGER No
ti_nome tipos_insumos PK CHARACTER Yes
VARYING(40)
ti_nome Insumos FK CHARACTER No
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
vend_formRec Venda CHARACTER Yes
VARYING(40)
vend_id Animal_Venda PK, FK INTEGER Yes
vend_id contas_receber FK INTEGER No
vend_id Venda PK SERIAL Yes
vend_nota Venda CHARACTER Yes
VARYING(40)
35
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_desc
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default
Attribute: ani_id
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: ani_id
Table Pesagem
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 Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
37
Attribute: ani_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ani_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ani_id
Table Animal_Vacinas
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
38
Default
Attribute: ani_nasc
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
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_peso
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
39
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: ani_tipo
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)
Domain name
Not NULL No
Default
Attribute: ar_tipo
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)
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_Venda
Comment
Primary key No
Data type INTEGER
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_valor
Table Animal_Venda
Comment
Primary key No
Data type MONEY
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_id
Table Cidade
Comment
Primary key Yes
41
Data type SERIAL
Domain name
Not NULL Yes
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_forma
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
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_Insumos
Comment
Primary key Yes
Data type INTEGER
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 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 Cidade
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: est_id
Table Estado
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
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: gru_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: gru_id
Table Grupo
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
45
Attribute: gru_nome
Table Grupo
Comment
Primary key No
Data type CHARACTER VARYING(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
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
46
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
Attribute: jur_mun
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
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
47
Attribute: lote_nome
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
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
Default
Attribute: pag_pagamento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
48
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
Not NULL No
Default
Attribute: pes_complemento
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
49
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 Pesagem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
Attribute: pes_id
Table Pessoa
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
Attribute: pes_id
Table Venda
Comment
Primary key No
Data type INTEGER
50
Domain name
Not NULL No
Default
Attribute: pes_id
Table Juridica
Comment
Primary key No
Data type INTEGER
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 Compra
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
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
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: pes_nome
Table Pessoa
Comment
Primary key No
51
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
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default
Attribute: pes_telefone
Table Pessoa
Comment
52
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: raca_id
Table Animal
Comment
Primary key No
Data type INTEGER
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_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
Table contas_receber
53
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
Attribute: rep_id
54
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: rep_id
Table Reproducao
Comment
Primary key Yes
Data type SERIAL
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
55
Attribute: sem_quant
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ti_id
Table tipos_insumos
Comment
Primary key Yes
Data type SERIAL
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_nome
Table tipos_insumos
Comment
Primary key Yes
Data type CHARACTER VARYING(40)
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: vac_estoque
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default
56
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
Default
57
Attribute: vend_formRec
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default
Attribute: vend_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
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 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
Not NULL Yes
58
Default
Attribute: vend_total
Table Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default
59
Attribute details
60
Attribute: ac_valor
Table Animal_Compra
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default
Attribute: ani_desc
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default
Attribute: ani_id
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: ani_id
Table Pesagem
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 Animal_Compra
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
61
Attribute: ani_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ani_id
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ani_id
Table Animal_Vacinas
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
62
Default
Attribute: ani_nasc
Table Animal
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
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_peso
Table Animal
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
63
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: ani_tipo
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)
Domain name
Not NULL No
Default
Attribute: ar_tipo
Table Animal_Reproducao
Comment
Primary key No
Data type CHARACTER(40)
64
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_Venda
Comment
Primary key No
Data type INTEGER
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_valor
Table Animal_Venda
Comment
Primary key No
Data type MONEY
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_id
Table Cidade
Comment
Primary key Yes
65
Data type SERIAL
Domain name
Not NULL Yes
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_forma
Table Compra
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL No
Default
Attribute: comp_formapag
Table Compra
Comment
66
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default
Attribute: comp_id
Table Compra_Insumos
Comment
Primary key Yes
Data type INTEGER
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 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
67
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 Cidade
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: est_id
Table Estado
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
Attribute: est_nome
Table Estado
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default
Attribute: est_sigla
68
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: gru_id
Table Animal
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: gru_id
Table Grupo
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
69
Attribute: gru_nome
Table Grupo
Comment
Primary key No
Data type CHARACTER VARYING(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
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
70
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
Attribute: jur_mun
Table Juridica
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL Yes
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
71
Attribute: lote_nome
Table Lote
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
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
Default
Attribute: pag_pagamento
Table contas_pagar
Comment
Primary key No
Data type DATE
Domain name
Not NULL No
72
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
Not NULL No
Default
Attribute: pes_complemento
Table Pessoa
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
73
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 Pesagem
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
Attribute: pes_id
Table Pessoa
Comment
Primary key Yes
Data type SERIAL
Domain name
Not NULL Yes
Default
Attribute: pes_id
Table Venda
Comment
Primary key No
Data type INTEGER
74
Domain name
Not NULL No
Default
Attribute: pes_id
Table Juridica
Comment
Primary key No
Data type INTEGER
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 Compra
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL No
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
Data type INTEGER
Domain name
Not NULL No
Default
Attribute: pes_nome
Table Pessoa
Comment
Primary key No
75
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
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default
Attribute: pes_telefone
Table Pessoa
Comment
76
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: raca_id
Table Animal
Comment
Primary key No
Data type INTEGER
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_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
Table contas_receber
77
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
Attribute: rep_id
78
Table Animal_Reproducao
Comment
Primary key Yes
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: rep_id
Table Reproducao
Comment
Primary key Yes
Data type SERIAL
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
79
Attribute: sem_quant
Table Semem
Comment
Primary key No
Data type INTEGER
Domain name
Not NULL Yes
Default
Attribute: ti_id
Table tipos_insumos
Comment
Primary key Yes
Data type SERIAL
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_nome
Table tipos_insumos
Comment
Primary key Yes
Data type CHARACTER VARYING(40)
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: vac_estoque
Table Vacinas
Comment
Primary key No
Data type CHARACTER(40)
Domain name
Not NULL No
Default
80
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
Default
81
Attribute: vend_formRec
Table Venda
Comment
Primary key No
Data type CHARACTER VARYING(40)
Domain name
Not NULL Yes
Default
Attribute: vend_id
Table Animal_Venda
Comment
Primary key Yes
Data type INTEGER
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 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
Not NULL Yes
82
Default
Attribute: vend_total
Table Venda
Comment
Primary key No
Data type MONEY
Domain name
Not NULL Yes
Default
83
List of relationships
84
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
85
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 Cascade
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 Cascade
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 Cascade
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: Grupo_Animal
Name Grupo_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Grupo (gru_id)
Child with columns Animal (gru_id)
Update rule None
Delete rule None
86
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
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 Cascade
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 Cascade
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 Cascade
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
87
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
88
89
Relationship details
90
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
91
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 Cascade
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 Cascade
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 Cascade
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: Grupo_Animal
Name Grupo_Animal
Relationship type Non Identifying
Cardinality Zero Or More
Parent with columns Grupo (gru_id)
Child with columns Animal (gru_id)
Update rule None
Delete rule None
92
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
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 Cascade
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 Cascade
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 Cascade
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
93
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
94
95
List of domains
No domains available.
96
No domains available.
97
Domain details
98
No domains available.
99
List of views
No views available.
100
No views available.
101
View details
102
No views available.
103
List of procedures
No procedures available.
104
No procedures available.
105
Procedure details
106
No procedures available.
107
List of sequences
No sequences available.
108
No sequences available.
109
Sequence details
110
No sequences available.
111