diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-23 02:44:05 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-23 02:44:05 +0000 |
| commit | da00bbf203534b2663289d6fe45b6ed8663e7e11 (patch) | |
| tree | 859f0444b679807b1cc1b223aac4989958641d01 /db/schema | |
| parent | c8e93fad9b1f3b1e4d99b23fc3d99dd5f463742a (diff) | |
(최겸) 구매 인포메이션, 공지사항 수정
Diffstat (limited to 'db/schema')
| -rw-r--r-- | db/schema/information.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/schema/information.ts b/db/schema/information.ts index f20723d5..325f02a6 100644 --- a/db/schema/information.ts +++ b/db/schema/information.ts @@ -1,5 +1,6 @@ import { pgTable, varchar, timestamp, serial, boolean, text as textArea, integer } from "drizzle-orm/pg-core";
import { relations } from "drizzle-orm";
+import { users } from "./users";
// 페이지별 인포메이션 관리 테이블
export const pageInformation = pgTable("page_information", {
@@ -13,9 +14,11 @@ export const pageInformation = pgTable("page_information", { // 활성화 여부
isActive: boolean("is_active").default(true).notNull(), // 활성화 여부
-
+
+ createdBy: integer("created_by").references(() => users.id), // 생성자
// 메타데이터
createdAt: timestamp("created_at").defaultNow().notNull(),
+ updatedBy: integer("updated_by").references(() => users.id), // 수정자
updatedAt: timestamp("updated_at").defaultNow().notNull(),
});
|
