# Pastebin aI8O8mug MBP-de-Fernando:test-altreus fernando$ cat Schema.pm6 use Red; model Organisation is rw { has Int $.id is id; has @.students is relationship({.org-id }, :model, :require); } model Student is rw { has Str $.email is id; has Str $.name is column; has Int $!org-id is referencing{ :model, :require, :column }; has $.org is relationship({ .id }, :model, :require); } MBP-de-Fernando:test-altreus fernando$ perl6 -e ' use lib "."; use Red; use Schema; my $*RED-DB = database "SQLite", :database<./hootboxes.db>; Organisation.^create-table: :if-not-exists; Student.^create-table: :if-not-exists; ' MBP-de-Fernando:test-altreus fernando$