# FAVO Full Application V1

Ini ialah pakej testing lengkap untuk FAVO, bukan patch satu modul.

## Install melalui portal

1. Upload/extract ke `/var/www/html/favo`
2. Pastikan `public` menjadi web root untuk production; untuk testing boleh guna:
   `php -S 127.0.0.1:8080 -t public`
3. Buka `/install.php`
4. Masukkan database credentials.
5. Installer akan:
   - create database jika user DB mempunyai CREATE DATABASE
   - create schema_migrations
   - run all SQL migrations in order
   - seed full testing dataset
   - create/update Superadmin
   - write `.env`
   - create `storage/install.lock`
6. Selepas berjaya, buka `?page=login`.

## Test accounts

Password semua seed account: `password`

- superadmin@test.favo.local
- admin@test.favo.local
- owner@kedai.test.favo.local
- staff1@kedai.test.favo.local
- staff2@kedai.test.favo.local
- ali@test.favo.local
- siti@test.favo.local
- ahmad@test.favo.local
- farah@test.favo.local
- hafiz@test.favo.local

## Important

- Installer is locked after installation.
- This package is intended for TESTING/UAT, not production launch.
- Financial, security and audit records are structured as append-only records.
- Superadmin can see all registered modules.
- Business modules use RBAC permissions.
- Feature flags and business rules are stored in database.
