init
This commit is contained in:
45
web/migrations/0001_initial.py
Normal file
45
web/migrations/0001_initial.py
Normal file
@@ -0,0 +1,45 @@
|
||||
# Generated by Django 2.1.4 on 2018-12-26 19:52
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Activity',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('type', models.TextField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ActivityLog',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('start_time', models.DateTimeField()),
|
||||
('end_time', models.DateTimeField()),
|
||||
('logged_at', models.DateTimeField(auto_now_add=True)),
|
||||
('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Activity')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='User',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.TextField()),
|
||||
('email', models.TextField()),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='activitylog',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.User'),
|
||||
),
|
||||
]
|
0
web/migrations/__init__.py
Normal file
0
web/migrations/__init__.py
Normal file
BIN
web/migrations/__pycache__/0001_initial.cpython-37.pyc
Normal file
BIN
web/migrations/__pycache__/0001_initial.cpython-37.pyc
Normal file
Binary file not shown.
BIN
web/migrations/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
web/migrations/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user