1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Generated by Django 3.0.7 on 2020-06-19 13:38
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('client', '0007_auto_20200619_1508'),
]
operations = [
migrations.CreateModel(
name='KeyVal',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(db_index=True, max_length=240)),
('value', models.CharField(db_index=True, max_length=240)),
],
),
migrations.CreateModel(
name='PersonalData',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('parent_name', models.CharField(default='', max_length=250)),
('via', models.CharField(default='', max_length=250)),
('cap', models.CharField(default='', max_length=250)),
('country', models.CharField(default='', max_length=250)),
('nationality', models.CharField(default='', max_length=250)),
('born_date', models.DateField(default=datetime.datetime(1970, 1, 1, 1, 0), null=True)),
('home_phone', models.CharField(default='', max_length=250)),
('phone', models.CharField(default='', max_length=250)),
],
),
migrations.AddField(
model_name='document',
name='compilation_date',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name='document',
name='document_type',
field=models.CharField(default='', max_length=50),
),
migrations.AddField(
model_name='document',
name='status',
field=models.CharField(default='', max_length=50),
),
migrations.AddField(
model_name='document',
name='user',
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.DeleteModel(
name='YearSubscription',
),
migrations.AddField(
model_name='keyval',
name='container',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.Document'),
),
migrations.AddField(
model_name='document',
name='personal_data',
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.PROTECT, to='client.PersonalData'),
),
]
|