['type' => 'integer'], 'sender_id' => ['type' => 'integer', 'null' => false], 'receiver_id' => ['type' => 'integer', 'null' => false], 'body' => 'text', 'created' => 'datetime', 'updated' => 'datetime', '_constraints' => [ 'primary' => ['type' => 'primary', 'columns' => ['id']], 'sender_idx' => [ 'type' => 'foreign', 'columns' => ['sender_id'], 'references' => ['users', 'id'], 'update' => 'noAction', 'delete' => 'noAction', ], 'receiver_idx' => [ 'type' => 'foreign', 'columns' => ['receiver_id'], 'references' => ['users', 'id'], 'update' => 'noAction', 'delete' => 'noAction', ], ], ]; /** * records property * * @var array */ public $records = [ [ 'sender_id' => 1, 'receiver_id' => 1, 'body' => 'Try it out!', ], ]; }