建立手动发货补偿记录边界
This commit is contained in:
1 parent
70378afd23
commit
8559ac7108
11 files changed
+288
-42
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS order_reconciliations (
|
||||
id TEXT PRIMARY KEY,
|
||||
order_id TEXT NOT NULL,
|
||||
cookie_id TEXT NOT NULL,
|
||||
kind TEXT NOT NULL,
|
||||
status TEXT NOT NULL DEFAULT 'pending',
|
||||
error_message TEXT NOT NULL DEFAULT '',
|
||||
attempts INTEGER NOT NULL DEFAULT 0,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_order_reconciliations_pending
|
||||
ON order_reconciliations(status, created_at, id);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS order_reconciliations;
|
||||
Reference in new issue
Block a user