From: Raphaƫl Gertz Date: Wed, 14 Oct 2020 02:15:57 +0000 (+0200) Subject: Rename end field in length X-Git-Tag: 0.1.1~5 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/cf23b2a9c6b81bbf5fd5e5224ef0c6c6dd7ac592 Rename end field in length Add todo notes about score field to add --- diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml index aaf461f..e65953d 100644 --- a/Resources/config/doctrine/Application.orm.yml +++ b/Resources/config/doctrine/Application.orm.yml @@ -10,6 +10,9 @@ Rapsys\AirBundle\Entity\Application: options: unsigned: true fields: +#The score computed at attribution time, the sum of all session score divided by proximity in days (1 for sun-thu, 2 for fri-sat, +1 for high temperature, *-1 for bad weather)/abs(DAY(attribution date - session.date)) +# score: +# type: float created: type: datetime updated: diff --git a/Resources/config/doctrine/Session.orm.yml b/Resources/config/doctrine/Session.orm.yml index 9c89adb..68c6116 100644 --- a/Resources/config/doctrine/Session.orm.yml +++ b/Resources/config/doctrine/Session.orm.yml @@ -15,9 +15,13 @@ Rapsys\AirBundle\Entity\Session: begin: type: time nullable: true - end: + 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 created: type: datetime updated: