CREATE TABLE table_column_settings (
    id SERIAL,
    table_name VARCHAR(100) NOT NULL,
    user_id INTEGER DEFAULT NULL,
    tenant_id INTEGER DEFAULT NULL,
    branch_id INTEGER DEFAULT NULL,
    hidden_columns JSON DEFAULT NULL,
    isDeleted BOOLEAN NOT NULL DEFAULT FALSE,
    updatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (id)
);
CREATE INDEX tcs_table_idx ON table_column_settings(table_name);
CREATE INDEX tcs_tenant_idx ON table_column_settings(tenant_id);
CREATE INDEX tcs_branch_idx ON table_column_settings(branch_id);
CREATE INDEX tcs_user_idx ON table_column_settings(user_id);
