| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerFile.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 29µs | 32µs | Class::C3::Componentised::BEGIN@1.682 |
| 1 | 1 | 1 | 12µs | 90µs | Koha::Schema::Result::BorrowerFile::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::BorrowerFile::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 16µs | Koha::Schema::Result::BorrowerFile::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 35µs | # spent 32µs (29+3) within Class::C3::Componentised::BEGIN@1.682 which was called:
# once (29µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 32µs making 1 call to Class::C3::Componentised::BEGIN@1.682
# spent 3µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::BorrowerFile; | ||||
| 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::BorrowerFile | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::BorrowerFile::BEGIN@13 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 20µs making 1 call to Koha::Schema::Result::BorrowerFile::BEGIN@13
# spent 10µs making 1 call to strict::import | ||
| 14 | 2 | 23µs | # spent 16µs (9+7) within Koha::Schema::Result::BorrowerFile::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::BorrowerFile::BEGIN@14
# spent 7µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 168µs | # spent 90µs (12+78) within Koha::Schema::Result::BorrowerFile::BEGIN@16 which was called:
# once (12µs+78µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 90µs making 1 call to Koha::Schema::Result::BorrowerFile::BEGIN@16
# spent 78µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<borrower_files> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 317µs | __PACKAGE__->table("borrower_files"); # spent 317µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 file_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 borrowernumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 file_name | ||||
| 39 | |||||
| 40 | data_type: 'varchar' | ||||
| 41 | is_nullable: 0 | ||||
| 42 | size: 255 | ||||
| 43 | |||||
| 44 | =head2 file_type | ||||
| 45 | |||||
| 46 | data_type: 'varchar' | ||||
| 47 | is_nullable: 0 | ||||
| 48 | size: 255 | ||||
| 49 | |||||
| 50 | =head2 file_description | ||||
| 51 | |||||
| 52 | data_type: 'varchar' | ||||
| 53 | is_nullable: 1 | ||||
| 54 | size: 255 | ||||
| 55 | |||||
| 56 | =head2 file_content | ||||
| 57 | |||||
| 58 | data_type: 'longblob' | ||||
| 59 | is_nullable: 0 | ||||
| 60 | |||||
| 61 | =head2 date_uploaded | ||||
| 62 | |||||
| 63 | data_type: 'timestamp' | ||||
| 64 | datetime_undef_if_invalid: 1 | ||||
| 65 | default_value: current_timestamp | ||||
| 66 | is_nullable: 0 | ||||
| 67 | |||||
| 68 | =cut | ||||
| 69 | |||||
| 70 | 1 | 2.60ms | __PACKAGE__->add_columns( # spent 2.60ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 71 | "file_id", | ||||
| 72 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 73 | "borrowernumber", | ||||
| 74 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 75 | "file_name", | ||||
| 76 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 77 | "file_type", | ||||
| 78 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 79 | "file_description", | ||||
| 80 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 81 | "file_content", | ||||
| 82 | { data_type => "longblob", is_nullable => 0 }, | ||||
| 83 | "date_uploaded", | ||||
| 84 | { | ||||
| 85 | data_type => "timestamp", | ||||
| 86 | datetime_undef_if_invalid => 1, | ||||
| 87 | default_value => \"current_timestamp", | ||||
| 88 | is_nullable => 0, | ||||
| 89 | }, | ||||
| 90 | ); | ||||
| 91 | |||||
| 92 | =head1 PRIMARY KEY | ||||
| 93 | |||||
| 94 | =over 4 | ||||
| 95 | |||||
| 96 | =item * L</file_id> | ||||
| 97 | |||||
| 98 | =back | ||||
| 99 | |||||
| 100 | =cut | ||||
| 101 | |||||
| 102 | 1 | 72µs | __PACKAGE__->set_primary_key("file_id"); # spent 72µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 103 | |||||
| 104 | =head1 RELATIONS | ||||
| 105 | |||||
| 106 | =head2 borrowernumber | ||||
| 107 | |||||
| 108 | Type: belongs_to | ||||
| 109 | |||||
| 110 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 111 | |||||
| 112 | =cut | ||||
| 113 | |||||
| 114 | 1 | 367µs | __PACKAGE__->belongs_to( # spent 367µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 115 | "borrowernumber", | ||||
| 116 | "Koha::Schema::Result::Borrower", | ||||
| 117 | { borrowernumber => "borrowernumber" }, | ||||
| 118 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 119 | ); | ||||
| 120 | |||||
| 121 | |||||
| 122 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 123 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sbkf7bvdO4CgmiBLgIwYQg | ||||
| 124 | |||||
| 125 | |||||
| 126 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 127 | 1; |