Enhance company types management: updated schema to include display order and relationships, modified validation to use company type XID, and seeded initial company types data. Updated services to reflect new structure and ensure proper data handling.

This commit is contained in:
2025-12-01 13:26:06 +05:30
parent d1eef782a2
commit e5861654e9
6 changed files with 159 additions and 55 deletions

View File

@@ -831,6 +831,12 @@ export class MinglarService {
profileImage: true,
},
},
companyTypes: {
select: {
id: true,
companyTypeName: true,
},
},
},
});
@@ -902,6 +908,12 @@ export class MinglarService {
profileImage: true,
},
},
companyTypes: {
select: {
id: true,
companyTypeName: true,
},
},
},
});
@@ -1435,6 +1447,12 @@ export class MinglarService {
documentType: true,
},
},
companyTypes: {
select: {
id: true,
companyTypeName: true,
},
},
user: {
select: {
id: true,