guild-journal/guild/migrations/0002_resource_alter_player_...

76 lines
2.3 KiB
Python
Raw Normal View History

2023-06-11 18:44:14 +00:00
# Generated by Django 4.2.1 on 2023-06-11 18:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2023-06-11 19:25:30 +00:00
("guild", "0001_initial"),
2023-06-11 18:44:14 +00:00
]
operations = [
migrations.CreateModel(
2023-06-11 19:25:30 +00:00
name="Resource",
2023-06-11 18:44:14 +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-11 18:44:14 +00:00
],
options={
2023-06-11 19:25:30 +00:00
"verbose_name": "resource",
"verbose_name_plural": "resources",
2023-06-11 18:44:14 +00:00
},
),
migrations.AlterField(
2023-06-11 19:25:30 +00:00
model_name="player",
name="name",
2023-06-11 18:44:14 +00:00
field=models.CharField(max_length=255, unique=True),
),
migrations.CreateModel(
2023-06-11 19:25:30 +00:00
name="ResourceEarned",
2023-06-11 18:44:14 +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",
),
),
("amount", models.IntegerField()),
(
"character",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="guild.character",
verbose_name="character",
),
),
(
"resource",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="guild.resource",
verbose_name="resource",
),
),
2023-06-11 18:44:14 +00:00
],
options={
2023-06-11 19:25:30 +00:00
"verbose_name": "resourceearned",
"verbose_name_plural": "resourceearneds",
2023-06-11 18:44:14 +00:00
},
),
]