package MyApp::Post;
use Elastic::Doc;
#===================================
has 'title' => (
#===================================
is => 'rw',
isa => 'Str',
);
#===================================
has 'body' => (
#===================================
is => 'rw',
isa => 'Str',
);
#===================================
has 'user' => (
#===================================
is => 'ro',
isa => 'MyApp::User',
);
no Elastic::Doc;
1;