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, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (7, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (8, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (9, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), False, 'from django.db import models\n'), (16, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (17, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (18, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (19, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (20, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (21, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (22, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), False, 'from django.db import models\n'), (29, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (30, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (31, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (32, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (33, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (34, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (35, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (36, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (37, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (38, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (39, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (46, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (47, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (48, 'django.db.models.EmailField', 'models.EmailField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (49, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), False, 'from django.db import models\n'), (50, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), False, 'from django.db import models\n')]