brainz-social-old-3/drizzle/0003_followers_table.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
);