67 lines
1.1 KiB
Python
67 lines
1.1 KiB
Python
from django.db import models
|
|
|
|
class Address(models.Model):
|
|
address =
|
|
zip_code =
|
|
city =
|
|
country =
|
|
|
|
class Person(models.Model):
|
|
name = models.CharField(max_length=200)
|
|
surname = models.CharField(max_length=200)
|
|
address =
|
|
nationality =
|
|
email =
|
|
phone =
|
|
|
|
class Company(models.Model):
|
|
name =
|
|
address =
|
|
siret =
|
|
|
|
class Insurance(Company):
|
|
pass
|
|
|
|
class Boat(models.Model):
|
|
name =
|
|
registration_num =
|
|
length =
|
|
beam =
|
|
water_draught =
|
|
tonnage =
|
|
water_tank =
|
|
model =
|
|
heating =
|
|
|
|
class Port(models.Model):
|
|
name =
|
|
address =
|
|
|
|
class Dock(models.Model):
|
|
num =
|
|
length =
|
|
width =
|
|
depth =
|
|
|
|
class Plug(models.Model):
|
|
num =
|
|
amperage =
|
|
voltage =
|
|
|
|
class Tap(models.Model):
|
|
num =
|
|
|
|
class (models.Model):
|
|
|
|
pub_date = models.DateTimeField('date published')
|
|
pub_date = models.DateTimeField('date published')
|
|
|
|
|
|
class Boat(models.Model):
|
|
class Boat(models.Model):
|
|
class Boat(models.Model):
|
|
class Boat(models.Model):
|
|
class Boat(models.Model):
|
|
|
|
# Create your models here.
|