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.
18 lines
379 B
SQL
Executable File
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
|
|
);
|