2021-05-19 13:28:38 -04:00
|
|
|
# Generated by Django 3.2.3 on 2021-05-19 18:05
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2021-05-19 13:28:38 -04:00
|
|
|
import markdownx.models
|
2020-12-03 12:31:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2021-05-19 13:28:38 -04:00
|
|
|
('auth', '0012_alter_user_first_name_max_length'),
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Tool',
|
|
|
|
fields=[
|
2021-05-19 13:28:38 -04:00
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-12-03 12:31:39 -05:00
|
|
|
('name', models.CharField(max_length=200)),
|
2021-05-19 13:28:38 -04:00
|
|
|
('asset_tag', models.CharField(blank=True, max_length=10, unique=True)),
|
2020-12-03 12:31:39 -05:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Task',
|
|
|
|
fields=[
|
2021-05-19 13:28:38 -04:00
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-12-03 12:31:39 -05:00
|
|
|
('name', models.CharField(max_length=200)),
|
2021-05-19 13:28:38 -04:00
|
|
|
('slug', models.SlugField()),
|
|
|
|
('description', markdownx.models.MarkdownxField(blank=True)),
|
2020-12-03 12:31:39 -05:00
|
|
|
('recurrence_interval', models.CharField(max_length=200)),
|
|
|
|
('recurrence_base', models.DateField(blank=True, null=True)),
|
|
|
|
('tool', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tasks.tool')),
|
|
|
|
],
|
2021-05-19 13:28:38 -04:00
|
|
|
options={
|
|
|
|
'unique_together': {('tool', 'slug')},
|
|
|
|
},
|
2020-12-03 12:31:39 -05:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Event',
|
|
|
|
fields=[
|
2021-05-19 13:28:38 -04:00
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-12-03 12:31:39 -05:00
|
|
|
('date', models.DateField()),
|
2021-05-19 13:28:38 -04:00
|
|
|
('notes', markdownx.models.MarkdownxField(blank=True)),
|
2020-12-03 12:31:39 -05:00
|
|
|
('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tasks.task')),
|
|
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
|
|
],
|
|
|
|
),
|
2021-05-19 13:28:38 -04:00
|
|
|
migrations.CreateModel(
|
|
|
|
name='GroupToolSubscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('days_before', models.PositiveIntegerField()),
|
|
|
|
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.group')),
|
|
|
|
('tool', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tasks.tool')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'unique_together': {('group', 'tool')},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='GroupTaskSubscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('days_before', models.PositiveIntegerField()),
|
|
|
|
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.group')),
|
|
|
|
('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tasks.task')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'unique_together': {('group', 'task')},
|
|
|
|
},
|
|
|
|
),
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|