forked from Yara724/api
Add tenant-scoped insurer, staff and branch management APIs
Support all six staff roles and editable Fanavaran codes, insurer login accounts and optional branch details. Enforce tenant boundaries and role-specific fields, document setup and extend regression coverage.
This commit is contained in:
@@ -8,6 +8,11 @@ import {
|
||||
} from "class-validator";
|
||||
|
||||
export class CreateBranchDto {
|
||||
@ApiProperty({ required: false, description: "Full official branch name" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
fullName?: string;
|
||||
|
||||
@ApiProperty({ example: "شهرک غرب" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
|
||||
@@ -11,6 +11,9 @@ export class BranchModel {
|
||||
@Prop({ required: true })
|
||||
name: string;
|
||||
|
||||
@Prop({ type: String })
|
||||
fullName?: string;
|
||||
|
||||
@Prop({ required: true })
|
||||
code: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user