31 lines
956 B
Python
31 lines
956 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("scouting", "0005_favoriteplayer"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="PlayerNote",
|
|
fields=[
|
|
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
("body", models.TextField()),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
(
|
|
"player",
|
|
models.ForeignKey(
|
|
on_delete=models.CASCADE,
|
|
related_name="notes",
|
|
to="scouting.player",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ["-created_at", "-id"],
|
|
},
|
|
),
|
|
]
|