from django.db import models

# Create your models here.
# Station
class Stations(models.Model):
    stationName     = models.CharField(max_length=100)
    stationLocation = models.CharField(max_length=100)
    stationStaffId  = models.CharField(max_length=100)
    date  = models.DateTimeField(auto_now_add=True)

    def __str_(self):
        return self.stationName

# Customers
class Customers(models.Model):
    customerName     = models.CharField(max_length=100)
    customerPhone    = models.CharField(max_length=100)
    customerId       = models.CharField(max_length=100)
    customerStartLoc = models.CharField(max_length=100)
    customerDestinationLoc = models.CharField(max_length=100)
    stationStaffId  = models.CharField(max_length=100)
    date            = models.DateTimeField(auto_now_add=True)

    def __str_(self):
        return self.customerName

# Items
class Items(models.Model):
    itemName = models.CharField(max_length=100)
    itemType = models.CharField(max_length=100)
    Quantity = models.CharField(max_length=100)
    originStation = models.CharField(max_length=100)
    originCounty = models.CharField(max_length=100)
    receiverName = models.CharField(max_length=100)
    receiverPhone = models.CharField(max_length=100)
    destinationAddress = models.CharField(max_length=100)
    destinationCounty = models.CharField(max_length=100)
    dateSend= models.CharField(max_length=100)
    dateExpected = models.CharField(max_length=100)

    def __str__(self):
        return self.itemName

# Payments
class Payments(models.Model):
    customerPhone        = models.CharField(max_length=100)
    paymentAmount        = models.CharField(max_length=100)
    paymentMeans         = models.EmailField(max_length=100)
    code                 =  models.CharField(max_length=100)
    date                 = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.customerPhone






[((6, 22, 6, 54), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((7, 22, 7, 54), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((8, 22, 8, 54), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((9, 12, 9, 51), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import models\n'), ((16, 23, 16, 55), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((17, 23, 17, 55), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((18, 23, 18, 55), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((19, 23, 19, 55), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((20, 29, 20, 61), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((21, 22, 21, 54), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((22, 22, 22, 61), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import models\n'), ((29, 15, 29, 47), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((30, 15, 30, 47), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((31, 15, 31, 47), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((32, 20, 32, 52), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((33, 19, 33, 51), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((34, 19, 34, 51), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((35, 20, 35, 52), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((36, 25, 36, 57), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((37, 24, 37, 56), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((38, 14, 38, 46), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((39, 19, 39, 51), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((46, 27, 46, 59), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((47, 27, 47, 59), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((48, 27, 48, 60), 'django.db.models.EmailField', 'models.EmailField', (), '', False, 'from django.db import models\n'), ((49, 28, 49, 60), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((50, 27, 50, 66), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import models\n')]