feat: add stock keeping units management

- Created migration to drop `type` column from `stock_keeping_units` table.
- Added `Guild` model to Prisma schema.
- Implemented `BusinessActivitiesQueryService` for querying business activities.
- Developed `GoodsSharedService` for handling goods creation and updates.
- Introduced DTOs for creating and updating stock keeping units.
- Created controller and service for managing stock keeping units.
- Implemented response DTOs for stock keeping units service.
- Established module for stock keeping units management.
This commit is contained in:
2026-05-07 20:30:24 +03:30
parent 658496320b
commit fbe7230865
77 changed files with 2065 additions and 1846 deletions
+12 -2
View File
@@ -90,6 +90,8 @@ async function main() {
let upserted = 0
let skipped = 0
const guild = await prisma.guild.findFirst({})
for (const row of rows) {
const code = (row.ID || '').trim()
const name = (row.DescriptionOfID || '').trim()
@@ -108,14 +110,22 @@ async function main() {
code,
name,
VAT: vat,
type: 'GOLD',
guild: {
connect: {
id: guild?.id,
},
},
is_public: isPublic,
is_domestic: isDomestic,
},
update: {
name,
VAT: vat,
type: 'GOLD',
guild: {
connect: {
id: guild?.id,
},
},
is_public: isPublic,
is_domestic: isDomestic,
},