# Pastebin zpuYMmSl MBP-de-Fernando:test-altreus fernando$ cat Schema.pm6 use Red; model Student { ... } model Organisation is rw { has Int $.id is id; has Student @.students is relationship{.org-id }; } model Student is rw { has Str $.email is id; has Str $.name is column; has Int $!org-id is referencing{ Organisation.id }; has Organisation $.org is relationship{ .id }; } 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$