| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Accountoffset.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 139µs | 150µs | Class::C3::Componentised::BEGIN@1.778 |
| 1 | 1 | 1 | 16µs | 26µs | Koha::Schema::Result::Accountoffset::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 79µs | Koha::Schema::Result::Accountoffset::BEGIN@16 |
| 1 | 1 | 1 | 7µs | 13µs | Koha::Schema::Result::Accountoffset::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 162µs | # spent 150µs (139+11) within Class::C3::Componentised::BEGIN@1.778 which was called:
# once (139µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 150µs making 1 call to Class::C3::Componentised::BEGIN@1.778
# spent 11µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Accountoffset; | ||||
| 3 | |||||
| 4 | # Created by DBIx::Class::Schema::Loader | ||||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
| 6 | |||||
| 7 | =head1 NAME | ||||
| 8 | |||||
| 9 | Koha::Schema::Result::Accountoffset | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 37µs | # spent 26µs (16+10) within Koha::Schema::Result::Accountoffset::BEGIN@13 which was called:
# once (16µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 26µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@13
# spent 10µs making 1 call to strict::import | ||
| 14 | 2 | 19µs | # spent 13µs (7+6) within Koha::Schema::Result::Accountoffset::BEGIN@14 which was called:
# once (7µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 13µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 148µs | # spent 79µs (9+70) within Koha::Schema::Result::Accountoffset::BEGIN@16 which was called:
# once (9µs+70µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 79µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@16
# spent 70µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<accountoffsets> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 352µs | __PACKAGE__->table("accountoffsets"); # spent 352µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 borrowernumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | default_value: 0 | ||||
| 30 | is_foreign_key: 1 | ||||
| 31 | is_nullable: 0 | ||||
| 32 | |||||
| 33 | =head2 accountno | ||||
| 34 | |||||
| 35 | data_type: 'smallint' | ||||
| 36 | default_value: 0 | ||||
| 37 | is_nullable: 0 | ||||
| 38 | |||||
| 39 | =head2 offsetaccount | ||||
| 40 | |||||
| 41 | data_type: 'smallint' | ||||
| 42 | default_value: 0 | ||||
| 43 | is_nullable: 0 | ||||
| 44 | |||||
| 45 | =head2 offsetamount | ||||
| 46 | |||||
| 47 | data_type: 'decimal' | ||||
| 48 | is_nullable: 1 | ||||
| 49 | size: [28,6] | ||||
| 50 | |||||
| 51 | =head2 timestamp | ||||
| 52 | |||||
| 53 | data_type: 'timestamp' | ||||
| 54 | datetime_undef_if_invalid: 1 | ||||
| 55 | default_value: current_timestamp | ||||
| 56 | is_nullable: 0 | ||||
| 57 | |||||
| 58 | =cut | ||||
| 59 | |||||
| 60 | 1 | 2.10ms | __PACKAGE__->add_columns( # spent 2.10ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 61 | "borrowernumber", | ||||
| 62 | { | ||||
| 63 | data_type => "integer", | ||||
| 64 | default_value => 0, | ||||
| 65 | is_foreign_key => 1, | ||||
| 66 | is_nullable => 0, | ||||
| 67 | }, | ||||
| 68 | "accountno", | ||||
| 69 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||||
| 70 | "offsetaccount", | ||||
| 71 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||||
| 72 | "offsetamount", | ||||
| 73 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
| 74 | "timestamp", | ||||
| 75 | { | ||||
| 76 | data_type => "timestamp", | ||||
| 77 | datetime_undef_if_invalid => 1, | ||||
| 78 | default_value => \"current_timestamp", | ||||
| 79 | is_nullable => 0, | ||||
| 80 | }, | ||||
| 81 | ); | ||||
| 82 | |||||
| 83 | =head1 RELATIONS | ||||
| 84 | |||||
| 85 | =head2 borrowernumber | ||||
| 86 | |||||
| 87 | Type: belongs_to | ||||
| 88 | |||||
| 89 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 373µs | __PACKAGE__->belongs_to( # spent 373µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 94 | "borrowernumber", | ||||
| 95 | "Koha::Schema::Result::Borrower", | ||||
| 96 | { borrowernumber => "borrowernumber" }, | ||||
| 97 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 98 | ); | ||||
| 99 | |||||
| 100 | |||||
| 101 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 102 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OTfcUiJCPb5aU/gjqAb/bA | ||||
| 103 | |||||
| 104 | |||||
| 105 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 106 | 1; |