gosora/schema/pgsql/query_likes.sql

8 lines
240 B
SQL

CREATE TABLE `likes` (
`weight` tinyint DEFAULT 1 not null,
`targetItem` int not null,
`targetType` varchar (50) DEFAULT 'replies' not null,
`sentBy` int not null,
`createdAt` timestamp not null,
`recalc` tinyint DEFAULT 0 not null
);