### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: t/lib/Person.rakumod
### ----------------------------------------------------
use v6;
use Red;

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


