Quellcode durchsuchen

add new strokes in Models

kateshev14 vor 8 Monaten
Ursprung
Commit
ae261ffe16
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  1. 9 0
      models/webservice_running.py

+ 9 - 0
models/webservice_running.py

@@ -1,5 +1,6 @@
 from django.db import models
 from dbsynce.models import Orders, Resource
+from django.contrib.postgres.fields import ArrayField
 
 class OrdersLocal(models.Model):
     """
@@ -23,6 +24,14 @@ class OrdersLocal(models.Model):
     order_place_finish_real = models.CharField(null=True, max_length=150)
     order_place_finish_real_gps = models.CharField(null=True, max_length=150)
 
+    comment = models.CharField(null=True, max_length=300)
+    journey_places = ArrayField(models.CharField(max_length=200), blank=True, default=list)
+    guide_type = models.IntegerField(null=True)
+    movement_way = models.IntegerField(null=True)
+    numb_of_people = models.IntegerField(null=True)
+    is_with_payment_document = models.BooleanField(default=False)
+    asap = models.BooleanField(default=False)
+    due_date = models.DateTimeField(null=True)
 
     class Meta:
         db_table = "orders_local"