-- ALTER TABLE `reply` DROP FOREIGN KEY `reply_ibfk_1`;
--> statement-breakpoint
-- ALTER TABLE `tokens` DROP FOREIGN KEY `tokens_ibfk_1`;
--> statement-breakpoint
ALTER TABLE `chats` MODIFY COLUMN `is_read` boolean NOT NULL;
--> statement-breakpoint
ALTER TABLE `chats`
MODIFY COLUMN `is_read` boolean NOT NULL DEFAULT false;
--> statement-breakpoint
ALTER TABLE `chats` MODIFY COLUMN `is_replied` boolean NOT NULL;
--> statement-breakpoint
ALTER TABLE `chats`
MODIFY COLUMN `is_replied` boolean NOT NULL DEFAULT false;
--> statement-breakpoint
-- ALTER TABLE `tokens`
-- MODIFY COLUMN `generated_at` timestamp NOT NULL DEFAULT(CURRENT_TIMESTAMP);
--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `is_admin` boolean;
--> statement-breakpoint
-- ALTER TABLE `users`
-- MODIFY COLUMN `created_at` timestamp NOT NULL DEFAULT(CURRENT_TIMESTAMP);
--> statement-breakpoint
-- ALTER TABLE `users`
-- MODIFY COLUMN `updated_at` timestamp NOT NULL DEFAULT(CURRENT_TIMESTAMP) ON UPDATE CURRENT_TIMESTAMP;
--> statement-breakpoint
-- ALTER TABLE `reply`
-- ADD CONSTRAINT `reply_chat_id_chats_id_fk` FOREIGN KEY (`chat_id`) REFERENCES `chats` (`id`) ON DELETE cascade ON UPDATE cascade;
-- --> statement-breakpoint
-- ALTER TABLE `tokens`
-- ADD CONSTRAINT `tokens_email_users_email_fk` FOREIGN KEY (`email`) REFERENCES `users` (`email`) ON DELETE cascade ON UPDATE cascade;