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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-09 17:34
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('trashed_at', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Trashed')),
('name', models.CharField(max_length=255)),
('username', models.CharField(max_length=127, unique=True)),
('email', models.EmailField(max_length=255, unique=True)),
('is_active', models.BooleanField(default=False)),
('is_admin', models.BooleanField(default=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'abstract': False,
},
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.CreateModel(
name='Board',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('trashed_at', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Trashed')),
('mid', models.IntegerField(unique=True)),
('online', models.BooleanField(default=True)),
('temp_offline', models.BooleanField(default=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Booking',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('trashed_at', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Trashed')),
('booking_date', models.DateTimeField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Experiment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('trashed_at', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Trashed')),
('log', models.CharField(max_length=255)),
('checksum', models.CharField(default=b'NONE', max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('booking', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tables.Booking')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Slot',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('trashed_at', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Trashed')),
('start_hour', models.IntegerField()),
('start_minute', models.IntegerField()),
('end_hour', models.IntegerField()),
('end_minute', models.IntegerField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='booking',
name='slot',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tables.Slot'),
),
migrations.AddField(
model_name='account',
name='board',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tables.Board'),
),
]
|