Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37764 amit 1
-- Migration (2026-09-24): record WHY a partner store was closed, who closed it and the approval mail.
2
-- fofo.fofo_store.closed / closed_timestamp stay the closure flag; this table is the audit row behind it.
3
-- New table only - no ALTER on an existing table. Applied on hadb1 2026-09-24.
4
 
5
CREATE TABLE IF NOT EXISTS fofo.store_closure
6
(
7
    id                   INT          NOT NULL AUTO_INCREMENT,
8
    fofo_id              INT          NOT NULL,
9
    reason               VARCHAR(50)  NOT NULL,
10
    remark               VARCHAR(1000) NOT NULL,
11
    approval_document_id INT          NOT NULL,
12
    closed_by            VARCHAR(100) NOT NULL,
13
    create_timestamp     DATETIME     NOT NULL,
14
    PRIMARY KEY (id),
15
    KEY idx_store_closure_fofo_id (fofo_id)
16
) ENGINE = InnoDB
17
  DEFAULT CHARSET = utf8mb4;