summaryrefslogtreecommitdiff
path: root/config/complianceColumnsConfig.ts
blob: 5208575735211a31391124ba1cd783d228c725fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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,
  },
]