first commit
This commit is contained in:
27
apps/backend/src/modules/inquiry/models/inquiry.ts
Normal file
27
apps/backend/src/modules/inquiry/models/inquiry.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
|
||||
export const Inquiry = model.define("inquiry", {
|
||||
id: model.id().primaryKey(),
|
||||
name: model.text(),
|
||||
email: model.text(),
|
||||
phone: model.text(),
|
||||
company_name: model.text().nullable(),
|
||||
city: model.text(),
|
||||
dimensions: model.text().nullable(),
|
||||
message: model.text(),
|
||||
status: model.enum([
|
||||
"new",
|
||||
"contacted",
|
||||
"quote_sent",
|
||||
"won",
|
||||
"lost",
|
||||
"archived",
|
||||
]).default("new"),
|
||||
notes: model.text().nullable(),
|
||||
product_id: model.text().nullable(),
|
||||
sales_channel_id: model.text().nullable(),
|
||||
metadata: model.json().nullable(),
|
||||
})
|
||||
|
||||
export default Inquiry
|
||||
|
||||
Reference in New Issue
Block a user