You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
42 lines
1.6 KiB
|
3 years ago
|
# Generated by Django 4.1.7 on 2023-03-04 15:37
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
import django.db.models.deletion
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
initial = True
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='User',
|
||
|
|
fields=[
|
||
|
|
('user_id', models.CharField(max_length=64, primary_key=True, serialize=False)),
|
||
|
|
('user_name', models.CharField(max_length=64, unique=True)),
|
||
|
|
('user_password', models.CharField(max_length=64)),
|
||
|
|
('user_password_confirm', models.CharField(max_length=64)),
|
||
|
|
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||
|
|
('user_type', models.CharField(default='Regular User', max_length=20)),
|
||
|
|
('is_active', models.BooleanField(default=True)),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='UserProfile',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('user_mail', models.CharField(max_length=64, null=True)),
|
||
|
|
('real_name', models.TextField(null=True)),
|
||
|
|
('blog', models.URLField(null=True)),
|
||
|
|
('mood', models.TextField(null=True)),
|
||
|
|
('github', models.TextField(null=True)),
|
||
|
|
('school', models.TextField(null=True)),
|
||
|
|
('major', models.TextField(null=True)),
|
||
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='user.user')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
]
|