feat: tcin is the primary key now

main
Ricard Illa 2023-06-25 11:33:06 +02:00
parent 9f3a4865ce
commit 915f3c2a4c
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ def main():
password=opts.pg_password,
database=opts.pg_database,
table=opts.pg_table,
table_key="gtin13",
table_key="tcin",
))
# fmt: on

View File

@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS {{ params.output_table }} (
gtin13 VARCHAR PRIMARY KEY,
tcin VARCHAR NOT NULL,
tcin VARCHAR PRIMARY KEY,
gtin13 VARCHAR NOT NULL,
primary_category VARCHAR NOT NULL,
materials VARCHAR[],
packaging INT NOT NULL,