diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-17 10:50:28 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-17 10:50:28 +0000 |
| commit | fb276ed3db86fe4fc0c0fcd870fd3d085b034be0 (patch) | |
| tree | 4a8ab1027d7fd14602a0f837d4e18b04e2169e58 /config/techVendorContactsColumnsConfig.ts | |
| parent | 4eb7532f822c821fb6b69bf103bd075fefba769b (diff) | |
(대표님) 벤더데이터 S-EDP 변경사항 대응(seperator), 정기평가 점수오류, dim 준비
Diffstat (limited to 'config/techVendorContactsColumnsConfig.ts')
| -rw-r--r-- | config/techVendorContactsColumnsConfig.ts | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/config/techVendorContactsColumnsConfig.ts b/config/techVendorContactsColumnsConfig.ts new file mode 100644 index 00000000..e1afe200 --- /dev/null +++ b/config/techVendorContactsColumnsConfig.ts @@ -0,0 +1,70 @@ +import { TechVendorContact } from "@/db/schema/techVendors";
+
+/**
+ * 테이블/엑셀에 보여줄 컬럼 한 칸을 어떻게 렌더링할지 결정하는 설정
+ */
+export interface TechVendorColumnConfig {
+ /**
+ * TechVendorContact 객체의 어느 필드를 표시할지
+ */
+ id: keyof TechVendorContact;
+
+ /** 화면·엑셀에서 보여줄 컬럼명 */
+ label: string;
+
+ /** (선택) 그룹핑/카테고리 */
+ group?: string;
+
+ /** (선택) Excel에서의 헤더 */
+ excelHeader?: string;
+
+ /** (선택) 데이터 타입(예: date, string, number 등), 포맷 지정용 */
+ type?: string;
+}
+
+/**
+ * Tech Vendor Contacts 테이블에서
+ * 어떤 컬럼들을 어떤 순서로 표시할 것인지 정의.
+ */
+export const techVendorContactsColumnsConfig: TechVendorColumnConfig[] = [
+ {
+ id: "contactName",
+ label: "Contact Name",
+ excelHeader: "Contact Name",
+ },
+ {
+ id: "contactPosition",
+ label: "Contact Position",
+ excelHeader: "Contact Position",
+ },
+ {
+ id: "contactEmail",
+ label: "Contact Email",
+ excelHeader: "Contact Email",
+ },
+ {
+ id: "contactPhone",
+ label: "Contact Phone",
+ excelHeader: "Contact Phone",
+ },
+ {
+ id: "country",
+ label: "Country",
+ excelHeader: "Country",
+ },
+ {
+ id: "isPrimary",
+ label: "isPrimary",
+ excelHeader: "isPrimary",
+ },
+ {
+ id: "createdAt",
+ label: "Created At",
+ excelHeader: "Created At",
+ },
+ {
+ id: "updatedAt",
+ label: "Updated At",
+ excelHeader: "Updated At",
+ },
+];
\ No newline at end of file |
