from django.db import models

# Create your models here.
class Movies(models.Model): 
	title = models.CharField(max_length = 64, unique = True, null = False)
	episode_nb = models.AutoField(primary_key = True)
	opening_crawl = models.TextField(null = True)
	director = models.CharField(max_length = 32, null = False)
	producer = models.CharField(max_length = 128, null = False)
	release_date = models.DateField(null = False)

	def __str__(self):
		return self.title