28 lines
638 B
TypeScript
28 lines
638 B
TypeScript
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
|
|
|