6 lines
333 B
SQL
6 lines
333 B
SQL
CREATE TABLE agenda_volunteers (
|
|
agenda_item_id INTEGER NOT NULL REFERENCES agenda_items(id) ON DELETE CASCADE,
|
|
contact_id INTEGER NOT NULL REFERENCES directory_contacts(id) ON DELETE CASCADE,
|
|
PRIMARY KEY(agenda_item_id,contact_id)
|
|
);
|
|
CREATE INDEX idx_agenda_volunteers_contact ON agenda_volunteers(contact_id,agenda_item_id);
|