diff options
Diffstat (limited to 'db/schema')
| -rw-r--r-- | db/schema/notice.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/db/schema/notice.ts b/db/schema/notice.ts index c7cfee93..45715349 100644 --- a/db/schema/notice.ts +++ b/db/schema/notice.ts @@ -18,7 +18,17 @@ export const notice = pgTable("notice", { // 활성화 여부
isActive: boolean("is_active").default(true).notNull(), // 활성화 여부
-
+
+ // 팝업 설정
+ isPopup: boolean("is_popup").default(false), // 팝업 여부
+
+ // 유효기간 설정
+ startAt: timestamp("start_at"), // 게시 시작 일시
+ endAt: timestamp("end_at"), // 게시 종료 일시
+
+ // '다시 보지 않기' 설정
+ dontShowDuration: varchar("dont_show_duration", { length: 50 }), // 'day' 또는 null/'never'
+
// 메타데이터
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull(),
|
