Initial delta: full developer manual + DB bootstrap

Generated from finetuning-plattform develop @ 70b203c on 2026-05-14.

Contents:
- MANUAL.md       — full developer manual, setup at front (28 sections)
- bootstrap-db.sh — one-command DB initialization
- db/01-schema.sql       — MariaDB schema, no data
- db/02-seed.sql         — reference data (ACL, email templates, API registry)
- db/03-default-users.sql — admin + test user, argon2id hashes

Drop-in package for new developers joining the platform.
This commit is contained in:
2026-05-14 12:44:47 +02:00
commit 8932534623
6 changed files with 1922 additions and 0 deletions

25
db/03-default-users.sql Normal file
View File

@@ -0,0 +1,25 @@
-- Default users for a fresh local install.
-- Run AFTER 01-schema.sql and 02-seed.sql.
--
-- Credentials:
-- admin@finetune.ai / admin123 (id=1, role=superuser via user_to_acl)
-- testuser@example.com / test123 (id=2, role=user)
--
-- Hashes below are argon2id (PHP password_hash, PASSWORD_ARGON2ID).
-- Regenerate with: docker compose exec fpm php -r "echo password_hash('YOUR_PASS', PASSWORD_ARGON2ID);"
-- IMPORTANT: change these passwords on any deployment that's not strictly local dev.
INSERT INTO `user`
(`user_id`, `user_login`, `user_email`, `user_name`, `user_password_hash`, `user_account_active`)
VALUES
(1, 'admin@finetune.ai', 'admin@finetune.ai', 'Admin',
'$argon2id$v=19$m=65536,t=4,p=1$eXRQVHBNaFFLTmZYZC9pSQ$0iMhgsJVOo1D4U8XNrcDFdkIUCJEf2yY1Tmf8G9zKM0',
1),
(2, 'testuser@example.com', 'testuser@example.com', 'Test User',
'$argon2id$v=19$m=65536,t=4,p=1$YmxWaHpqaHRsU1dmZHFUOA$k8veR56hGcoTsciZGVYv/NuPJSyQ3wgzSTyryW/ynto',
1);
-- Grant admin user superuser ACL (acl_id=1 from the acl seed data)
INSERT INTO `user_to_acl` (`user_to_acl_user_id`, `user_to_acl_acl_id`) VALUES
(1, 1), -- admin → superuser
(2, 3); -- testuser → user