feat: add scouting shortlist mvp
This commit is contained in:
28
app/scouting/migrations/0005_favoriteplayer.py
Normal file
28
app/scouting/migrations/0005_favoriteplayer.py
Normal file
@ -0,0 +1,28 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("scouting", "0004_remove_playerseason_uniq_player_season_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="FavoritePlayer",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
(
|
||||
"player",
|
||||
models.OneToOneField(
|
||||
on_delete=models.CASCADE,
|
||||
related_name="favorite_entry",
|
||||
to="scouting.player",
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"ordering": ["-created_at", "player__full_name"],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user