summaryrefslogtreecommitdiff
path: root/config/noticeColumnsConfig.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-07-02 00:17:29 +0000
committerjoonhoekim <26rote@gmail.com>2025-07-02 00:17:29 +0000
commit6a9ca20deddcdcbe8495cf5a73ec7ea5f53f9b55 (patch)
treef48f3a84174f0be560fdf5ed7797fffd8a412a91 /config/noticeColumnsConfig.ts
parent4fb273b7fc85352183113f1240fc33f7d6c98328 (diff)
parentcee824301521c181000d501c0236db99079bbae4 (diff)
(merge) merged local commits
Diffstat (limited to 'config/noticeColumnsConfig.ts')
-rw-r--r--config/noticeColumnsConfig.ts54
1 files changed, 54 insertions, 0 deletions
diff --git a/config/noticeColumnsConfig.ts b/config/noticeColumnsConfig.ts
new file mode 100644
index 00000000..9e9565fb
--- /dev/null
+++ b/config/noticeColumnsConfig.ts
@@ -0,0 +1,54 @@
+import { Notice } from "@/db/schema/notice"
+
+export interface NoticeColumnConfig {
+ id: keyof Notice
+ label: string
+ group?: string
+ excelHeader?: string
+ type?: string
+}
+
+export const noticeColumnsConfig: NoticeColumnConfig[] = [
+ {
+ id: "id",
+ label: "ID",
+ excelHeader: "ID",
+ },
+ {
+ id: "pagePath",
+ label: "페이지 경로",
+ excelHeader: "페이지 경로",
+ },
+ {
+ id: "title",
+ label: "제목",
+ excelHeader: "제목",
+ },
+ {
+ id: "content",
+ label: "내용",
+ excelHeader: "내용",
+ },
+ {
+ id: "authorId",
+ label: "작성자 ID",
+ excelHeader: "작성자 ID",
+ },
+ {
+ id: "isActive",
+ label: "활성 상태",
+ excelHeader: "활성 상태",
+ },
+ {
+ id: "createdAt",
+ label: "생성일",
+ excelHeader: "생성일",
+ type: "date",
+ },
+ {
+ id: "updatedAt",
+ label: "수정일",
+ excelHeader: "수정일",
+ type: "date",
+ },
+] \ No newline at end of file