123456789101112131415161718192021222324252627282930313233 |
- # Generated by Django 5.1.1 on 2024-10-01 11:00
- import django.db.models.deletion
- from django.db import migrations, models
- class Migration(migrations.Migration):
- dependencies = [
- ("account", "0001_initial"),
- ]
- operations = [
- migrations.CreateModel(
- name="UserInstitution",
- fields=[
- ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
- ("name", models.CharField(max_length=255)),
- ],
- ),
- migrations.AddField(
- model_name="user",
- name="institution",
- field=models.ForeignKey(
- blank=True,
- null=True,
- on_delete=django.db.models.deletion.CASCADE,
- related_name="users",
- to="account.userinstitution",
- ),
- ),
- ]
|