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 | 70µs | 80µs | BEGIN@1.2797 | Class::C3::Componentised::
1 | 1 | 1 | 24µs | 40µs | BEGIN@13 | Koha::Schema::Result::Accountoffset::
1 | 1 | 1 | 17µs | 31µs | BEGIN@14 | Koha::Schema::Result::Accountoffset::
1 | 1 | 1 | 11µs | 98µs | BEGIN@16 | Koha::Schema::Result::Accountoffset::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 89µs | # spent 80µs (70+9) within Class::C3::Componentised::BEGIN@1.2797 which was called:
# once (70µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 80µs making 1 call to Class::C3::Componentised::BEGIN@1.2797
# spent 9µ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 | 55µs | # spent 40µs (24+16) within Koha::Schema::Result::Accountoffset::BEGIN@13 which was called:
# once (24µs+16µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 40µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@13
# spent 16µs making 1 call to strict::import | ||
14 | 2 | 45µs | # spent 31µs (17+14) within Koha::Schema::Result::Accountoffset::BEGIN@14 which was called:
# once (17µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 31µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@14
# spent 14µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 186µs | # spent 98µs (11+87) within Koha::Schema::Result::Accountoffset::BEGIN@16 which was called:
# once (11µs+87µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 98µs making 1 call to Koha::Schema::Result::Accountoffset::BEGIN@16
# spent 87µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<accountoffsets> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 359µs | __PACKAGE__->table("accountoffsets"); # spent 359µ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 | 3.54ms | __PACKAGE__->add_columns( # spent 3.54ms 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 | 413µs | __PACKAGE__->belongs_to( # spent 413µ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; |