Creation is done by running migrations [1] (invoked via Laravel's artisan command line). Using the database is done via Models[2].
[1] https://github.com/firefly-iii/firefly-iii/tree/main/databas... [2] https://github.com/firefly-iii/firefly-iii/tree/main/app/Mod...