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),
|
2022-02-14 12:44:42 -05:00
|
|
|
("auth", "0012_alter_user_first_name_max_length"),
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2022-02-14 12:44:42 -05:00
|
|
|
name="Tool",
|
2020-12-03 12:31:39 -05:00
|
|
|
fields=[
|
2022-02-14 12:44:42 -05:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=200)),
|
|
|
|
("asset_tag", models.CharField(blank=True, max_length=10, unique=True)),
|
2020-12-03 12:31:39 -05:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-14 12:44:42 -05:00
|
|
|
name="Task",
|
2020-12-03 12:31:39 -05:00
|
|
|
fields=[
|
2022-02-14 12:44:42 -05:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=200)),
|
|
|
|
("slug", models.SlugField()),
|
|
|
|
("description", markdownx.models.MarkdownxField(blank=True)),
|
|
|
|
("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"
|
|
|
|
),
|
|
|
|
),
|
2020-12-03 12:31:39 -05:00
|
|
|
],
|
2021-05-19 13:28:38 -04:00
|
|
|
options={
|
2022-02-14 12:44:42 -05:00
|
|
|
"unique_together": {("tool", "slug")},
|
2021-05-19 13:28:38 -04:00
|
|
|
},
|
2020-12-03 12:31:39 -05:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-14 12:44:42 -05:00
|
|
|
name="Event",
|
2020-12-03 12:31:39 -05:00
|
|
|
fields=[
|
2022-02-14 12:44:42 -05:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date", models.DateField()),
|
|
|
|
("notes", markdownx.models.MarkdownxField(blank=True)),
|
|
|
|
(
|
|
|
|
"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,
|
|
|
|
),
|
|
|
|
),
|
2020-12-03 12:31:39 -05:00
|
|
|
],
|
|
|
|
),
|
2021-05-19 13:28:38 -04:00
|
|
|
migrations.CreateModel(
|
2022-02-14 12:44:42 -05:00
|
|
|
name="GroupToolSubscription",
|
2021-05-19 13:28:38 -04:00
|
|
|
fields=[
|
2022-02-14 12:44:42 -05:00
|
|
|
(
|
|
|
|
"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"
|
|
|
|
),
|
|
|
|
),
|
2021-05-19 13:28:38 -04:00
|
|
|
],
|
|
|
|
options={
|
2022-02-14 12:44:42 -05:00
|
|
|
"unique_together": {("group", "tool")},
|
2021-05-19 13:28:38 -04:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-14 12:44:42 -05:00
|
|
|
name="GroupTaskSubscription",
|
2021-05-19 13:28:38 -04:00
|
|
|
fields=[
|
2022-02-14 12:44:42 -05:00
|
|
|
(
|
|
|
|
"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"
|
|
|
|
),
|
|
|
|
),
|
2021-05-19 13:28:38 -04:00
|
|
|
],
|
|
|
|
options={
|
2022-02-14 12:44:42 -05:00
|
|
|
"unique_together": {("group", "task")},
|
2021-05-19 13:28:38 -04:00
|
|
|
},
|
|
|
|
),
|
2020-12-03 12:31:39 -05:00
|
|
|
]
|