-- Table: public.dashboard_flx_tributos -- DROP TABLE IF EXISTS public.dashboard_flx_tributos; CREATE TABLE public.dashboard_flx_tributos( filial integer NOT NULL, ano integer NOT NULL, mes integer NOT NULL, icms numeric(18,6) NOT NULL, ipi numeric(18,6) NOT NULL, iss numeric(18,6) NOT NULL, pis numeric(18,6) NOT NULL, cofins numeric(18,6) NOT NULL, icmsst numeric(18,6) NOT NULL, importacao numeric(18,6) NOT NULL, difal numeric(18,6) NOT NULL, CONSTRAINT pk_dashboard_flx_tributos PRIMARY KEY (filial, ano, mes) ) TABLESPACE pg_default; ALTER TABLE public.dashboard_flx_tributos OWNER to postgres; COMMENT ON TABLE public.dashboard_flx_tributos IS 'Dashboard de Tributos'; -- Table: public.dashboard_vnd_vendas_origem_pedido -- DROP TABLE public.dashboard_vnd_vendas_origem_pedido; CREATE TABLE public.dashboard_vnd_vendas_origem_pedido ( id serial NOT NULL, filial integer NOT NULL, origem_pedido character varying(1) COLLATE pg_catalog."default" NOT NULL, ano_mes date NOT NULL, valor_liquido numeric(18,6) NOT NULL, CONSTRAINT dashboard_vnd_vendas_origem_pedido_pkey PRIMARY KEY (id), CONSTRAINT uk_dashboard_vnd_vendas_origem_pedido UNIQUE (filial, origem_pedido, ano_mes) ) TABLESPACE pg_default; ALTER TABLE public.dashboard_vnd_vendas_origem_pedido OWNER to postgres;