diff --git a/src/db.rs b/src/db.rs index 8717af8..91b41fd 100644 --- a/src/db.rs +++ b/src/db.rs @@ -144,7 +144,7 @@ impl DBTable for ParsedStorage { parse_engine INTEGER, need_description_check INTEGER, UNIQUE(item, parse_engine) - FOREIGN KEY(item) REFERENCES Ebay_Items(item_id) + FOREIGN KEY(item) REFERENCES Listings(item_id) "; } impl ParsedStorage { @@ -208,7 +208,7 @@ impl DBTable for ItemAppearances { timestamp INTEGER NOT NULL, current_bid_usd_cents INTEGER, UNIQUE(item, timestamp), - FOREIGN KEY(item) REFERENCES Ebay_Items(item_id), + FOREIGN KEY(item) REFERENCES Listings(item_id), FOREIGN KEY(category, timestamp) REFERENCES Pages_Parsed(category, timestamp) "; } @@ -272,7 +272,7 @@ pub struct Listing { pub image_url: String, } impl DBTable for Listing { - const TABLE_NAME: &'static str = "Ebay_Items"; + const TABLE_NAME: &'static str = "Listings"; const TABLE_SCHEMA: &'static str = " id INTEGER PRIMARY KEY, item_id INTEGER NOT NULL UNIQUE,