Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Product:
- product_name = CharField(max_lenght=100, null=False)
- product_price_netto = FloatField(max_lenght=5, null=False)
- product_price_brutto = FloatField(max_lenght=5, null=False)
- product_quanity = FloatField(max_lenght=3, null=False)
- product_weight = FloatField(max_lenght=3, null=False)
- product_description = CharField(max_lenght=1000, null=False)
- class ProductCategory:
- product_category_producer = CharField(max_lenght=50, null=False)
- product_price_category = FloatField(max_lenght=5)
- class Order:
- order_date_time_in = DateTimeField()
- order_date_time_out = DateTimeField()
- order_paid = BooleanField()
- order_complete = BooleanField()
- class Shipment:
- shipment_out = BooleanField()
- shipment_out1 = DateTimeField()
- ##relations##
- Category = ManyToMany(Product)
- Producer = ManyToMany(Product)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement