38 lines
1.0 KiB
Python
38 lines
1.0 KiB
Python
|
# Generated by Django 4.2.5 on 2023-10-17 13:29
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
("idhub", "0002_rol"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Service",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("domain", models.CharField(max_length=250)),
|
||
|
("description", models.CharField(max_length=250)),
|
||
|
(
|
||
|
"rol",
|
||
|
models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
related_name="services",
|
||
|
to="idhub.rol",
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
]
|