Initial commit (Clean history)
This commit is contained in:
29
app/migrations/0338_layer_setting.py
Normal file
29
app/migrations/0338_layer_setting.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.1.7 on 2025-12-24 02:51
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0337_payment_schedule_paid_amount_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Layer_Setting',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=20, null=True, unique=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('detail', models.JSONField()),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('update_time', models.DateTimeField(auto_now=True, null=True)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.user')),
|
||||
],
|
||||
options={
|
||||
'db_table': 'layer_setting',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user