From fefca6304eefea94f41057f9f934b0e19ceb54bb Mon Sep 17 00:00:00 2001 From: 0-Zz-ang Date: Fri, 22 Aug 2025 13:47:37 +0900 Subject: (박서영)Compliance 설문/응답 리스트 생성 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/complianceColumnsConfig.ts | 69 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 config/complianceColumnsConfig.ts (limited to 'config/complianceColumnsConfig.ts') diff --git a/config/complianceColumnsConfig.ts b/config/complianceColumnsConfig.ts new file mode 100644 index 00000000..52085757 --- /dev/null +++ b/config/complianceColumnsConfig.ts @@ -0,0 +1,69 @@ +import { ComplianceSurveyTemplate } from "@/db/schema/compliance" + +export interface ComplianceColumnConfig { + id: keyof ComplianceSurveyTemplate + label: string + group?: string + excelHeader?: string + type?: string + sortable?: boolean + filterable?: boolean + width?: number +} + +export const complianceColumnsConfig: ComplianceColumnConfig[] = [ + { + id: "name", + label: "템플릿명", + excelHeader: "템플릿명", + type: "text", + sortable: true, + filterable: true, + width: 200, + }, + { + id: "description", + label: "설명", + excelHeader: "설명", + type: "text", + sortable: true, + filterable: true, + width: 300, + }, + { + id: "version", + label: "버전", + excelHeader: "버전", + type: "text", + sortable: true, + filterable: true, + width: 100, + }, + { + id: "isActive", + label: "상태", + excelHeader: "상태", + type: "boolean", + sortable: true, + filterable: true, + width: 100, + }, + { + id: "createdAt", + label: "생성일", + excelHeader: "생성일", + type: "date", + sortable: true, + filterable: true, + width: 120, + }, + { + id: "updatedAt", + label: "수정일", + excelHeader: "수정일", + type: "date", + sortable: true, + filterable: true, + width: 120, + }, +] -- cgit v1.2.3