Files

14 lines
557 B
SQL
Raw Permalink Normal View History

+17
2026-09-20 14:56:39 -05:00
CREATE TABLE `secret_sources` (
`id` text PRIMARY KEY NOT NULL,
`user_id` text NOT NULL,
`name` text NOT NULL,
`kind` text DEFAULT 'onepassword-connect' NOT NULL,
`base_url` text NOT NULL,
`token` text NOT NULL,
`shared` integer DEFAULT false NOT NULL,
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE INDEX `idx_secret_sources_user` ON `secret_sources` (`user_id`);