1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Generated by Django 3.0.3 on 2020-02-28 17:52
- 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),
- (
- "organizations_ext",
- "0001_squashed_0003_alter_organization_id_alter_organization_users_and_more",
- ),
- (
- "projects",
- "0001_squashed_0009_alter_project_id_alter_projectcounter_id_and_more",
- ),
- ]
- operations = [
- migrations.CreateModel(
- name="Team",
- fields=[
- (
- "id",
- models.AutoField(
- auto_created=True,
- primary_key=True,
- serialize=False,
- verbose_name="ID",
- ),
- ),
- ("created", models.DateTimeField(auto_now_add=True, db_index=True)),
- ("slug", models.SlugField()),
- ("members", models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
- (
- "organization",
- models.ForeignKey(
- on_delete=django.db.models.deletion.CASCADE,
- related_name="teams",
- to="organizations_ext.Organization",
- ),
- ),
- ("projects", models.ManyToManyField(to="projects.Project")),
- ],
- options={
- "unique_together": {("slug", "organization")},
- },
- ),
- ]
|