2017-02-24 19:27:43 +00:00
|
|
|
use utf8;
|
|
|
|
package Pear::LocalLoop::Schema::Result::PendingTransaction;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2017-04-21 18:54:28 +00:00
|
|
|
__PACKAGE__->load_components( qw/
|
|
|
|
InflateColumn::DateTime
|
|
|
|
InflateColumn::FS
|
|
|
|
/);
|
2017-02-24 19:27:43 +00:00
|
|
|
|
|
|
|
__PACKAGE__->table("PendingTransactions");
|
|
|
|
|
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"pendingtransactionid",
|
|
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
|
|
|
"buyeruserid_fk",
|
|
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
|
|
"pendingsellerorganisationid_fk",
|
|
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
|
|
"valuemicrocurrency",
|
|
|
|
{ data_type => "integer", is_nullable => 0 },
|
2017-04-21 18:54:28 +00:00
|
|
|
"proof_image",
|
|
|
|
{
|
|
|
|
data_type => "text",
|
|
|
|
is_nullable => 0,
|
|
|
|
},
|
2017-02-24 19:27:43 +00:00
|
|
|
"timedatesubmitted",
|
|
|
|
{ data_type => "datetime", is_nullable => 0 },
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("pendingtransactionid");
|
|
|
|
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"buyeruserid_fk",
|
|
|
|
"Pear::LocalLoop::Schema::Result::User",
|
|
|
|
{ userid => "buyeruserid_fk" },
|
|
|
|
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
|
|
|
|
);
|
|
|
|
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"pendingsellerorganisationid_fk",
|
|
|
|
"Pear::LocalLoop::Schema::Result::PendingOrganisation",
|
2017-04-21 11:42:31 +00:00
|
|
|
{ id => "pendingsellerorganisationid_fk" },
|
2017-02-24 19:27:43 +00:00
|
|
|
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
|
|
|
|
);
|
|
|
|
|
|
|
|
1;
|