Commit graph

5 commits

Author SHA1 Message Date
f41126894a Migrate data models to Django conventions
- add foreign keys
- rename foreign key fields
- rename tables to cats_*
2024-09-18 20:59:27 +02:00
35ae769e76 Model cleanup
- sort models by reference order
- change auto id fields
2024-09-18 18:52:51 +02:00
3a1796b1ed Make models managed 2024-09-18 18:35:06 +02:00
32bc919530 Add migration to convert tables to UTF-8
- convert all tables to utf8mb4 charset
- convert all tables to InnoDB
- set collation for all tables to utf8mb4_unicode_ci
2024-09-18 18:21:08 +02:00
77464ecee4 Add generated cats app
- generated app by running python3 manage.py startapp cats
- add cats to INSTALLED_APPS in django_cats/settings.py
- generated model by running python3 manage.py inspectdb >
  cats/models.py
- generated migration by running python3 manage.py makemigrations -n
  "models_created_by_inspectdb" cats
2024-09-18 18:20:59 +02:00