- add migration code to Database.md

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

@ -116,4 +116,14 @@ In addition, the relation types (the kind of relationship) are precisely defined
* 'file_extension': all allowed file extension for a mime-type: e.g. jpg|jpeg|jpe for the mime-type 'image/jpeg' * 'file_extension': all allowed file extension for a mime-type: e.g. jpg|jpeg|jpe for the mime-type 'image/jpeg'
* 'enabled': defines if the mime-type is enabled for TETHYS * 'enabled': defines if the mime-type is enabled for TETHYS
* timestamp attributes 'cretaed_at' and 'updated_at' * timestamp attributes 'cretaed_at' and 'updated_at'
* **languages**: * **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)