Guest User

Untitled

a guest
Aug 23rd, 2019
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Product:
  2. product_name = CharField(max_lenght=100, null=False)
  3. product_price_netto = FloatField(max_lenght=5, null=False)
  4. product_price_brutto = FloatField(max_lenght=5, null=False)
  5. product_quanity = FloatField(max_lenght=3, null=False)
  6. product_weight = FloatField(max_lenght=3, null=False)
  7. product_description = CharField(max_lenght=1000, null=False)
  8.  
  9. class ProductCategory:
  10. product_category_producer = CharField(max_lenght=50, null=False)
  11. product_price_category = FloatField(max_lenght=5)
  12.  
  13.  
  14. class Order:
  15. order_date_time_in = DateTimeField()
  16. order_date_time_out = DateTimeField()
  17. order_paid = BooleanField()
  18. order_complete = BooleanField()
  19.  
  20. class Shipment:
  21. shipment_out = BooleanField()
  22. shipment_out1 = DateTimeField()
  23.  
  24. ##relations##
  25.  
  26. Category = ManyToMany(Product)
  27. Producer = ManyToMany(Product)
RAW Paste Data