Updated sql scheme

master
Alex 2021-06-27 21:30:31 +02:00
parent d3fa8b4bf5
commit 54a86bce4e
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ CREATE TABLE `users` (
`posts` int(11) DEFAULT 0,
`followers` int(11) DEFAULT 0,
`following` int(11) DEFAULT 0,
'state' tinyint(4) DEFAULT 0,
`last_login` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL
@ -41,7 +42,7 @@ CREATE TABLE `pictures` (
`dislikes` int(11) DEFAULT 0,
`location` varchar(20) NOT NULL,
`description` varchar(250) DEFAULT NULL,
`created` datetime NOT NULL
`created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------