compassmock/drizzle/0003_burly_kabuki.sql
Nicholai 006c960ac2 feat(db): add customers/vendors tables and seed data
Extend schema with customers and vendors tables, add project
fields (status, address, client_name, project_manager), and
seed with 40 customers, 25 vendors, and 10 projects from
client CSV data.
2026-01-24 13:29:32 -07:00

18 lines
379 B
SQL
Executable File

CREATE TABLE `customers` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text,
`phone` text,
`created_at` text NOT NULL
);
--> statement-breakpoint
CREATE TABLE `vendors` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`category` text DEFAULT 'Subcontractor' NOT NULL,
`email` text,
`phone` text,
`address` text,
`created_at` text NOT NULL
);