31 lines
1022 B
Python
31 lines
1022 B
Python
# Generated migration for brand app
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Brand',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100, unique=True, verbose_name='品牌名称')),
|
|
('description', models.TextField(blank=True, null=True, verbose_name='品牌描述')),
|
|
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
|
|
('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
|
|
],
|
|
options={
|
|
'verbose_name': '品牌',
|
|
'verbose_name_plural': '品牌',
|
|
'db_table': 'brand',
|
|
'ordering': ['id'],
|
|
},
|
|
),
|
|
]
|