[Supplier] Phase 1: Database Schema & Initial Supplier Seeding #195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Establish the foundational data structures for supplier records, contact details, and price check timestamps in PostgreSQL via Drizzle ORM, and seed the initial verified workshop suppliers directly into the database.
Principles Applied
principle-foundational-thinking: Data structures and schema before downstream logic.principle-laziness-protocol: Seed verified workshop suppliers directly into DB to avoid premature CRUD UI forms.Scope & Tasks
supplierstable inapps/management/lib/db/schema.ts(id, code, name, category, description, picName, phone, address, invoiceTerms, lastCheckedAt, createdAt).0017_add_suppliers.sql.scripts/seed-suppliers.ts) populating the 15 real workshop suppliers from existing purchase records.apps/management/lib/suppliers/queries.tslinking suppliers to their historically purchased items.Acceptance Criteria
pnpm verify:managementpasses.[Pemasok] Phase 1: Database Schema & Initial Supplier Seedingto [Supplier] Phase 1: Database Schema & Initial Supplier Seeding