57 lines
2.7 KiB
Python
57 lines
2.7 KiB
Python
|
|
# Generated by Django 5.2.14 on 2026-05-11 10:13
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
initial = True
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Config',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('unlock_at', models.DateTimeField(help_text='Story unlocks at this time (timezone-aware).')),
|
||
|
|
('bgm_enabled', models.BooleanField(default=True)),
|
||
|
|
('site_title', models.CharField(blank=True, default='Nepal Journey: Our Story', max_length=120)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'verbose_name_plural': 'Config',
|
||
|
|
},
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Guestbook',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('nickname', models.CharField(max_length=80)),
|
||
|
|
('message', models.TextField()),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'verbose_name_plural': 'Guestbook entries',
|
||
|
|
'ordering': ['-created_at'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Memory',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('story_order', models.PositiveIntegerField(db_index=True, default=0, help_text='叙事顺序,数字越小越靠前。')),
|
||
|
|
('date', models.DateField()),
|
||
|
|
('event_title', models.CharField(max_length=200)),
|
||
|
|
('main_text', models.TextField(blank=True, help_text='支持 Markdown。')),
|
||
|
|
('unique_feature_type', models.CharField(choices=[('heart_window', '心窗页'), ('fissure_page', '裂缝对开页'), ('standard_nepal', '标准尼泊尔页')], default='standard_nepal', max_length=32)),
|
||
|
|
('nepal_art_style', models.CharField(blank=True, choices=[('none', '默认'), ('mandala_pink', '粉曼陀罗'), ('mandala_blue', '蓝曼陀罗'), ('spiral_rose', '玫瑰螺旋'), ('spiral_cyan', '青色螺旋')], default='none', max_length=32)),
|
||
|
|
('image', models.ImageField(blank=True, null=True, upload_to='memories/')),
|
||
|
|
('is_finale', models.BooleanField(default=False, help_text='终章:在解锁时间前仅可预览占位,到点后需手动打开。')),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'ordering': ['story_order', 'id'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|