SQL
CREATE TABLE proposal_sources (
proposal_id TEXT NOT NULL,
event_id TEXT NOT NULL,
PRIMARY KEY (proposal_id, event_id),
FOREIGN KEY (proposal_id) REFERENCES proposals(id) ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED,
FOREIGN KEY (event_id) REFERENCES events(id) ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
proposal_id |
TEXT |
✓ | Rename | Drop | |
event_id |
TEXT |
✓ | Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
event_id |
events.id |
proposal_id |
proposals.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| idx_proposal_sources_event |
event_id
|
SQL | Drop | |
| sqlite_autoindex_proposal_sources_1 |
|
✓ | SQL | Drop |