# Generated by Django 4.1.1 on 2022-10-11 08:43

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Projects",
            fields=[
                (
                    "pid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("pname", models.CharField(max_length=50)),
                ("created_date", models.DateTimeField(auto_now_add=True)),
                ("powner", models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name="Users",
            fields=[
                (
                    "uid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("email", models.CharField(max_length=30)),
                ("password", models.CharField(max_length=30)),
                ("role", models.CharField(max_length=30)),
                ("created_date", models.DateTimeField(auto_now_add=True)),
                ("active", models.BooleanField(default=False)),
                ("slack_token", models.CharField(max_length=50)),
                ("github_token", models.CharField(max_length=50)),
                ("confluence_token", models.CharField(max_length=50)),
                ("jira_token", models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name="Access",
            fields=[
                (
                    "aid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("pname", models.CharField(max_length=50)),
                ("alevel", models.IntegerField(default=0)),
                (
                    "pid",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="home.projects"
                    ),
                ),
                (
                    "uid",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="home.users"
                    ),
                ),
            ],
        ),
    ]
