# Pastebin dohTlVy9 ➜ xinming_test raku -e ' use lib "."; use DB; use Red:api<2>; red-defaults default => database "SQLite"; DB::A.^create-table; DB::B.^create-table; DB::A.^create: :title; my $t = DB::A.^load: :id(1); $t.b.raku.say; ' Array[DB::B].new() ➜ xinming_test cat DB.rakumod use Red:api<2>; model DB::B { ... } model DB::A is table { has Int $.id is serial; has Str $.title is column; has DB::B @.b } model DB::B is table { has Int $.id is serial; has Str $.name is column; has Int $.a-id is referencing(*.id, :model, :require); }