CMS_Django_Backend/apps/auth/migrations/0001_initial.py
2024-08-18 20:51:27 +08:00

31 lines
1.2 KiB
Python

# Generated by Django 5.1 on 2024-08-17 15:22
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.CharField(blank=True, max_length=100, null=True, verbose_name='电子邮件')),
('phone', models.CharField(max_length=11, verbose_name='手机')),
('create_time', models.DateTimeField(verbose_name='注册时间')),
('avatar', models.ImageField(upload_to='', verbose_name='头像')),
('last_login_time', models.DateTimeField(auto_now=True, verbose_name='最后登录时间')),
],
options={
'verbose_name': '用户表',
},
),
]