nidus-sync/db/migrations/00008_add_sync.sql
Eli Ribble 41587c3694
Move database logic into separate subdirectory
I'm trying to see if this speeds up builds a bit. May not without a
module boundary, but for now it's nice organization to have as the
program grows.
2025-11-24 18:08:31 +00:00

12 lines
359 B
SQL

-- +goose Up
CREATE TABLE fieldseeker_sync (
id SERIAL PRIMARY KEY,
created TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
records_created INTEGER NOT NULL,
records_updated INTEGER NOT NULL,
records_unchanged INTEGER NOT NULL,
organization_id INTEGER REFERENCES organization(id) NOT NULL
);
-- +goose Down
DROP TABLE fieldseeker_sync;