Skip to content

Commit

Permalink
Update temoa_schema.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
SutubraResearch committed Sep 19, 2023
1 parent 21369f3 commit 907205c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion data_files/temoa_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ CREATE TABLE "EmissionLimit" (
"emis_limit" real,
"emis_limit_units" text,
"emis_limit_notes" text,
PRIMARY KEY("periods","emis_comm"),
PRIMARY KEY("periods","emis_comm","regions"),
FOREIGN KEY("periods") REFERENCES "time_periods"("t_periods"),
FOREIGN KEY("emis_comm") REFERENCES "commodities"("comm_name")
);
Expand Down Expand Up @@ -799,4 +799,26 @@ CREATE TABLE "LinkedTechs" (
FOREIGN KEY("emis_comm") REFERENCES "commodities"("comm_name"),
PRIMARY KEY("primary_region","primary_tech", "emis_comm")
);
CREATE TABLE `tech_rps` (
`region` text,
`tech` text,
`notes` TEXT,
PRIMARY KEY(`region`,`tech`),
FOREIGN KEY(`region`) REFERENCES `regions`(`regions`),
FOREIGN KEY(`tech`) REFERENCES `technologies`(`tech`)
);
CREATE TABLE `RenewablePortfolioStandard` (
`regions` text,
`periods` INTEGER,
`rps` real,
`rps_notes` text,
PRIMARY KEY(`regions`,`periods`),
FOREIGN KEY(`periods`) REFERENCES `time_periods`(`t_periods`)
);
CREATE TABLE IF NOT EXISTS "tech_variable" (
"tech" text,
"notes" TEXT,
PRIMARY KEY("tech"),
FOREIGN KEY("tech") REFERENCES "technologies"("tech")
);
COMMIT;

0 comments on commit 907205c

Please sign in to comment.