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
+1
View File
@@ -45,6 +45,7 @@ export class AuthService {
data: {
name: dto.organizationName,
slug,
businessField: dto.businessField,
users: {
create: {
email: dto.email.toLowerCase(),
+10 -1
View File
@@ -1,4 +1,10 @@
import { IsEmail, IsString, MinLength } from 'class-validator';
import {
IsEmail,
IsIn,
IsString,
MinLength,
} from 'class-validator';
import { BUSINESS_FIELDS } from '@mento/shared';
export class LoginDto {
@IsEmail()
@@ -24,4 +30,7 @@ export class RegisterOrganizationDto {
@IsString()
@MinLength(6)
password!: string;
@IsIn([...BUSINESS_FIELDS])
businessField!: (typeof BUSINESS_FIELDS)[number];
}