1515 - Subir o projeto de flash de venda da GF no repositório (Seguir o modelo padrão)
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
-- Create table
|
||||
create table BSC_FATURAMENTO
|
||||
(
|
||||
chave_faturamento NUMBER(15) not null,
|
||||
chave_empresa NUMBER(15) not null,
|
||||
categoria_pai VARCHAR2(200) not null,
|
||||
categoria VARCHAR2(300),
|
||||
chave_produto NUMBER(15),
|
||||
descricao_produto VARCHAR2(300),
|
||||
chave_familia NUMBER(15),
|
||||
quantidade NUMBER(15,2),
|
||||
valor_venda NUMBER(15,2),
|
||||
valor_bruto NUMBER(15,2),
|
||||
referencia DATE,
|
||||
chave_categoria_pai NUMBER(10),
|
||||
chave_categoria NUMBER(10)
|
||||
)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 1
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
-- Add comments to the columns
|
||||
comment on column BSC_FATURAMENTO.chave_faturamento
|
||||
is 'Chave da tabela';
|
||||
comment on column BSC_FATURAMENTO.chave_empresa
|
||||
is 'Código da loja';
|
||||
comment on column BSC_FATURAMENTO.categoria_pai
|
||||
is 'Descrição da categoria pai';
|
||||
comment on column BSC_FATURAMENTO.categoria
|
||||
is 'Descrição da categoria';
|
||||
comment on column BSC_FATURAMENTO.chave_produto
|
||||
is 'Código do produto';
|
||||
comment on column BSC_FATURAMENTO.descricao_produto
|
||||
is 'Descrição do Produto';
|
||||
comment on column BSC_FATURAMENTO.chave_familia
|
||||
is 'Código da família do produto';
|
||||
comment on column BSC_FATURAMENTO.quantidade
|
||||
is 'Quanitdade vendida';
|
||||
comment on column BSC_FATURAMENTO.valor_venda
|
||||
is 'Valor toral vendido';
|
||||
comment on column BSC_FATURAMENTO.valor_bruto
|
||||
is 'Valor bruto vendido';
|
||||
comment on column BSC_FATURAMENTO.referencia
|
||||
is 'Mês de referência do faturamento';
|
||||
comment on column BSC_FATURAMENTO.chave_categoria_pai
|
||||
is 'Código da categoria pai';
|
||||
comment on column BSC_FATURAMENTO.chave_categoria
|
||||
is 'Código da categoria';
|
||||
-- Create/Recreate indexes
|
||||
create index BSC_FATURAMENTO_IDX on BSC_FATURAMENTO (CHAVE_CATEGORIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_IDX1 on BSC_FATURAMENTO (REFERENCIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_IDX2 on BSC_FATURAMENTO (REFERENCIA, CHAVE_CATEGORIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_IDX3 on BSC_FATURAMENTO (REFERENCIA, CHAVE_EMPRESA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
-- Create/Recreate primary, unique and foreign key constraints
|
||||
alter table BSC_FATURAMENTO
|
||||
add constraint BSC_FATURAMENTO_PK primary key (CHAVE_FATURAMENTO)
|
||||
using index
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
@@ -0,0 +1,119 @@
|
||||
-- Create table
|
||||
create table BSC_FATURAMENTO_METAS
|
||||
(
|
||||
chave_meta NUMBER(10) not null,
|
||||
chave_empresa NUMBER(10) not null,
|
||||
categoria VARCHAR2(300) not null,
|
||||
meta_faturamento NUMBER(25,10),
|
||||
meta_markdown NUMBER(25,10),
|
||||
referencia DATE not null,
|
||||
total_faturamento NUMBER(25,10),
|
||||
total_markdown NUMBER(25,10),
|
||||
categoria_pai VARCHAR2(200),
|
||||
chave_categoria_pai NUMBER(10),
|
||||
chave_categoria NUMBER(10)
|
||||
)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 1
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
-- Add comments to the columns
|
||||
comment on column BSC_FATURAMENTO_METAS.chave_meta
|
||||
is 'Chave da meta';
|
||||
comment on column BSC_FATURAMENTO_METAS.chave_empresa
|
||||
is 'Código da Loja';
|
||||
comment on column BSC_FATURAMENTO_METAS.categoria
|
||||
is 'Categoria do fatumento';
|
||||
comment on column BSC_FATURAMENTO_METAS.meta_faturamento
|
||||
is 'Meta para faturamento na referência';
|
||||
comment on column BSC_FATURAMENTO_METAS.meta_markdown
|
||||
is 'Meta para makdown na referência';
|
||||
comment on column BSC_FATURAMENTO_METAS.referencia
|
||||
is 'Mês de referência da meta';
|
||||
comment on column BSC_FATURAMENTO_METAS.total_faturamento
|
||||
is 'Valor total a ser faturado';
|
||||
comment on column BSC_FATURAMENTO_METAS.total_markdown
|
||||
is 'Valor Markdown';
|
||||
comment on column BSC_FATURAMENTO_METAS.categoria_pai
|
||||
is 'Categoria pai do faturamento';
|
||||
comment on column BSC_FATURAMENTO_METAS.chave_categoria_pai
|
||||
is 'Chave da categoria pai';
|
||||
comment on column BSC_FATURAMENTO_METAS.chave_categoria
|
||||
is 'Chave da categoria';
|
||||
-- Create/Recreate indexes
|
||||
create index BCS_FATURAMENTO_METAS_IDX on BSC_FATURAMENTO_METAS (CHAVE_CATEGORIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_METAS_IDX1 on BSC_FATURAMENTO_METAS (REFERENCIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_METAS_IDX2 on BSC_FATURAMENTO_METAS (REFERENCIA, CHAVE_EMPRESA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
create index BSC_FATURAMENTO_METAS_IDX3 on BSC_FATURAMENTO_METAS (REFERENCIA, CHAVE_EMPRESA, CHAVE_CATEGORIA)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
-- Create/Recreate primary, unique and foreign key constraints
|
||||
alter table BSC_FATURAMENTO_METAS
|
||||
add constraint BSC_FATURAMENTO_METAS_PK primary key (CHAVE_META)
|
||||
using index
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
@@ -0,0 +1,48 @@
|
||||
-- Create table
|
||||
create table BSC_USUARIO_CATEGORIA
|
||||
(
|
||||
chave_usuario_categoria NUMBER(15) not null,
|
||||
chave_usuario NUMBER(15),
|
||||
chave_empresa NUMBER(15),
|
||||
categoria_pai VARCHAR2(200),
|
||||
categoria VARCHAR2(300)
|
||||
)
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 1
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
-- Add comments to the columns
|
||||
comment on column BSC_USUARIO_CATEGORIA.chave_usuario_categoria
|
||||
is 'Código da tabela';
|
||||
comment on column BSC_USUARIO_CATEGORIA.chave_usuario
|
||||
is 'Código do usuário';
|
||||
comment on column BSC_USUARIO_CATEGORIA.chave_empresa
|
||||
is 'Código da Empresa';
|
||||
comment on column BSC_USUARIO_CATEGORIA.categoria_pai
|
||||
is 'Categoria pai vinculado';
|
||||
comment on column BSC_USUARIO_CATEGORIA.categoria
|
||||
is 'Categoria vinculado';
|
||||
-- Create/Recreate primary, unique and foreign key constraints
|
||||
alter table BSC_USUARIO_CATEGORIA
|
||||
add constraint BSC_USUARIO_CATEGORIA_PK primary key (CHAVE_USUARIO_CATEGORIA)
|
||||
using index
|
||||
tablespace C5DADOS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 128K
|
||||
next 128K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
pctincrease 0
|
||||
);
|
||||
Reference in New Issue
Block a user