Query
CREATE TABLE `messages` (
`chat_id` integer NOT NULL,
`message_id` integer NOT NULL,
`login_attempt_id` text NOT NULL,
FOREIGN KEY (`login_attempt_id`) REFERENCES `login_attempts`(`id`) ON UPDATE no action ON DELETE no action
)
CREATE TABLE `messages` (
`chat_id` integer NOT NULL,
`message_id` integer NOT NULL,
`login_attempt_id` text NOT NULL,
FOREIGN KEY (`login_attempt_id`) REFERENCES `login_attempts`(`id`) ON UPDATE no action ON DELETE no action
)