2022-08-17 17:45:00 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS api_kgon_synchronizations (
|
2022-08-18 02:48:35 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2022-08-17 17:45:00 +00:00
|
|
|
item TEXT NOT NULL,
|
2022-08-18 05:57:23 +00:00
|
|
|
last_code BIGINT NOT NULL,
|
2022-08-17 17:45:00 +00:00
|
|
|
synchronized_at BIGINT NOT NULL DEFAULT (extract(epoch from now()) * 1000)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX uidx_api_kgon_synchronizations_item ON api_kgon_synchronizations (item);
|