8 lines
191 B
MySQL
8 lines
191 B
MySQL
|
CREATE TABLE votes (
|
||
|
requestUrl varchar,
|
||
|
userId int,
|
||
|
PRIMARY KEY (requestUrl,userId),
|
||
|
FOREIGN KEY (requestUrl) REFERENCES requests(url),
|
||
|
FOREIGN KEY (userId) REFERENCES users(userId)
|
||
|
);
|