Files
database/migrations/000.490.sql
T

11 lines
388 B
SQL

drop table if exists ingrid_deliveries;
CREATE TABLE ingrid_deliveries (
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
order_id INTEGER REFERENCES orders (id) NOT NULL,
ingrid_checkout_session_id TEXT NOT NULL,
complete_session_response TEXT,
completed_at TIMESTAMP WITH TIME ZONE DEFAULT NULL,
UNIQUE (order_id),
UNIQUE (ingrid_checkout_session_id)
);