CREATE TABLE `collection` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `category_id` bigint(20) NOT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `is_public` tinyint(4) NOT NULL DEFAULT '1',
  `avatar_image` varchar(255) CHARACTER SET utf8 NOT NULL,
  `edit_role` varchar(25) CHARACTER SET utf8 NOT NULL DEFAULT 'onlyme',
  `created_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `school_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `school_id` (`school_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1