Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
790 B ยท 19 lines
SQL
at incident-api
1234567891011121314151617181920CREATE TABLE `private_location` ( `id` integer PRIMARY KEY NOT NULL, `name` text NOT NULL, `token` text NOT NULL, `last_seen_at` integer, `workspace_id` integer, `created_at` integer DEFAULT (strftime('%s', 'now')), `updated_at` integer DEFAULT (strftime('%s', 'now')), FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE no action ON DELETE no action);--> statement-breakpointCREATE TABLE `private_location_to_monitor` ( `private_location_id` integer, `monitor_id` integer, `created_at` integer DEFAULT (strftime('%s', 'now')), `deleted_at` integer, FOREIGN KEY (`private_location_id`) REFERENCES `private_location`(`id`) ON UPDATE no action ON DELETE cascade, FOREIGN KEY (`monitor_id`) REFERENCES `monitor`(`id`) ON UPDATE no action ON DELETE cascade);