gnousdoteu-v3/apps/gnous_eu/migrations/0001_initial.py
2020-05-16 02:12:21 +02:00

48 lines
1.5 KiB
Python

# Generated by Django 3.0.2 on 2020-05-15 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Service",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("name", models.CharField(max_length=150)),
("description", models.TextField()),
("photo", models.ImageField(upload_to="services")),
(
"sources",
models.CharField(
choices=[
("CLOSED", "Sources closes"),
("OPEN", "Sources ouvertes"),
("UNK", "Inconnu"),
],
default="UNK",
max_length=10,
),
),
(
"hosted",
models.CharField(
choices=[
("FED", "Fédéré"),
("CENT", "Centralisé"),
("UNK", "Inconnu"),
],
default="UNK",
max_length=10,
),
),
("domain", models.CharField(max_length=150)),
("hidden", models.BooleanField(default=False)),
],
),
]