gosora/schema/mysql/query_likes.sql

8 lines
262 B
MySQL
Raw Normal View History

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` datetime DEFAULT UTC_TIMESTAMP() not null,
`recalc` tinyint DEFAULT 0 not null
);