CREATE TABLE `captcha_codes` (
	`id` integer PRIMARY KEY NOT NULL,
	`token` text NOT NULL,
	`code` text NOT NULL,
	`expires_at` integer NOT NULL,
	`used` integer DEFAULT false NOT NULL,
	`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `captcha_codes_token_unique` ON `captcha_codes` (`token`);--> statement-breakpoint
DROP INDEX `users_public_slug_unique`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `public_slug`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `bio_markdown`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `bio_visibility`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `social_links_json`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `avatar_visibility`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `discover_visible`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `discover_location`;--> statement-breakpoint
ALTER TABLE `users` DROP COLUMN `discover_show_location`;