28 lines
1.4 KiB
Python
28 lines
1.4 KiB
Python
|
|
# Generated by Django 5.0.6 on 2025-06-18 06:29
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('huodong', '0020_alter_equipmentimage_options_drawing'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='PublicScreen',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('image', models.ImageField(upload_to='public_screen_images/')),
|
||
|
|
('screen_type', models.CharField(choices=[('marquee', '跑马灯'), ('advertisement', '广告屏'), ('information', '信息发布屏')], max_length=20, verbose_name='功能类型')),
|
||
|
|
('description', models.TextField(blank=True, null=True, verbose_name='功能描述')),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
|
('branch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='public_screens', to='huodong.branch')),
|
||
|
|
('last_drill', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='public_screens', to='huodong.event', verbose_name='最后演练事件')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
]
|