Updated sql scheme
parent
d3fa8b4bf5
commit
54a86bce4e
|
@ -23,6 +23,7 @@ CREATE TABLE `users` (
|
||||||
`posts` int(11) DEFAULT 0,
|
`posts` int(11) DEFAULT 0,
|
||||||
`followers` int(11) DEFAULT 0,
|
`followers` int(11) DEFAULT 0,
|
||||||
`following` int(11) DEFAULT 0,
|
`following` int(11) DEFAULT 0,
|
||||||
|
'state' tinyint(4) DEFAULT 0,
|
||||||
`last_login` datetime DEFAULT NULL,
|
`last_login` datetime DEFAULT NULL,
|
||||||
`created_at` datetime NOT NULL,
|
`created_at` datetime NOT NULL,
|
||||||
`updated_at` datetime DEFAULT NULL
|
`updated_at` datetime DEFAULT NULL
|
||||||
|
@ -41,7 +42,7 @@ CREATE TABLE `pictures` (
|
||||||
`dislikes` int(11) DEFAULT 0,
|
`dislikes` int(11) DEFAULT 0,
|
||||||
`location` varchar(20) NOT NULL,
|
`location` varchar(20) NOT NULL,
|
||||||
`description` varchar(250) DEFAULT NULL,
|
`description` varchar(250) DEFAULT NULL,
|
||||||
`created` datetime NOT NULL
|
`created_at` datetime NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue