from django.db import models

# Create your models here.
class Movies(models.Model):
	'''
		• title: unique, variable character chain, 64 byte maximum size, non null.
		• episode_nb: integer, PRIMARY KEY.
		• opening_crawl: text, can be null, no size limit.
		• director: variable character chain, non null, 32 bytes maximum size.
		• producer: variable character chain, non null, 128 bytes maximum size.
		• release_date: date (without time), non null.
	'''
	title = models.CharField(max_length=64, unique=True, null=False)	#null : default True
	episode_nb = models.IntegerField(primary_key=True)
	opening_crawl = models.TextField(null=True)
	director = models.CharField(max_length=32)
	producer = models.CharField(max_length=128)
	release_date = models.DateField()

	def __str__(self):
		return self.title

39b3450d86719083539d4c8c3cd0ccf58fbd46c3
<mask token>


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

    def __str__(self):
        return self.title

<mask token>


class Movies(models.Model):
    <mask token>
    title = models.CharField(max_length=64, unique=True, null=False)
    episode_nb = models.IntegerField(primary_key=True)
    opening_crawl = models.TextField(null=True)
    director = models.CharField(max_length=32)
    producer = models.CharField(max_length=128)
    release_date = models.DateField()

    def __str__(self):
        return self.title

<mask token>


class Movies(models.Model):
    """
		• title: unique, variable character chain, 64 byte maximum size, non null.
		• episode_nb: integer, PRIMARY KEY.
		• opening_crawl: text, can be null, no size limit.
		• director: variable character chain, non null, 32 bytes maximum size.
		• producer: variable character chain, non null, 128 bytes maximum size.
		• release_date: date (without time), non null.
	"""
    title = models.CharField(max_length=64, unique=True, null=False)
    episode_nb = models.IntegerField(primary_key=True)
    opening_crawl = models.TextField(null=True)
    director = models.CharField(max_length=32)
    producer = models.CharField(max_length=128)
    release_date = models.DateField()

    def __str__(self):
        return self.title

from django.db import models


class Movies(models.Model):
    """
		• title: unique, variable character chain, 64 byte maximum size, non null.
		• episode_nb: integer, PRIMARY KEY.
		• opening_crawl: text, can be null, no size limit.
		• director: variable character chain, non null, 32 bytes maximum size.
		• producer: variable character chain, non null, 128 bytes maximum size.
		• release_date: date (without time), non null.
	"""
    title = models.CharField(max_length=64, unique=True, null=False)
    episode_nb = models.IntegerField(primary_key=True)
    opening_crawl = models.TextField(null=True)
    director = models.CharField(max_length=32)
    producer = models.CharField(max_length=128)
    release_date = models.DateField()

    def __str__(self):
        return self.title

from django.db import models

# Create your models here.
class Movies(models.Model):
	'''
		• title: unique, variable character chain, 64 byte maximum size, non null.
		• episode_nb: integer, PRIMARY KEY.
		• opening_crawl: text, can be null, no size limit.
		• director: variable character chain, non null, 32 bytes maximum size.
		• producer: variable character chain, non null, 128 bytes maximum size.
		• release_date: date (without time), non null.
	'''
	title = models.CharField(max_length=64, unique=True, null=False)	#null : default True
	episode_nb = models.IntegerField(primary_key=True)
	opening_crawl = models.TextField(null=True)
	director = models.CharField(max_length=32)
	producer = models.CharField(max_length=128)
	release_date = models.DateField()

	def __str__(self):
		return self.title
