37555-vm/db/migrations/001_create_snippets_table.sql
Flatlogic Bot 6f610a1cc6 E
2026-01-18 18:15:11 +00:00

9 lines
313 B
SQL

-- Migration to create the snippets table for storing shared code.
CREATE TABLE IF NOT EXISTS `snippets` (
`id` varchar(16) NOT NULL,
`code` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;