2019-01-15 05:07:35 +01:00
|
|
|
CREATE TABLE relation_requests
|
2019-01-22 03:00:52 +01:00
|
|
|
(id INT NOT NULL AUTO_INCREMENT,
|
|
|
|
from_id INT NOT NULL,
|
|
|
|
to_id INT NOT NULL,
|
|
|
|
status ENUM('open', 'accepted', 'declined') NOT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (id),
|
2019-01-15 05:07:35 +01:00
|
|
|
FOREIGN KEY (from_id) REFERENCES users (id),
|
|
|
|
FOREIGN KEY (to_id) REFERENCES users (id));
|