initial commit
This commit is contained in:
parent
c16fddf9b4
commit
ada9d99644
187 changed files with 37611 additions and 42 deletions
48
movie_manager/migrations/0001_initial.py
Normal file
48
movie_manager/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Generated by Django 5.1.4 on 2025-03-31 04:04
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Movie',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=100)),
|
||||
('imdb_id', models.CharField(max_length=100)),
|
||||
('year', models.IntegerField()),
|
||||
('critic_score', models.CharField(max_length=500)),
|
||||
('genre', models.CharField(max_length=100)),
|
||||
('director', models.CharField(max_length=500)),
|
||||
('actors', models.CharField(max_length=500)),
|
||||
('plot', models.CharField(max_length=500)),
|
||||
('poster', models.CharField(max_length=500)),
|
||||
('last_watched', models.DateTimeField()),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('deleted_at', models.DateTimeField(blank=True, null=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='MovieList',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=100)),
|
||||
('public', models.BooleanField(default=False)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('deleted_at', models.DateTimeField(blank=True, null=True)),
|
||||
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue