SQL
CREATE TABLE "core_message_queue" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"raingull_id" char(32) NOT NULL,
"priority" integer NOT NULL,
"status" varchar(20) NOT NULL,
"retry_count" integer NOT NULL,
"last_retry_at" datetime NULL,
"error_message" text NULL,
"created_at" datetime NOT NULL,
"updated_at" datetime NOT NULL,
"completed_at" datetime NULL,
"formatted_message_id" bigint NOT NULL REFERENCES "core_formatted_messages" ("id") DEFERRABLE INITIALLY DEFERRED,
"user_id" varchar(8) NOT NULL REFERENCES "core_users" ("uuid") DEFERRABLE INITIALLY DEFERRED,
"service_id" bigint NOT NULL REFERENCES "core_services" ("id") DEFERRABLE INITIALLY DEFERRED
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
id |
INTEGER |
✓ | Rename | Drop | |
raingull_id |
char(32) |
Rename | Drop | ||
priority |
INTEGER |
Rename | Drop | ||
status |
varchar(20) |
Rename | Drop | ||
retry_count |
INTEGER |
Rename | Drop | ||
last_retry_at |
datetime |
✓ | Rename | Drop | |
error_message |
TEXT |
✓ | Rename | Drop | |
created_at |
datetime |
Rename | Drop | ||
updated_at |
datetime |
Rename | Drop | ||
completed_at |
datetime |
✓ | Rename | Drop | |
formatted_message_id |
bigint |
Rename | Drop | ||
user_id |
varchar(8) |
Rename | Drop | ||
service_id |
bigint |
Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
service_id |
core_services.id |
user_id |
core_users.uuid |
formatted_message_id |
core_formatted_messages.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| core_messag_raingul_787603_idx |
|
SQL | Drop | |
| core_messag_status_da4b56_idx |
|
SQL | Drop | |
| core_message_queue_formatted_message_id_8f6a9880 |
formatted_message_id
|
SQL | Drop | |
| core_message_queue_raingull_id_0971cae9 |
raingull_id
|
SQL | Drop | |
| core_message_queue_service_id_94e742db |
service_id
|
SQL | Drop | |
| core_message_queue_user_id_d774d873 |
user_id
|
SQL | Drop |