|
@@ -1,6 +1,10 @@
|
1
|
|
-# Generated by Django 3.1.2 on 2020-10-08 23:09
|
|
1
|
+# Generated by Django 3.0.8 on 2020-11-02 23:35
|
2
|
2
|
|
|
3
|
+import django.contrib.auth.models
|
|
4
|
+import django.contrib.auth.validators
|
3
|
5
|
from django.db import migrations, models
|
|
6
|
+import django.db.models.deletion
|
|
7
|
+import django.utils.timezone
|
4
|
8
|
|
5
|
9
|
|
6
|
10
|
class Migration(migrations.Migration):
|
|
@@ -8,6 +12,7 @@ class Migration(migrations.Migration):
|
8
|
12
|
initial = True
|
9
|
13
|
|
10
|
14
|
dependencies = [
|
|
15
|
+ ('auth', '0011_update_proxy_permissions'),
|
11
|
16
|
]
|
12
|
17
|
|
13
|
18
|
operations = [
|
|
@@ -16,6 +21,59 @@ class Migration(migrations.Migration):
|
16
|
21
|
fields=[
|
17
|
22
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
18
|
23
|
('name', models.CharField(max_length=150)),
|
|
24
|
+ ('code', models.CharField(max_length=9)),
|
|
25
|
+ ('creditos', models.IntegerField(default=0)),
|
19
|
26
|
],
|
20
|
27
|
),
|
|
28
|
+ migrations.CreateModel(
|
|
29
|
+ name='Facultad',
|
|
30
|
+ fields=[
|
|
31
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
32
|
+ ('fname', models.CharField(max_length=150)),
|
|
33
|
+ ],
|
|
34
|
+ ),
|
|
35
|
+ migrations.CreateModel(
|
|
36
|
+ name='User',
|
|
37
|
+ fields=[
|
|
38
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
39
|
+ ('password', models.CharField(max_length=128, verbose_name='password')),
|
|
40
|
+ ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
|
41
|
+ ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
|
42
|
+ ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
|
|
43
|
+ ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
|
|
44
|
+ ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
|
|
45
|
+ ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
|
|
46
|
+ ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
|
|
47
|
+ ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
|
48
|
+ ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
|
|
49
|
+ ('gpa', models.DecimalField(decimal_places=2, default=0, max_digits=3)),
|
|
50
|
+ ('fac_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.Facultad')),
|
|
51
|
+ ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
|
|
52
|
+ ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
|
|
53
|
+ ],
|
|
54
|
+ options={
|
|
55
|
+ 'verbose_name': 'user',
|
|
56
|
+ 'verbose_name_plural': 'users',
|
|
57
|
+ 'abstract': False,
|
|
58
|
+ },
|
|
59
|
+ managers=[
|
|
60
|
+ ('objects', django.contrib.auth.models.UserManager()),
|
|
61
|
+ ],
|
|
62
|
+ ),
|
|
63
|
+ migrations.CreateModel(
|
|
64
|
+ name='Matricula',
|
|
65
|
+ fields=[
|
|
66
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
67
|
+ ('section', models.CharField(max_length=5)),
|
|
68
|
+ ('prof', models.CharField(max_length=150)),
|
|
69
|
+ ('grade', models.CharField(max_length=3)),
|
|
70
|
+ ('semestre', models.IntegerField(default=0)),
|
|
71
|
+ ('course_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.Curso')),
|
|
72
|
+ ],
|
|
73
|
+ ),
|
|
74
|
+ migrations.AddField(
|
|
75
|
+ model_name='curso',
|
|
76
|
+ name='fac_id',
|
|
77
|
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.Facultad'),
|
|
78
|
+ ),
|
21
|
79
|
]
|