-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path0001_initial.py
32 lines (27 loc) · 1 KB
/
0001_initial.py
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
# Generated by Django 3.0.5 on 2020-04-20 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Message",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("name", models.CharField(max_length=255)),
("message", models.TextField()),
("created_at", models.DateTimeField()),
],
),
migrations.CreateModel(
name="User",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("name", models.CharField(max_length=50)),
("email", models.EmailField(max_length=254)),
("avatar", models.CharField(max_length=250, null=True)),
("website", models.URLField()),
("created_at", models.DateTimeField()),
],
),
]