efcy / visual_analytics

0 stars 0 forks source link

migrated to abstract user and added dbutils script #38

Closed callisto-cloud closed 3 months ago

callisto-cloud commented 3 months ago

added a custom user model using the abstractuser class from django for new fields like organization or token. Organization is a own model. When running createsuperuser django creates the "admin" organization and adds the user to it.

dbutils.sh can renew the database by deleting and recreating the database and removing previous migrations. it also supports the create argument to create the user and database with the default values.