in reply to [Raku] Trying to get Red see the schema
I'm trying to make it not necessary.use Red; model User is table<_user> { has Int $!id is serial; has Str $.username is column is rw; has Str $.password is column{ :nullable } is rw; has @.vmails is relationship(*.user_id, :model<Vmail>, :requir +e<Schema>); } model Vmail { has Int $!id is serial; has Int $!user_id is referencing(*.id, :model<User>, :require< +Schema>); has Str $.name is column; has $.user is relationship(*.id, :model<User>, :require<Schema +>); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Raku] Trying to get Red see the schema
by tomgracey (Scribe) on Mar 28, 2021 at 14:53 UTC | |
by smokemachine (Hermit) on Mar 28, 2021 at 19:04 UTC | |
by smokemachine (Hermit) on Mar 28, 2021 at 20:36 UTC | |
by tomgracey (Scribe) on Mar 29, 2021 at 09:49 UTC |