]> Raphaël G. Git Repositories - airbundle/commitdiff
Add premium, rainfall, rainrisk, realfeel, realfeelmin, realfeelmax, temperature...
authorRaphaël Gertz <git@rapsys.eu>
Tue, 8 Dec 2020 00:23:34 +0000 (01:23 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 8 Dec 2020 00:23:34 +0000 (01:23 +0100)
Add application_date_begin_slot_created index

Resources/config/doctrine/Session.orm.yml

index 68c611682b0e422cc69ed7224c051a5f01f01cae..810c4a0c847c2ab24ef5251a15a3d4484a787039 100644 (file)
@@ -18,10 +18,32 @@ Rapsys\AirBundle\Entity\Session:
         length:
             type: time
             nullable: true
         length:
             type: time
             nullable: true
-#The day score, 1 for sun-thu, 2 for fri-sat, +1 for high temperature, *-1 for bad weather
-#        score:
-#            type: smallint
-#            nullable: true
+        premium:
+            type: boolean
+        rainfall:
+            type: float
+            nullable: true
+        rainrisk:
+            type: float
+            nullable: true
+        realfeel:
+            type: float
+            nullable: true
+        realfeelmin:
+            type: float
+            nullable: true
+        realfeelmax:
+            type: float
+            nullable: true
+        temperature:
+            type: float
+            nullable: true
+        temperaturemin:
+            type: float
+            nullable: true
+        temperaturemax:
+            type: float
+            nullable: true
         created:
             type: datetime
         updated:
         created:
             type: datetime
         updated:
@@ -43,3 +65,6 @@ Rapsys\AirBundle\Entity\Session:
     uniqueConstraints:
         date_location_slot:
             columns: [ date, location_id, slot_id ]
     uniqueConstraints:
         date_location_slot:
             columns: [ date, location_id, slot_id ]
+    indexes:
+        application_date_begin_slot_created:
+            columns: [ application_id, date, begin, slot_id, created ]