32 lines
967 B
Python
32 lines
967 B
Python
|
# Generated by Django 3.1.3 on 2020-12-14 19:08
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import uuid
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Project',
|
||
|
fields=[
|
||
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
('name', models.CharField(max_length=100)),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
options={
|
||
|
'db_table': 'project',
|
||
|
},
|
||
|
),
|
||
|
]
|