Skip to content

Commit

Permalink
chore(ZMS-3235): fix entities and schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabinatix97 committed Feb 25, 2025
1 parent 07a0093 commit 8556d24
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion zmsentities/schema/dayoff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"date",
"name"
],
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"id": {
"type": "number"
Expand Down
11 changes: 3 additions & 8 deletions zmsentities/schema/process.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,9 @@
"description": "unix timestamp representing creation of the process"
},
"id": {
"anyOf": [
{ "const": 0 },
{
"type": "number",
"minimum": 1000
}
],
"description": "Number is used to identify appointments like on call displays"
"type": "number",
"description": "Number is used to identify appointments like on call displays\n",
"minimum": 1000
},
"lastChange": {
"type": "number",
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/src/Zmsentities/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getDefaults()
'clients' => new Collection\ClientList(),
'createIP' => '',
'createTimestamp' => time(),
'id' => 0,
'id' => 1234,
'archiveId' => 0,
'queue' => new Queue(),
'reminderTimestamp' => 0,
Expand Down
6 changes: 3 additions & 3 deletions zmsentities/src/Zmsentities/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function getDefaults()
'basket' => [
'requests' => '',
'providers' => '',
'scope' => 0,
'process' => 0,
'date' => 0,
'scope' => '0',
'process' => '0',
'date' => '0',
'familyName' => '',
'email' => '',
'telehone' => '',
Expand Down
2 changes: 1 addition & 1 deletion zmsentities/src/Zmsentities/Workstation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Workstation extends Schema\Entity
public function getDefaults()
{
return [
'id' => 123,
'id' => 0,
'useraccount' => new Useraccount(),
'process' => new Process(),
'name' => '',
Expand Down

0 comments on commit 8556d24

Please sign in to comment.