37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
# Generated by Django 4.2.1 on 2024-01-08 11:53
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cuser', '0005_smsopt'),
|
|
('workspace', '0003_alter_workspace_uuid'),
|
|
('lead', '0005_alter_lead_status'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='lead',
|
|
name='status',
|
|
field=models.CharField(blank=True, choices=[('FA', 'FAIL'), ('SU', 'OK'), ('UN', 'unknown')], default='UN', max_length=2, null=True),
|
|
),
|
|
migrations.CreateModel(
|
|
name='LeadComment',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('desc', models.CharField(max_length=300)),
|
|
('cuser_role', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='cuser.cuserrole')),
|
|
('lead', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lead_comment', to='lead.lead')),
|
|
('sys_ws', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='workspace.workspace')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|