- add migration code to Database.md

Kaimbacher 2023-04-25 18:15:25 +02:00
parent 9fe862b5f0
commit 3ccae8e731

@ -117,3 +117,13 @@ In addition, the relation types (the kind of relationship) are precisely defined
* 'enabled': defines if the mime-type is enabled for TETHYS
* timestamp attributes 'cretaed_at' and 'updated_at'
* **languages**:
# TETHYS Migration Code
Lucid is a powerful and easy-to-use ORM that enables you to work with databases using an object-oriented approach.
With Lucid, you can define models that map to database tables and use these models to query, insert, update, and delete data in the database. The ORM supports a variety of database drivers, including MySQL, PostgreSQL, SQLite, and MSSQL, and provides a consistent API across all of them.
All models for the TETHYS backend can be found here: [TETHYS ORM Models](https://gitea.geologie.ac.at/geolba/tethys.backend/src/branch/master/app/Models)
[Creation Code for the database](https://gitea.geologie.ac.at/geolba/tethys.backend/src/branch/master/database/migrations)