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.
632 B ยท 18 lines
SQL
123456789101112131415161718CREATE TABLE `audit_log` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `workspace_id` integer NOT NULL, `actor_type` text NOT NULL, `actor_id` text NOT NULL, `actor_user_id` integer, `action` text NOT NULL, `entity_type` text NOT NULL, `entity_id` text NOT NULL, `before` text, `after` text, `metadata` text, `changed_fields` text, `created_at` integer NOT NULL);--> statement-breakpointCREATE INDEX `audit_log_workspace_created_idx` ON `audit_log` (`workspace_id`,`created_at`);--> statement-breakpointCREATE INDEX `audit_log_entity_idx` ON `audit_log` (`workspace_id`,`entity_type`,`entity_id`,`created_at`);