Ask for organization business field at signup, including jewelry.

Store Didar-style industry on the org so registration, settings, and Ask Mento share the same catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-03 16:45:59 +03:30
co-authored by Cursor
parent ce94658fcd
commit d2f66d11fc
14 changed files with 286 additions and 8 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Organization" ADD COLUMN "businessField" TEXT;
+2
View File
@@ -134,6 +134,8 @@ model Organization {
id String @id @default(cuid())
name String
slug String @unique
/// زمینه فعالیت سازمان — فهرست هم‌تراز صنایع دیدار
businessField String?
baseCurrency String @default("IRR")
enabledCurrencies String[] @default(["IRR", "USD", "EUR"])
createdAt DateTime @default(now())
+2
View File
@@ -34,6 +34,7 @@ async function main() {
slug: 'demo-mento',
baseCurrency: 'IRR',
enabledCurrencies: ['IRR', 'USD', 'EUR'],
businessField: 'tech',
users: {
create: {
email,
@@ -60,6 +61,7 @@ async function main() {
data: {
baseCurrency: 'IRR',
enabledCurrencies: ['IRR', 'USD', 'EUR'],
businessField: 'tech',
},
});
for (const row of [