summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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,
+ },
+]