ddf
This commit is contained in:
parent
71f280027d
commit
f43b2bee80
@ -71,17 +71,17 @@ GO
|
||||
DROP TABLE IF EXISTS FT1_Registration;
|
||||
CREATE TABLE FT1_Registration (
|
||||
id INTEGER identity(1,1) PRIMARY KEY,
|
||||
expected_response_fk integer,
|
||||
submission_date_fk integer,
|
||||
response_time_fk integer,
|
||||
drug_fk integer,
|
||||
factory_API_fk integer,
|
||||
factory_bulk_fk integer,
|
||||
factory_package_fk integer,
|
||||
country_fk integer,
|
||||
expected_response_time_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
submission_date_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
response_time_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
drug_fk integer FOREIGN KEY REFERENCES dim_drugs(drug_sk),
|
||||
factory_API_fk integer FOREIGN KEY REFERENCES dim_factories(factory_sk),
|
||||
factory_bulk_fk integer FOREIGN KEY REFERENCES dim_factories(factory_sk),
|
||||
factory_package_fk integer FOREIGN KEY REFERENCES dim_factories(factory_sk),
|
||||
country_fk integer FOREIGN KEY REFERENCES dim_countries(country_sk),
|
||||
--claim status do uspójnienia z tabelą dim_status, wydaje mi się, że można by dodać przedrostek claim do kolumn, będzie czytelniej :)
|
||||
claim_status_fk integer,
|
||||
indication_fk integer,
|
||||
claim_status_fk integer FOREIGN KEY REFERENCES dim_claim_statuses(claim_status_sk),
|
||||
indication_fk integer FOREIGN KEY REFERENCES dim_indications(indication_sk),
|
||||
claim_number integer,
|
||||
-- cnt jest tylko zliczeniowy, będzie miał 1, więc dałbym tinyint
|
||||
cnt tinyint,
|
||||
@ -91,14 +91,14 @@ GO
|
||||
DROP TABLE IF EXISTS FT2_Refund;
|
||||
CREATE TABLE FT2_Refund (
|
||||
id INTEGER identity(1,1) PRIMARY KEY,
|
||||
claim_status_fk integer,
|
||||
drug_fk integer,
|
||||
submission_date_fk integer,
|
||||
expected_response_fk integer,
|
||||
response_time_fk integer,
|
||||
country_fk integer,
|
||||
indication_fk integer,
|
||||
registration_country_fk integer,
|
||||
claim_status_fk integer FOREIGN KEY REFERENCES dim_claim_statuses(claim_status_sk),
|
||||
drug_fk integer FOREIGN KEY REFERENCES dim_drugs(drug_sk),
|
||||
submission_date_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
expected_response_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
response_time_fk integer FOREIGN KEY REFERENCES dim_time(time_sk),
|
||||
country_fk integer FOREIGN KEY REFERENCES dim_countries(country_sk),
|
||||
indication_fk integer FOREIGN KEY REFERENCES dim_indications(indication_sk),
|
||||
registration_country_fk integer FOREIGN KEY REFERENCES dim_countries(country_sk),
|
||||
--decimal zjada mniej, niż money, do przedyskutowania (precyzja - liczba miejsc przed i po przecinku, skala - liczba miejsc po przecinku)
|
||||
price money,
|
||||
reimbursement_amountPercent smallint,
|
||||
|
Loading…
Reference in New Issue
Block a user