7 lines
222 B
MySQL
7 lines
222 B
MySQL
|
CREATE TABLE relation_requests
|
||
|
(id SERIAL PRIMARY KEY,
|
||
|
from_id INTEGER NOT NULL,
|
||
|
to_id INTEGER NOT NULL,
|
||
|
status STATUS NOT NULL,
|
||
|
FOREIGN KEY (from_id) REFERENCES users (id),
|
||
|
FOREIGN KEY (to_id) REFERENCES users (id));
|