27 lines
770 B
SQL
27 lines
770 B
SQL
CREATE TABLE `show_event_shows` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`show_event_id` integer NOT NULL,
|
|
`sanction_number` text NOT NULL,
|
|
`show_date` text,
|
|
`club_name` text NOT NULL,
|
|
`show_type` text,
|
|
`specialty_breed` text,
|
|
`city` text,
|
|
`state` text,
|
|
`address` text,
|
|
`secretary` text,
|
|
`secretary_email` text,
|
|
`catalog_url` text,
|
|
`maps_url` text,
|
|
`display_order` integer DEFAULT 0,
|
|
FOREIGN KEY (`show_event_id`) REFERENCES `show_events`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `show_events` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`name` text NOT NULL,
|
|
`notes` text,
|
|
`created_at` text DEFAULT (current_timestamp) NOT NULL,
|
|
`updated_at` text DEFAULT (current_timestamp) NOT NULL
|
|
);
|