fix: db column types

fix #7
fix #6
pull/9/head
sualko 2020-04-27 17:16:18 +02:00
parent 29c990692f
commit 77adf14952
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,12 @@ class Room extends Entity implements JsonSerializable
public $record; public $record;
public $userId; public $userId;
public function __construct()
{
$this->addType('maxParticipants', 'integer');
$this->addType('record', 'boolean');
}
public function jsonSerialize(): array public function jsonSerialize(): array
{ {
return [ return [