Deploy from Lumerel

This commit is contained in:
Lumerel Deploy
2026-02-17 14:09:28 +00:00
commit b5b93a0e4d
9 changed files with 1210 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
/**
* Migration: Create todos table
*
* Creates the main todos table with all necessary fields for managing todo items.
*/
$pdo->exec("
CREATE TABLE IF NOT EXISTS todos (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
description TEXT,
is_completed BOOLEAN DEFAULT FALSE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
)
");