2023-06-09 19:51:18 +00:00
|
|
|
# Generated by Django 4.2.1 on 2023-05-19 12:43
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
|
2023-06-11 19:25:30 +00:00
|
|
|
dependencies = []
|
2023-06-09 19:51:18 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-06-11 19:25:30 +00:00
|
|
|
name="Adventure",
|
2023-06-09 19:51:18 +00:00
|
|
|
fields=[
|
2023-06-11 19:25:30 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=255)),
|
|
|
|
("description", models.TextField()),
|
2023-06-09 19:51:18 +00:00
|
|
|
],
|
|
|
|
options={
|
2023-06-11 19:25:30 +00:00
|
|
|
"verbose_name": "Adventure",
|
|
|
|
"verbose_name_plural": "Adventures",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2023-06-11 19:25:30 +00:00
|
|
|
name="Character",
|
2023-06-09 19:51:18 +00:00
|
|
|
fields=[
|
2023-06-11 19:25:30 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=255)),
|
|
|
|
("description", models.TextField()),
|
2023-06-09 19:51:18 +00:00
|
|
|
],
|
|
|
|
options={
|
2023-06-11 19:25:30 +00:00
|
|
|
"verbose_name": "character",
|
|
|
|
"verbose_name_plural": "characters",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2023-06-11 19:25:30 +00:00
|
|
|
name="Player",
|
2023-06-09 19:51:18 +00:00
|
|
|
fields=[
|
2023-06-11 19:25:30 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=255)),
|
2023-06-09 19:51:18 +00:00
|
|
|
],
|
|
|
|
options={
|
2023-06-11 19:25:30 +00:00
|
|
|
"verbose_name": "player",
|
|
|
|
"verbose_name_plural": "players",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2023-06-11 19:25:30 +00:00
|
|
|
name="PlaySession",
|
2023-06-09 19:51:18 +00:00
|
|
|
fields=[
|
2023-06-11 19:25:30 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date", models.DateField()),
|
|
|
|
("summary", models.TextField()),
|
|
|
|
(
|
|
|
|
"adventure",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="guild.adventure",
|
|
|
|
verbose_name="adventure",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"characters",
|
|
|
|
models.ManyToManyField(
|
|
|
|
to="guild.character", verbose_name="characters"
|
|
|
|
),
|
|
|
|
),
|
2023-06-09 19:51:18 +00:00
|
|
|
],
|
|
|
|
options={
|
2023-06-11 19:25:30 +00:00
|
|
|
"verbose_name": "playsession",
|
|
|
|
"verbose_name_plural": "playsessions",
|
2023-06-09 19:51:18 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
2023-06-11 19:25:30 +00:00
|
|
|
model_name="character",
|
|
|
|
name="player",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
to="guild.player",
|
|
|
|
verbose_name="player",
|
|
|
|
),
|
2023-06-09 19:51:18 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2023-06-11 19:25:30 +00:00
|
|
|
model_name="adventure",
|
|
|
|
name="master",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
to="guild.player",
|
|
|
|
verbose_name="master",
|
|
|
|
),
|
2023-06-09 19:51:18 +00:00
|
|
|
),
|
|
|
|
]
|