from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User

# Create your models here.

class Film(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
    title = models.CharField(max_length=200)
    director = models.CharField(max_length=200)
    year = models.IntegerField()
    created_at = models.DateTimeField(auto_now_add=True)
    last_modified = models.DateTimeField(auto_now=True)

class PersonalFilm(Film): #inherits from Film
    user = models.ForeignKey(User, on_delete=models.CASCADE)
edb8d0a6724ca12457be49156948f195729696c4
<mask token>


class PersonalFilm(Film):
    <mask token>

<mask token>


class Film(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class PersonalFilm(Film):
    user = models.ForeignKey(User, on_delete=models.CASCADE)

<mask token>


class Film(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
    title = models.CharField(max_length=200)
    director = models.CharField(max_length=200)
    year = models.IntegerField()
    created_at = models.DateTimeField(auto_now_add=True)
    last_modified = models.DateTimeField(auto_now=True)


class PersonalFilm(Film):
    user = models.ForeignKey(User, on_delete=models.CASCADE)

from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User


class Film(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
    title = models.CharField(max_length=200)
    director = models.CharField(max_length=200)
    year = models.IntegerField()
    created_at = models.DateTimeField(auto_now_add=True)
    last_modified = models.DateTimeField(auto_now=True)


class PersonalFilm(Film):
    user = models.ForeignKey(User, on_delete=models.CASCADE)

from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User

# Create your models here.

class Film(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
    title = models.CharField(max_length=200)
    director = models.CharField(max_length=200)
    year = models.IntegerField()
    created_at = models.DateTimeField(auto_now_add=True)
    last_modified = models.DateTimeField(auto_now=True)

class PersonalFilm(Film): #inherits from Film
    user = models.ForeignKey(User, on_delete=models.CASCADE)