35 lines
900 B
Python
35 lines
900 B
Python
|
# Generated by Django 5.0 on 2023-12-20 07:47
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
initial = True
|
||
|
|
||
|
dependencies = []
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Media",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"photo",
|
||
|
models.FileField(blank=True, null=True, upload_to="photos/%Y/"),
|
||
|
),
|
||
|
(
|
||
|
"video",
|
||
|
models.FileField(blank=True, null=True, upload_to="videos/%Y/"),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
]
|