Help language development. Donate to The Perl Foundation

Red cpan:FCO last updated on 2020-11-22

t/lib/Person.pm
use Red;

model Person is rw {
    has Int  $.id            is serial;
    has Str  $.name          is column;
    has      @.posts         is relationship({ .author-id }, model => 'Post');
}