This commit is contained in:
javad committed 2024-01-22 13:01:42 +03:30
commit 89a5d70512
284 files changed
+8364

No files matched your search

@@ -0,0 +1,60 @@
# Generated by Django 4.2.1 on 2023-07-23 06:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cuser', '0002_roletype_cuserrole'),
('workspace', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CustomForm',
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)),
('name', models.CharField(max_length=20)),
('desc', models.CharField(blank=True, max_length=30, null=True)),
('sys_ws', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='workspace.workspace')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CustomFormField',
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)),
('field_name_fa', models.CharField(max_length=20)),
('field_name_en', models.CharField(max_length=20)),
('validator', models.CharField(blank=True, max_length=50, null=True)),
('form', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='field', to='customform.customform')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CustomFormData',
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)),
('data', models.JSONField()),
('form', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customform.customform')),
('form_filler', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cuser.cuserrole')),
],
options={
'abstract': False,
},
),
]
@@ -0,0 +1,23 @@
# Generated by Django 4.2.1 on 2023-07-23 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customform', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customform',
name='desc',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='customform',
name='name',
field=models.CharField(max_length=40),
),
]
Whitespace-only changes.