-- Schema for attachments table CREATE TABLE IF NOT EXISTS `attachments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `principle_id` int(11) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, `name` varchar(255) NOT NULL, `filename` varchar(255) NOT NULL, `file` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `size` int(11) NOT NULL, `description` text NOT NULL, `archived` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;