Kaynağa Gözat

add new strokes in Models

kateshev14 8 ay önce
ebeveyn
işleme
ae261ffe16
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  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"