Update 'port/models.py'
This commit is contained in:
parent
373a1133de
commit
879aa95478
|
@ -1,41 +1,42 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
class Address(models.Model):
|
class Address(models.Model):
|
||||||
address =
|
address = models.CharField(max_length=200)
|
||||||
zip_code =
|
zip_code = models.CharField(max_length=200)
|
||||||
city =
|
city = models.CharField(max_length=200)
|
||||||
country =
|
country = models.CharField(max_length=200)
|
||||||
|
|
||||||
class Person(models.Model):
|
class Person(models.Model):
|
||||||
name = models.CharField(max_length=200)
|
name = models.CharField(max_length=200)
|
||||||
surname = models.CharField(max_length=200)
|
surname = models.CharField(max_length=200)
|
||||||
address =
|
address = Address()
|
||||||
nationality =
|
nationality = models.CharField(max_length=200)
|
||||||
email =
|
email = models.EmailField(max_length=254)
|
||||||
phone =
|
phone =
|
||||||
|
|
||||||
class Company(models.Model):
|
class Company(models.Model):
|
||||||
name =
|
name = models.CharField(max_length=200)
|
||||||
address =
|
address = Address()
|
||||||
siret =
|
|
||||||
|
|
||||||
class Insurance(Company):
|
class Insurance(Company):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Boat(models.Model):
|
class Boat(models.Model):
|
||||||
name =
|
name = models.CharField(max_length=200)
|
||||||
registration_num =
|
registration_num =
|
||||||
length =
|
length =
|
||||||
beam =
|
beam =
|
||||||
water_draught =
|
water_draught =
|
||||||
tonnage =
|
tonnage =
|
||||||
water_tank =
|
water_tank =
|
||||||
model =
|
model = models.CharField(max_length=200)
|
||||||
heating =
|
heating = models.CharField(max_length=200)
|
||||||
|
passenger_capacity =
|
||||||
|
picture = models.ImageField(upload_to=None, height_field=None, width_field=None, max_length=100)
|
||||||
|
|
||||||
class Port(models.Model):
|
class Port(models.Model):
|
||||||
name =
|
name = models.CharField(max_length=200)
|
||||||
address =
|
address = Address()
|
||||||
|
|
||||||
class Dock(models.Model):
|
class Dock(models.Model):
|
||||||
num =
|
num =
|
||||||
|
@ -54,21 +55,23 @@ class Tap(models.Model):
|
||||||
class Stay(models.Model):
|
class Stay(models.Model):
|
||||||
arrival = models.DateTimeField('date published')
|
arrival = models.DateTimeField('date published')
|
||||||
departure = models.DateTimeField('date published')
|
departure = models.DateTimeField('date published')
|
||||||
coming_from =
|
coming_from = models.CharField(max_length=200)
|
||||||
going_to =
|
going_to = models.CharField(max_length=200)
|
||||||
|
num_passenger =
|
||||||
|
num_guest =
|
||||||
|
|
||||||
class Payment(models.Model):
|
class Payment(models.Model):
|
||||||
num =
|
num =
|
||||||
date = models.DateTimeField('date published')
|
date = models.DateTimeField('date published')
|
||||||
pay_type =
|
pay_type = models.CharField(max_length=200)
|
||||||
amount =
|
amount =
|
||||||
|
|
||||||
class Bill_line(models.Model):
|
class Bill_line(models.Model):
|
||||||
service =
|
service = models.CharField(max_length=200)
|
||||||
quantity =
|
quantity =
|
||||||
|
|
||||||
class Service(models.Model):
|
class Service(models.Model):
|
||||||
service_type =
|
service_type = models.CharField(max_length=200)
|
||||||
|
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
|
Loading…
Reference in New Issue