from django.db import models

# Create your models here.
class Network(models.Model):
    title = models.CharField(max_length=50)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    # shows = a list of shows associated with a given network

    def __repr__(self):
        return f"Network: (ID: {self.id}) -> {self.title}"

class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name="shows", on_delete=models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return f"Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}"
83b7c7b6494e1ace567962d88b95a6a1f745b842
<mask token>


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


class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name='shows', on_delete=
        models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return (
            f'Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}'
            )

<mask token>


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

    def __repr__(self):
        return f'Network: (ID: {self.id}) -> {self.title}'


class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name='shows', on_delete=
        models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return (
            f'Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}'
            )

<mask token>


class Network(models.Model):
    title = models.CharField(max_length=50)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return f'Network: (ID: {self.id}) -> {self.title}'


class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name='shows', on_delete=
        models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return (
            f'Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}'
            )

from django.db import models


class Network(models.Model):
    title = models.CharField(max_length=50)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return f'Network: (ID: {self.id}) -> {self.title}'


class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name='shows', on_delete=
        models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return (
            f'Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}'
            )

from django.db import models

# Create your models here.
class Network(models.Model):
    title = models.CharField(max_length=50)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    # shows = a list of shows associated with a given network

    def __repr__(self):
        return f"Network: (ID: {self.id}) -> {self.title}"

class Show(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    release_date = models.DateField()
    network = models.ForeignKey(Network, related_name="shows", on_delete=models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __repr__(self):
        return f"Show: (ID: {self.id}) -> {self.title} = {self.description} by {self.network}"