CMS_Django_Backend/apps/auth/migrations/0001_initial.py

32 lines
1.2 KiB
Python

# Generated by Django 5.1 on 2024-08-18 14:07
import apps.auth.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, unique=True, verbose_name='id')),
('username', models.CharField(blank=True, max_length=50, null=True, unique=True, verbose_name='用户名')),
('pwd', models.CharField(blank=True, max_length=1000, null=True, verbose_name='密码')),
('email', models.EmailField(max_length=100, verbose_name='电子邮件')),
('phone', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机')),
('create_time', models.DateTimeField(verbose_name='注册时间')),
('avatar', models.ImageField(upload_to=apps.auth.models.user_directory_path, verbose_name='头像')),
('last_login_time', models.DateTimeField(auto_now=True, verbose_name='最后登录时间')),
],
options={
'verbose_name': '用户表',
},
),
]