32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
# Generated by Django 5.1.7 on 2025-12-02 03:42
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('app', '0307_email_list_email_template_email_sent'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Email_Job',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=200)),
|
|
('model_name', models.CharField(help_text='e.g., app.Transaction_Detail', max_length=100)),
|
|
('trigger_on_create', models.BooleanField(default=False)),
|
|
('trigger_on_update', models.BooleanField(default=False)),
|
|
('active', models.BooleanField(default=True)),
|
|
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
|
('update_time', models.DateTimeField(auto_now=True, null=True)),
|
|
('template', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.email_template')),
|
|
],
|
|
options={
|
|
'db_table': 'email_job',
|
|
},
|
|
),
|
|
]
|