remove unnecessary models
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# Generated by Django 5.2 on 2025-07-16 14:45
|
||||
# Generated by Django 5.2 on 2025-07-16 17:14
|
||||
|
||||
import django.contrib.postgres.fields
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
from django.conf import settings
|
||||
@@ -31,6 +30,7 @@ class Migration(migrations.Migration):
|
||||
('attach_file', models.BooleanField(default=False)),
|
||||
('add_folder', models.BooleanField(default=False)),
|
||||
('add_notification', models.BooleanField(default=False)),
|
||||
('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='c', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'contract',
|
||||
@@ -38,43 +38,6 @@ class Migration(migrations.Migration):
|
||||
'db_table': 'contracts',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ContractFile',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('name', models.CharField(max_length=150)),
|
||||
('file_type', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[('all_files', 'all files'), ('PDF', 'pdf'), ('word_files', 'word files'), ('image', 'image')], max_length=10), blank=True, default=list, size=None)),
|
||||
('user_permission', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[('all', 'all'), ('add', 'add'), ('delete', 'delete')], max_length=10), blank=True, default=list, size=None)),
|
||||
('contract', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contract_files', to='contracts.contract')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'contract file',
|
||||
'verbose_name_plural': 'contract files',
|
||||
'db_table': 'contract_files',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ContractNotification',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('notification_event', models.CharField(choices=[('exact_date', 'exact date'), ('counterparty_signing', 'counterparty signing'), ('signature_all_parties', 'Signature of all parties')], max_length=24)),
|
||||
('type_notification', models.CharField(choices=[('sms', 'sms'), ('whatsup', 'whatsup')], max_length=8)),
|
||||
('type_message', models.CharField(blank=True, choices=[('krill', 'krill'), ('latin', 'latin')], max_length=8, null=True)),
|
||||
('message', models.CharField(max_length=160)),
|
||||
('time', models.TimeField(blank=True, null=True)),
|
||||
('date', models.DateField(blank=True, null=True)),
|
||||
('contract', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contract_notifications', to='contracts.contract')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'contract notification',
|
||||
'verbose_name_plural': 'contract notifications',
|
||||
'db_table': 'contract_notifications',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ContractSide',
|
||||
fields=[
|
||||
|
||||
Reference in New Issue
Block a user