mirror of
https://github.com/skoelle/focusapp.git
synced 2026-09-17 20:10:25 +00:00
21 lines
661 B
SQL
21 lines
661 B
SQL
-- FocusApp Datenbank initialisieren
|
|
-- Fuehren Sie dieses Script mit MariaDB Root-Berechtigung aus
|
|
|
|
CREATE DATABASE IF NOT EXISTS focusapp CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
|
|
CREATE USER IF NOT EXISTS 'focusapp'@'%' IDENTIFIED BY 'change-password';
|
|
GRANT ALL PRIVILEGES ON focusapp.* TO 'focusapp'@'%';
|
|
|
|
FLUSH PRIVILEGES;
|
|
|
|
USE focusapp;
|
|
|
|
CREATE TABLE IF NOT EXISTS FocusTasks (
|
|
Id INT AUTO_INCREMENT PRIMARY KEY,
|
|
Title VARCHAR(255) NOT NULL,
|
|
Description VARCHAR(2000) NULL,
|
|
`Order` INT NOT NULL,
|
|
CreatedAt DATETIME NOT NULL,
|
|
UpdatedAt DATETIME NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|