You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
We need to create a database table to store notification details for the notification system. This table will ensure notifications are tracked, retried, and processed effectively. The table should include fields for tracking event type, public key, notification content, retry attempts, status, and other relevant details.
Acceptance Criteria:
A database table named notifications is created with the following schema:
CREATETABLEnotifications (
id SERIALPRIMARY KEY,
event VARCHAR(50) NOT NULL, -- Event type (e.g., bounty_assigned)
pubkey VARCHAR(100) NOT NULL, -- User's pubkey
content TEXTNOT NULL, -- Notification content
retries INT DEFAULT 0, -- Retry count
status VARCHAR(20) DEFAULT 'PENDING', -- Status: PENDING, COMPLETE, FAILED, WAITING_KEY_EXCHANGE
uuid UUID NOT NULL, -- Unique identifier for the notification
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
The table should support the following statuses:
PENDING
COMPLETE
FAILED
WAITING_KEY_EXCHANGE
Ensure the uuid column is indexed for efficient querying by notification ID.
Verify that the table is successfully created in the database.
Additional Notes:
This table is foundational for the notification system and will be used to track the state of notifications as they are processed.
The text was updated successfully, but these errors were encountered:
Description:
We need to create a database table to store notification details for the notification system. This table will ensure notifications are tracked, retried, and processed effectively. The table should include fields for tracking event type, public key, notification content, retry attempts, status, and other relevant details.
Acceptance Criteria:
A database table named
notifications
is created with the following schema:The table should support the following statuses:
PENDING
COMPLETE
FAILED
WAITING_KEY_EXCHANGE
Ensure the
uuid
column is indexed for efficient querying by notification ID.Verify that the table is successfully created in the database.
Additional Notes:
The text was updated successfully, but these errors were encountered: