40 lines
1.7 KiB
Python
40 lines
1.7 KiB
Python
|
|
# Generated by Django 6.0 on 2026-03-24 23:33
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('epic', '0006_table_status_and_table_seat'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='TarotCard',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('name', models.CharField(max_length=100, unique=True)),
|
||
|
|
('arcana', models.CharField(choices=[('MAJOR', 'Major Arcana'), ('MINOR', 'Minor Arcana')], max_length=5)),
|
||
|
|
('suit', models.CharField(blank=True, choices=[('WANDS', 'Wands'), ('CUPS', 'Cups'), ('SWORDS', 'Swords'), ('PENTACLES', 'Pentacles')], max_length=10, null=True)),
|
||
|
|
('number', models.IntegerField()),
|
||
|
|
('slug', models.SlugField(unique=True)),
|
||
|
|
('keywords_upright', models.JSONField(default=list)),
|
||
|
|
('keywords_reversed', models.JSONField(default=list)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'ordering': ['arcana', 'suit', 'number'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='TarotDeck',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('drawn_card_ids', models.JSONField(default=list)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('room', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='tarot_deck', to='epic.room')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
]
|