mirror of https://github.com/zulip/zulip.git
69 lines
2.4 KiB
Python
69 lines
2.4 KiB
Python
|
# Generated by Django 4.1.7 on 2023-03-07 09:14
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
("zerver", "0432_alter_and_migrate_realm_name_in_notifications"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="PreregistrationRealm",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||
|
),
|
||
|
),
|
||
|
("name", models.CharField(max_length=40)),
|
||
|
(
|
||
|
"org_type",
|
||
|
models.PositiveSmallIntegerField(
|
||
|
choices=[
|
||
|
(0, "Unspecified"),
|
||
|
(10, "Business"),
|
||
|
(20, "Open-source project"),
|
||
|
(30, "Education (non-profit)"),
|
||
|
(35, "Education (for-profit)"),
|
||
|
(40, "Research"),
|
||
|
(50, "Event or conference"),
|
||
|
(60, "Non-profit (registered)"),
|
||
|
(70, "Government"),
|
||
|
(80, "Political group"),
|
||
|
(90, "Community"),
|
||
|
(100, "Personal"),
|
||
|
(1000, "Other"),
|
||
|
],
|
||
|
default=0,
|
||
|
),
|
||
|
),
|
||
|
("string_id", models.CharField(max_length=40)),
|
||
|
("email", models.EmailField(max_length=254)),
|
||
|
("status", models.IntegerField(default=0)),
|
||
|
(
|
||
|
"created_realm",
|
||
|
models.ForeignKey(
|
||
|
null=True,
|
||
|
on_delete=django.db.models.deletion.SET_NULL,
|
||
|
related_name="+",
|
||
|
to="zerver.realm",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"created_user",
|
||
|
models.ForeignKey(
|
||
|
null=True,
|
||
|
on_delete=django.db.models.deletion.SET_NULL,
|
||
|
related_name="+",
|
||
|
to=settings.AUTH_USER_MODEL,
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
]
|