{ "ecr": "031", "slug": "crisis-event", "concept": "CrisisEvent", "list_method": "CrisisEvents", "get_method": "CrisisEvent", "table": "crisis_events", "migration": "000032", "route_group": "/crisis", "route_resource": "events", "perm_const": "PermCrisisRead", "perm_code": "admin.crisis.read", "seed_code": "demo_crisis_event", "register_fn": "registerCrisisEvents", "test_name": "TestCrisisCareEvents", "row_type": "CrisisEventRow", "err_name": "ErrCrisisEventNotFound", "capability": "CrisisCare", "bc": "Content_Safety", "predecessor": "ECR-030", "title": "CrisisCare · CrisisEvent(只读薄切片)", "non_goals": "事件写入工单流 · 医疗诊断 · UGC · 真支付", "columns": [ { "name": "code", "sql": "varchar(64) NOT NULL UNIQUE", "go_name": "Code", "go_type": "string", "json": "code", "seed": "demo_crisis_event" }, { "name": "title", "sql": "varchar(128) NOT NULL", "go_name": "Title", "go_type": "string", "json": "title", "seed": "示例危机事件占位" }, { "name": "severity", "sql": "varchar(16) NOT NULL CHECK (severity IN ('high','critical'))", "go_name": "Severity", "go_type": "string", "json": "severity", "seed": "high" }, { "name": "active", "sql": "boolean NOT NULL DEFAULT true", "go_name": "Active", "go_type": "bool", "json": "active", "seed": true }, { "name": "system", "sql": "boolean NOT NULL DEFAULT false", "go_name": "System", "go_type": "bool", "json": "system", "seed": true } ] }