mirror of
https://github.com/SrIzan10/lofi.git
synced 2026-06-06 00:56:53 +00:00
19 lines
580 B
SQL
19 lines
580 B
SQL
CREATE TABLE `passkey` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`name` text,
|
|
`public_key` text NOT NULL,
|
|
`user_id` text NOT NULL,
|
|
`credential_id` text NOT NULL,
|
|
`counter` integer NOT NULL,
|
|
`device_type` text NOT NULL,
|
|
`backed_up` integer NOT NULL,
|
|
`transports` text,
|
|
`created_at` integer,
|
|
`aaguid` text,
|
|
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX `passkey_userId_idx` ON `passkey` (`user_id`);
|
|
--> statement-breakpoint
|
|
CREATE INDEX `passkey_credentialID_idx` ON `passkey` (`credential_id`);
|