MrDoc/app_api/migrations/0001_initial.py
2020-03-29 20:48:02 +08:00

30 lines
909 B
Python

# Generated by Django 2.2.11 on 2020-03-22 09:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='UserToken',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('token', models.CharField(max_length=250, verbose_name='token值')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': '用户Token',
'verbose_name_plural': '用户Token',
},
),
]