adds data in message model and search param in messages query validator
This commit is contained in:
parent
8602c44d14
commit
b86f531b30
2 changed files with 11 additions and 1 deletions
|
@ -12,7 +12,8 @@ class Messages extends Base
|
||||||
'deliveryErrors',
|
'deliveryErrors',
|
||||||
'status',
|
'status',
|
||||||
'description',
|
'description',
|
||||||
'data'
|
'data',
|
||||||
|
'search'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -58,6 +58,15 @@ class Message extends Any
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
'example' => 1,
|
'example' => 1,
|
||||||
])
|
])
|
||||||
|
->addRule('data', [
|
||||||
|
'type' => self::TYPE_JSON,
|
||||||
|
'description' => 'Data of the message.',
|
||||||
|
'default' => [],
|
||||||
|
'example' => [
|
||||||
|
'subject' => 'Welcome to Appwrite',
|
||||||
|
'content' => 'Hi there, welcome to Appwrite family.',
|
||||||
|
],
|
||||||
|
])
|
||||||
->addRule('status', [
|
->addRule('status', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Status of delivery.',
|
'description' => 'Status of delivery.',
|
||||||
|
|
Loading…
Reference in a new issue