first commit
This commit is contained in:
36
utils/migrations/0001_initial.py
Normal file
36
utils/migrations/0001_initial.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 5.2.9 on 2025-12-24 19:48
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='JsonToType',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=254, verbose_name='Başlık')),
|
||||
('json_data', models.JSONField(verbose_name='Json Veri')),
|
||||
('type_data', models.TextField(verbose_name='Type Veri')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Oluşturulma Tarihi')),
|
||||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='Güncelleme Tarihi')),
|
||||
('is_active', models.BooleanField(choices=[(True, 'Evet'), (False, 'Hayır')], default=False, verbose_name='Yayındamı')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='json_to_type_user', to=settings.AUTH_USER_MODEL, verbose_name='Kullanıcı')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Json To Type',
|
||||
'verbose_name_plural': 'Json To Type',
|
||||
'db_table': 'json_to_type',
|
||||
'ordering': ['-updated_at'],
|
||||
},
|
||||
),
|
||||
]
|
||||
18
utils/migrations/0002_alter_jsontotype_json_data.py
Normal file
18
utils/migrations/0002_alter_jsontotype_json_data.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.9 on 2025-12-24 20:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('utils', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='jsontotype',
|
||||
name='json_data',
|
||||
field=models.JSONField(unique=True, verbose_name='Json Veri'),
|
||||
),
|
||||
]
|
||||
18
utils/migrations/0003_alter_jsontotype_type_data.py
Normal file
18
utils/migrations/0003_alter_jsontotype_type_data.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.9 on 2025-12-24 20:51
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('utils', '0002_alter_jsontotype_json_data'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='jsontotype',
|
||||
name='type_data',
|
||||
field=models.TextField(unique=True, verbose_name='Type Veri'),
|
||||
),
|
||||
]
|
||||
0
utils/migrations/__init__.py
Normal file
0
utils/migrations/__init__.py
Normal file
Reference in New Issue
Block a user