|
@@ -5,8 +5,9 @@ class OrdersLocal(models.Model):
|
|
|
"""
|
|
|
OrdersLocal - таблица с заказами
|
|
|
"""
|
|
|
- order_synced = models.ForeignKey(Orders, on_delete=models.DO_NOTHING, help_text="ID заказа в 'Orders'")
|
|
|
- resource_id = models.ForeignKey(Resource, null=True, on_delete=models.DO_NOTHING, help_text="ID коворкинга")
|
|
|
+ order_synced = models.ForeignKey(Orders, on_delete=models.DO_NOTHING)
|
|
|
+ resource_id = models.ForeignKey(Resource, null=True, on_delete=models.DO_NOTHING)
|
|
|
+
|
|
|
address = models.CharField(null=True, max_length=150, help_text="Адрес коворкинга")
|
|
|
specialization = models.CharField(null=True, max_length=150, help_text="Специализация")
|
|
|
daily_price = models.IntegerField(null=True, help_text="Стоимость в день (руб.)")
|
|
@@ -14,7 +15,23 @@ class OrdersLocal(models.Model):
|
|
|
date_end = models.DateField(null=True, help_text="Дата завершения аренды")
|
|
|
days = models.IntegerField(null=True, help_text="Количество дней")
|
|
|
total_price = models.IntegerField(null=True, help_text="Итоговая стоимость (руб.)")
|
|
|
- time_order_created = models.DateTimeField(auto_now_add=True, editable=False, help_text="Время создания заказа")
|
|
|
+
|
|
|
+ #rating_id = models.IntegerField(null=True)#Need create table with rating
|
|
|
+ #payment_transaction_id = models.IntegerField(null=True)#Need create table with payment_transaction or it get from platform (i dont know)
|
|
|
+ #attempts = models.IntegerField(null=True, help_text="Попытки")
|
|
|
+
|
|
|
+ #order_place_type = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_start = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_start_gps = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_start_sector = models.IntegerField(null=True)
|
|
|
+ #order_place_start_real = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_start_real_gps = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_finish_predicted = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_finish_predicted_gps = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_finish_sector = models.IntegerField(null=True)
|
|
|
+ #order_place_finish_real = models.CharField(null=True, max_length=150)
|
|
|
+ #order_place_finish_real_gps = models.CharField(null=True, max_length=150)
|
|
|
+
|
|
|
|
|
|
class Meta:
|
|
|
db_table = "orders_local"
|