55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
|
# Generated by Django 4.2.1 on 2023-08-25 18:41
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
("guild", "0012_alter_character_options_alter_character_picture"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="NPC",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("name", models.CharField(max_length=255)),
|
||
|
("description", models.TextField()),
|
||
|
(
|
||
|
"picture",
|
||
|
models.ImageField(
|
||
|
blank=True,
|
||
|
null=True,
|
||
|
upload_to="uploads/",
|
||
|
verbose_name="NPC Picture",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"created_at",
|
||
|
models.DateTimeField(auto_now_add=True, verbose_name="created at"),
|
||
|
),
|
||
|
(
|
||
|
"updated_at",
|
||
|
models.DateTimeField(auto_now=True, verbose_name="updated at"),
|
||
|
),
|
||
|
],
|
||
|
options={
|
||
|
"verbose_name": "npc",
|
||
|
"verbose_name_plural": "npcs",
|
||
|
},
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name="playsession",
|
||
|
name="npcs",
|
||
|
field=models.ManyToManyField(to="guild.npc", verbose_name="npcs"),
|
||
|
),
|
||
|
]
|