Skip to content

Commit

Permalink
Add migration file for AccessPointUser and AccessPoint models.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrystinne committed Sep 17, 2024
1 parent fddcb1b commit 1198626
Showing 1 changed file with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Generated by Django 4.1.10 on 2024-09-16 17:23

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


class Migration(migrations.Migration):
dependencies = [
("project", "0077_fix_some_references"),
]

operations = [
migrations.CreateModel(
name="AccessPointUser",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("aws_id", models.CharField(max_length=20)),
],
),
migrations.CreateModel(
name="AccessPoint",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
(
"aws",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="access_points",
to="project.aws",
),
),
(
"users",
models.ManyToManyField(
related_name="access_points", to="project.accesspointuser"
),
),
],
),
]

0 comments on commit 1198626

Please sign in to comment.