-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Closes #30
- Loading branch information
Showing
31 changed files
with
965 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
django_project/main/migrations/0002_account_metric_objective_project_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Generated by Django 4.0.3 on 2022-05-30 02:31 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('main', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Account', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('createdDate', models.DateField(auto_now_add=True)), | ||
('accountName', models.CharField(max_length=100)), | ||
('userOwner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Metric', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('createdDate', models.DateField(auto_now_add=True)), | ||
('metricName', models.CharField(max_length=200)), | ||
('targetValue', models.FloatField()), | ||
('targetUnit', models.CharField(max_length=3)), | ||
('targetDate', models.DateField()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Objective', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('createdDate', models.DateField(auto_now_add=True)), | ||
('objectiveName', models.CharField(max_length=200)), | ||
('targetValue', models.FloatField()), | ||
('targetUnit', models.CharField(max_length=3)), | ||
('targetDate', models.DateField()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Project', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('createdDate', models.DateField(auto_now_add=True)), | ||
('projectName', models.CharField(max_length=200)), | ||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.account')), | ||
('userOwner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
migrations.RemoveField( | ||
model_name='objectives', | ||
name='project', | ||
), | ||
migrations.RemoveField( | ||
model_name='projects', | ||
name='account', | ||
), | ||
migrations.RemoveField( | ||
model_name='results', | ||
name='objective', | ||
), | ||
migrations.DeleteModel( | ||
name='Accounts', | ||
), | ||
migrations.DeleteModel( | ||
name='Objectives', | ||
), | ||
migrations.DeleteModel( | ||
name='Projects', | ||
), | ||
migrations.DeleteModel( | ||
name='Results', | ||
), | ||
migrations.AddField( | ||
model_name='objective', | ||
name='project', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.project'), | ||
), | ||
migrations.AddField( | ||
model_name='objective', | ||
name='userOwner', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AddField( | ||
model_name='metric', | ||
name='objective', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.objective'), | ||
), | ||
migrations.AddField( | ||
model_name='metric', | ||
name='userOwner', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
asgiref==3.5.0 | ||
certifi==2021.10.8 | ||
asgiref==3.5.2 | ||
certifi==2022.5.18.1 | ||
cffi==1.15.0 | ||
charset-normalizer==2.0.12 | ||
cryptography==36.0.2 | ||
cryptography==37.0.2 | ||
defusedxml==0.7.1 | ||
Django==4.0.3 | ||
Django==4.0.4 | ||
django-allauth==0.50.0 | ||
django-environ==0.8.1 | ||
django-sendgrid-v5==1.2.0 | ||
gunicorn==20.1.0 | ||
idna==3.3 | ||
mysqlclient==2.1.0 | ||
oauthlib==3.2.0 | ||
pycparser==2.21 | ||
PyJWT==2.3.0 | ||
PyJWT==2.4.0 | ||
python-http-client==3.3.7 | ||
python3-openid==3.2.0 | ||
requests==2.27.1 | ||
requests-oauthlib==1.3.1 | ||
sendgrid==6.9.7 | ||
sendgrid==3.6.5 | ||
sendgrid-django==4.2.0 | ||
sqlparse==0.4.2 | ||
starkbank-ecdsa==2.0.3 | ||
tzdata==2022.1 | ||
urllib3==1.26.9 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.