changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
35
app/migrations/0011_webadmin_setting.py
Normal file
35
app/migrations/0011_webadmin_setting.py
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2026-04-02 07:31
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0010_category_data_story_category'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Webadmin_Setting',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('category', models.CharField(max_length=100)),
|
||||||
|
('classify', models.CharField(max_length=100)),
|
||||||
|
('code', models.CharField(max_length=100)),
|
||||||
|
('vi', models.TextField()),
|
||||||
|
('en', models.TextField(null=True)),
|
||||||
|
('image', models.TextField(null=True)),
|
||||||
|
('icon', models.TextField(null=True)),
|
||||||
|
('link', models.TextField(null=True)),
|
||||||
|
('detail', models.JSONField(null=True)),
|
||||||
|
('detail_en', models.JSONField(null=True)),
|
||||||
|
('index', models.IntegerField(default=0, null=True)),
|
||||||
|
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'db_table': 'webadmin_setting',
|
||||||
|
'unique_together': {('category', 'classify', 'code')},
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -889,6 +889,25 @@ class Data_Story(models.Model):
|
|||||||
db_table = 'data_story'
|
db_table = 'data_story'
|
||||||
|
|
||||||
|
|
||||||
|
class Webadmin_Setting(models.Model):
|
||||||
|
category = models.CharField(max_length=100, null=False)
|
||||||
|
classify = models.CharField(max_length=100, null=False)
|
||||||
|
code = models.CharField(max_length=100, null = False)
|
||||||
|
vi = models.TextField(null=False)
|
||||||
|
en = models.TextField(null=True)
|
||||||
|
image = models.TextField(null=True)
|
||||||
|
icon = models.TextField(null=True)
|
||||||
|
link = models.TextField(null=True)
|
||||||
|
detail = models.JSONField(null=True)
|
||||||
|
detail_en = models.JSONField(null=True)
|
||||||
|
index = models.IntegerField(null=True, default=0)
|
||||||
|
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
db_table = 'webadmin_setting'
|
||||||
|
unique_together = ('category', 'classify', 'code')
|
||||||
|
|
||||||
|
|
||||||
class Company(AutoCodeModel):
|
class Company(AutoCodeModel):
|
||||||
code_prefix = "CP"
|
code_prefix = "CP"
|
||||||
code_padding = 5
|
code_padding = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user