Sith/trombi/migrations/0004_trombiclubmembership.py

52 lines
1.6 KiB
Python
Raw Permalink Normal View History

from __future__ import unicode_literals
import django.db.models.deletion
2024-06-24 11:07:36 +00:00
from django.db import migrations, models
class Migration(migrations.Migration):
2018-10-04 19:29:19 +00:00
dependencies = [("trombi", "0003_trombicomment_is_moderated")]
operations = [
migrations.CreateModel(
2018-10-04 19:29:19 +00:00
name="TrombiClubMembership",
fields=[
2018-10-04 19:29:19 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"club",
models.CharField(default="", max_length=32, verbose_name="club"),
),
(
"role",
models.CharField(default="", max_length=64, verbose_name="role"),
),
(
"start",
models.CharField(default="", max_length=16, verbose_name="start"),
),
(
"end",
models.CharField(default="", max_length=16, verbose_name="end"),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
2018-10-04 19:29:19 +00:00
verbose_name="user",
related_name="memberships",
to="trombi.TrombiUser",
),
),
],
2018-10-04 19:29:19 +00:00
options={"ordering": ["id"]},
)
]