File indexing completed on 2026-09-01 09:34:23
0001
0002
0003 from django.db import migrations, models
0004
0005
0006 class Migration(migrations.Migration):
0007
0008 dependencies = [
0009 ('monitor_app', '0008_alter_pandataskoperation_operation'),
0010 ]
0011
0012 operations = [
0013 migrations.AddField(
0014 model_name='capcomnotice',
0015 name='subscriber',
0016 field=models.CharField(db_index=True, default='capcom', max_length=100),
0017 ),
0018 migrations.CreateModel(
0019 name='NoticeSubscription',
0020 fields=[
0021 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
0022 ('subscriber', models.CharField(db_index=True, max_length=100)),
0023 ('event', models.CharField(help_text='Action-stream event name; a trailing * matches a prefix', max_length=200)),
0024 ('filters', models.JSONField(blank=True, default=dict, help_text="Equality matches over the event's structured fields")),
0025 ('delivery', models.CharField(default='buffer', max_length=50)),
0026 ('enabled', models.BooleanField(default=True)),
0027 ('created_by', models.CharField(blank=True, default='', max_length=100)),
0028 ('created_at', models.DateTimeField(auto_now_add=True)),
0029 ('updated_at', models.DateTimeField(auto_now=True)),
0030 ],
0031 options={
0032 'db_table': 'swf_notice_subscription',
0033 'ordering': ['subscriber', 'event'],
0034 'constraints': [models.UniqueConstraint(fields=('subscriber', 'event'), name='swf_notice_subscription_unique')],
0035 },
0036 ),
0037 ]