Commit b8343ed5 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci

database: Replanning the database and its data marts 43

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
parent 28c39966
......@@ -68,7 +68,7 @@ comment on column dim_component.description is 'HD model, OS type, processor '
comment on column dim_component.detail is 'HD size and OS distro';
comment on table dim_machine is 'Dimension table with machines inventory';
comment on table fact_inventory is 'Fact table with the history of machines '
'connections with their inventory';
'connections and their inventory';
comment on table fact_alert is 'Fact table with the history of machines '
'modifications';
comment on column fact_alert.hd_alert is 'Alert representing changes in the '
......
......@@ -80,14 +80,7 @@ create table dim_machine (
/* -------------------------------------------------------------------------- */
/* Fact tables */
/* Fact table with the history of machines connections */
create table fact_availability (
load_date integer references dim_date not null,
contact_date date not null,
machine_id integer references dim_machine not null
);
/* Fact table with the history of machines connections with their inventory */
/* Fact table with the history of machines connections and their inventory */
create table fact_inventory (
id bigserial primary key,
load_date integer references dim_date not null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment