cineclub-site/server/myapi/migrations/0001_initial.py

59 lines
2 KiB
Python
Raw Normal View History

2022-04-03 01:20:53 +02:00
# Generated by Django 3.2.12 on 2022-03-03 18:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
2022-04-03 01:20:54 +02:00
dependencies = []
2022-04-03 01:20:53 +02:00
operations = [
migrations.CreateModel(
2022-04-03 01:20:54 +02:00
name="Film",
2022-04-03 01:20:53 +02:00
fields=[
2022-04-03 01:20:54 +02:00
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("projection_date", models.DateTimeField()),
("title", models.CharField(max_length=60)),
("actors", models.JSONField(default="[]")),
("director", models.CharField(max_length=60)),
("duration", models.DurationField()),
("synopsis", models.TextField()),
("origin_country", models.CharField(max_length=60)),
("release_year", models.SmallIntegerField()),
("trailer_link", models.URLField()),
("is_in_color", models.BooleanField()),
(
"movie_format",
models.CharField(
choices=[
("35mm", "Analog 35"),
("DVD", "Dvd"),
("Blu ray", "Blu Ray"),
],
max_length=20,
),
),
(
"language_subtitles",
models.CharField(
choices=[("VOF", "French"), ("VOSTFR", "Foreign")],
max_length=20,
),
),
("poster_link", models.URLField()),
("banner_link", models.URLField()),
("is_confirmed", models.BooleanField(default=False)),
2022-04-03 01:20:53 +02:00
],
),
]