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
|
# Generated by Django 2.1 on 2018-08-14 07:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import website.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Comments',
fields=[
('id', models.AutoField(auto_created=True,
primary_key=True, serialize=False, verbose_name='ID')),
('comment', models.CharField(max_length=700)),
],
),
migrations.CreateModel(
name='Proposal',
fields=[
('id', models.AutoField(auto_created=True,
primary_key=True, serialize=False, verbose_name='ID')),
('about_me', models.TextField(max_length=500)),
('email', models.CharField(max_length=128)),
('phone', models.CharField(max_length=20)),
('title', models.CharField(max_length=250)),
('abstract', models.TextField(max_length=700)),
('prerequisite', models.CharField(max_length=750)),
('duration', models.CharField(max_length=100)),
('attachment', models.FileField(
upload_to=website.models.get_document_dir)),
('date_created', models.DateTimeField(auto_now_add=True)),
('date_modified', models.DateTimeField(auto_now=True)),
('status', models.CharField(default='Pending', max_length=100)),
('proposal_type', models.CharField(max_length=100)),
('tags', models.CharField(max_length=250)),
('user', models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Ratings',
fields=[
('id', models.AutoField(auto_created=True,
primary_key=True, serialize=False, verbose_name='ID')),
('rating', models.CharField(max_length=700)),
('proposal', models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to='website.Proposal')),
('user', models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='comments',
name='proposal',
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to='website.Proposal'),
),
migrations.AddField(
model_name='comments',
name='user',
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]
|