8 lines
337 B
SQL
8 lines
337 B
SQL
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
|
|
);
|