Refactor mail schema: simplify products and source fields by removing enum definitions
This commit is contained in:
+2
-20
@@ -7,27 +7,9 @@ export const mailTable = pgTable("mail", {
|
||||
email: text("email").notNull(),
|
||||
phone: text("phone"),
|
||||
request: text("request"),
|
||||
products: text("products", {
|
||||
enum: [
|
||||
"Интерактивная презентация",
|
||||
"Удаленная демонстрация",
|
||||
"Архитектурная визуализация",
|
||||
"Создание сайтов",
|
||||
"Web-тур по 360 сферам",
|
||||
],
|
||||
}).array(),
|
||||
products: text("products").array(),
|
||||
from: text("from").notNull(),
|
||||
referer: text("referer"),
|
||||
createdAt: timestamp("created_at").defaultNow(),
|
||||
source: text("source", {
|
||||
enum: [
|
||||
"Увидели на выставке или форуме",
|
||||
"Видели у других застройщиков",
|
||||
"Из рейтингов и статей",
|
||||
"Нашли в интернете",
|
||||
"Перешли по рекламе",
|
||||
"Из рассылки",
|
||||
"Другое",
|
||||
],
|
||||
}).array().default([]),
|
||||
source: text("source").array().default([]),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user