cmc-sales/go-app/sql/schema/007_attachments.sql
Karl Cordes 4f54a93c62 Add Go app
Add start-development.sh
2025-07-02 22:04:36 +10:00

15 lines
535 B
SQL

-- 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;