More graph niceness

This commit is contained in:
Tom Bloor 2019-07-15 02:41:23 +01:00
parent 135fd890b2
commit 314c3e4bd5
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC
3 changed files with 63 additions and 0 deletions

View file

@ -22,4 +22,18 @@ SELECT "value",
FROM "transactions"
/);
__PACKAGE__->belongs_to(
"buyer",
"Pear::LocalLoop::Schema::Result::Entity",
{ id => "buyer_id" },
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
);
__PACKAGE__->belongs_to(
"seller",
"Pear::LocalLoop::Schema::Result::Entity",
{ id => "seller_id" },
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
);
1;