Files
a_long/peizhi/migrations/0001_initial.py
2026-06-14 02:38:05 +08:00

93 lines
2.8 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Generated by Django 6.0 on 2025-12-21 20:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Gonggao",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"leixing",
models.IntegerField(blank=True, null=True, verbose_name="公告类型"),
),
(
"create_time",
models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
),
(
"update_time",
models.DateTimeField(auto_now=True, verbose_name="更改时间"),
),
(
"jieshao",
models.TextField(blank=True, null=True, verbose_name="公告介绍"),
),
],
options={
"verbose_name": "公告",
"verbose_name_plural": "公告",
"db_table": "gonggao",
},
),
migrations.CreateModel(
name="Lunbo",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"tupian_url",
models.CharField(
blank=True,
max_length=500,
null=True,
verbose_name="轮播图片URL",
),
),
(
"leixing",
models.IntegerField(
blank=True,
null=True,
verbose_name="图片类型:1轮播2个人中心背景",
),
),
(
"create_time",
models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
),
(
"update_time",
models.DateTimeField(auto_now=True, verbose_name="更改时间"),
),
],
options={
"verbose_name": "轮播",
"verbose_name_plural": "轮播",
"db_table": "lunbo",
},
),
]