summaryrefslogtreecommitdiff
path: root/config/complianceColumnsConfig.ts
diff options
context:
space:
mode:
author0-Zz-ang <s1998319@gmail.com>2025-08-22 13:47:37 +0900
committer0-Zz-ang <s1998319@gmail.com>2025-08-22 13:47:37 +0900
commitfefca6304eefea94f41057f9f934b0e19ceb54bb (patch)
treef4914faa83e242a68d27feac58ebf0c527302cd2 /config/complianceColumnsConfig.ts
parentdbdae213e39b82ff8ee565df0774bd2f72f06140 (diff)
(박서영)Compliance 설문/응답 리스트 생성
Diffstat (limited to 'config/complianceColumnsConfig.ts')
-rw-r--r--config/complianceColumnsConfig.ts69
1 files changed, 69 insertions, 0 deletions
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,
+ },
+]