feat: TASK-101 - optimize Prisma schema, compound indexes, wholesale price and Rx fields
This commit is contained in:
parent
5377ddbfbf
commit
08c968300f
@ -4,7 +4,7 @@
|
|||||||
"title": "Prisma Schema & Database Indexing Optimization (PostgreSQL)",
|
"title": "Prisma Schema & Database Indexing Optimization (PostgreSQL)",
|
||||||
"priority": "HIGH",
|
"priority": "HIGH",
|
||||||
"assigned_role": "04_dev_backend",
|
"assigned_role": "04_dev_backend",
|
||||||
"status": "pending",
|
"status": "completed",
|
||||||
"max_file_count": 2,
|
"max_file_count": 2,
|
||||||
"estimated_minutes": 20,
|
"estimated_minutes": 20,
|
||||||
"dependency_task_ids": [],
|
"dependency_task_ids": [],
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"project_name": "Canina Veterinary E-Commerce System",
|
"project_name": "Canina Veterinary E-Commerce System",
|
||||||
"project_mode": "BROWNFIELD",
|
"project_mode": "BROWNFIELD",
|
||||||
"status": "AWAITING_USER_APPROVAL",
|
"status": "IN_PROGRESS",
|
||||||
"checkpoint": {
|
"checkpoint": {
|
||||||
"stage": "AUDIT_AND_PRIORITIZATION_COMPLETED",
|
"stage": "TASK_EXECUTION",
|
||||||
"active_agent": "02_product_manager",
|
"active_agent": "04_dev_backend",
|
||||||
"current_ticket_id": "TASK-101",
|
"current_ticket_id": "TASK-101",
|
||||||
"sub_step_index": 0,
|
"sub_step_index": 0,
|
||||||
"total_sub_steps": 8
|
"total_sub_steps": 8
|
||||||
|
|||||||
@ -127,6 +127,8 @@ model Product {
|
|||||||
categoryId String @map("category_id") @db.Uuid
|
categoryId String @map("category_id") @db.Uuid
|
||||||
categorySlug String @map("category_slug") @db.VarChar(100)
|
categorySlug String @map("category_slug") @db.VarChar(100)
|
||||||
priceValue Decimal @map("price_value") @db.Decimal(15, 2)
|
priceValue Decimal @map("price_value") @db.Decimal(15, 2)
|
||||||
|
wholesalePrice Decimal? @map("wholesale_price") @db.Decimal(15, 2)
|
||||||
|
requiresRx Boolean @default(false) @map("requires_rx")
|
||||||
buyPrice Decimal @default(0) @map("buy_price") @db.Decimal(15, 2)
|
buyPrice Decimal @default(0) @map("buy_price") @db.Decimal(15, 2)
|
||||||
priceDisplay String @map("price_display") @db.VarChar(50)
|
priceDisplay String @map("price_display") @db.VarChar(50)
|
||||||
unit String @db.VarChar(50)
|
unit String @db.VarChar(50)
|
||||||
@ -150,6 +152,8 @@ model Product {
|
|||||||
@@index([categorySlug])
|
@@index([categorySlug])
|
||||||
@@index([suitableFor])
|
@@index([suitableFor])
|
||||||
@@index([productGroup])
|
@@index([productGroup])
|
||||||
|
@@index([requiresRx])
|
||||||
|
@@index([categorySlug, suitableFor])
|
||||||
@@map("products")
|
@@map("products")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user