8 lines
No EOL
207 B
SQL
8 lines
No EOL
207 B
SQL
CREATE TABLE relations
|
|
(id INT NOT NULL AUTO_INCREMENT,
|
|
from_id INT NOT NULL,
|
|
to_id INT NOT NULL,
|
|
|
|
PRIMARY KEY(id),
|
|
FOREIGN KEY (from_id) REFERENCES users(id),
|
|
FOREIGN KEY (to_id) REFERENCES users(id)); |