aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/db/migration/V1.4__ActivityPub followers.sql
blob: 16b39f62faf434bc080fcd38b7a566c981f307e7 (plain) (blame)
1
2
3
4
5
6
7
CREATE TABLE IF NOT EXISTS `followers` (
  `user_id` int(10) unsigned DEFAULT NULL,
  `acct` char(64) NOT NULL,
  `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  UNIQUE KEY `acct` (`acct`),
  foreign key (user_id) references users(id)
);