SQL
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
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
chat_id |
INTEGER |
Rename | Drop | ||
message_id |
INTEGER |
Rename | Drop | ||
login_attempt_id |
TEXT |
Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
login_attempt_id |
login_attempts.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|