9 lines
337 B
MySQL
9 lines
337 B
MySQL
|
CREATE TABLE `followers` (
|
||
|
`id` integer PRIMARY KEY NOT NULL,
|
||
|
`followingCollection` text NOT NULL,
|
||
|
`userid` integer,
|
||
|
`remoteUserid` integer,
|
||
|
FOREIGN KEY (`userid`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE no action,
|
||
|
FOREIGN KEY (`remoteUserid`) REFERENCES `remoteUser`(`id`) ON UPDATE no action ON DELETE no action
|
||
|
);
|