| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Suggestion.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 119µs | 142µs | Class::C3::Componentised::BEGIN@1.1571 |
| 1 | 1 | 1 | 48µs | 66µs | Koha::Schema::Result::Suggestion::BEGIN@13 |
| 1 | 1 | 1 | 26µs | 36µs | Koha::Schema::Result::Suggestion::BEGIN@14 |
| 1 | 1 | 1 | 21µs | 94µs | Koha::Schema::Result::Suggestion::BEGIN@16 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 166µs | # spent 142µs (119+23) within Class::C3::Componentised::BEGIN@1.1571 which was called:
# once (119µs+23µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 142µs making 1 call to Class::C3::Componentised::BEGIN@1.1571
# spent 24µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Suggestion; | ||||
| 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::Suggestion | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 84µs | # spent 66µs (48+18) within Koha::Schema::Result::Suggestion::BEGIN@13 which was called:
# once (48µs+18µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 66µs making 1 call to Koha::Schema::Result::Suggestion::BEGIN@13
# spent 18µs making 1 call to strict::import | ||
| 14 | 2 | 46µs | # spent 36µs (26+10) within Koha::Schema::Result::Suggestion::BEGIN@14 which was called:
# once (26µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 36µs making 1 call to Koha::Schema::Result::Suggestion::BEGIN@14
# spent 10µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 167µs | # spent 94µs (21+73) within Koha::Schema::Result::Suggestion::BEGIN@16 which was called:
# once (21µs+73µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 94µs making 1 call to Koha::Schema::Result::Suggestion::BEGIN@16
# spent 73µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<suggestions> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 330µs | __PACKAGE__->table("suggestions"); # spent 330µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 suggestionid | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 suggestedby | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | default_value: 0 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 suggesteddate | ||||
| 39 | |||||
| 40 | data_type: 'date' | ||||
| 41 | datetime_undef_if_invalid: 1 | ||||
| 42 | is_nullable: 0 | ||||
| 43 | |||||
| 44 | =head2 managedby | ||||
| 45 | |||||
| 46 | data_type: 'integer' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | |||||
| 49 | =head2 manageddate | ||||
| 50 | |||||
| 51 | data_type: 'date' | ||||
| 52 | datetime_undef_if_invalid: 1 | ||||
| 53 | is_nullable: 1 | ||||
| 54 | |||||
| 55 | =head2 acceptedby | ||||
| 56 | |||||
| 57 | data_type: 'integer' | ||||
| 58 | is_nullable: 1 | ||||
| 59 | |||||
| 60 | =head2 accepteddate | ||||
| 61 | |||||
| 62 | data_type: 'date' | ||||
| 63 | datetime_undef_if_invalid: 1 | ||||
| 64 | is_nullable: 1 | ||||
| 65 | |||||
| 66 | =head2 rejectedby | ||||
| 67 | |||||
| 68 | data_type: 'integer' | ||||
| 69 | is_nullable: 1 | ||||
| 70 | |||||
| 71 | =head2 rejecteddate | ||||
| 72 | |||||
| 73 | data_type: 'date' | ||||
| 74 | datetime_undef_if_invalid: 1 | ||||
| 75 | is_nullable: 1 | ||||
| 76 | |||||
| 77 | =head2 STATUS | ||||
| 78 | |||||
| 79 | accessor: 'status' | ||||
| 80 | data_type: 'varchar' | ||||
| 81 | default_value: (empty string) | ||||
| 82 | is_nullable: 0 | ||||
| 83 | size: 10 | ||||
| 84 | |||||
| 85 | =head2 note | ||||
| 86 | |||||
| 87 | data_type: 'mediumtext' | ||||
| 88 | is_nullable: 1 | ||||
| 89 | |||||
| 90 | =head2 author | ||||
| 91 | |||||
| 92 | data_type: 'varchar' | ||||
| 93 | is_nullable: 1 | ||||
| 94 | size: 80 | ||||
| 95 | |||||
| 96 | =head2 title | ||||
| 97 | |||||
| 98 | data_type: 'varchar' | ||||
| 99 | is_nullable: 1 | ||||
| 100 | size: 255 | ||||
| 101 | |||||
| 102 | =head2 copyrightdate | ||||
| 103 | |||||
| 104 | data_type: 'smallint' | ||||
| 105 | is_nullable: 1 | ||||
| 106 | |||||
| 107 | =head2 publishercode | ||||
| 108 | |||||
| 109 | data_type: 'varchar' | ||||
| 110 | is_nullable: 1 | ||||
| 111 | size: 255 | ||||
| 112 | |||||
| 113 | =head2 date | ||||
| 114 | |||||
| 115 | data_type: 'timestamp' | ||||
| 116 | datetime_undef_if_invalid: 1 | ||||
| 117 | default_value: current_timestamp | ||||
| 118 | is_nullable: 0 | ||||
| 119 | |||||
| 120 | =head2 volumedesc | ||||
| 121 | |||||
| 122 | data_type: 'varchar' | ||||
| 123 | is_nullable: 1 | ||||
| 124 | size: 255 | ||||
| 125 | |||||
| 126 | =head2 publicationyear | ||||
| 127 | |||||
| 128 | data_type: 'smallint' | ||||
| 129 | default_value: 0 | ||||
| 130 | is_nullable: 1 | ||||
| 131 | |||||
| 132 | =head2 place | ||||
| 133 | |||||
| 134 | data_type: 'varchar' | ||||
| 135 | is_nullable: 1 | ||||
| 136 | size: 255 | ||||
| 137 | |||||
| 138 | =head2 isbn | ||||
| 139 | |||||
| 140 | data_type: 'varchar' | ||||
| 141 | is_nullable: 1 | ||||
| 142 | size: 30 | ||||
| 143 | |||||
| 144 | =head2 biblionumber | ||||
| 145 | |||||
| 146 | data_type: 'integer' | ||||
| 147 | is_nullable: 1 | ||||
| 148 | |||||
| 149 | =head2 reason | ||||
| 150 | |||||
| 151 | data_type: 'text' | ||||
| 152 | is_nullable: 1 | ||||
| 153 | |||||
| 154 | =head2 patronreason | ||||
| 155 | |||||
| 156 | data_type: 'text' | ||||
| 157 | is_nullable: 1 | ||||
| 158 | |||||
| 159 | =head2 budgetid | ||||
| 160 | |||||
| 161 | data_type: 'integer' | ||||
| 162 | is_foreign_key: 1 | ||||
| 163 | is_nullable: 1 | ||||
| 164 | |||||
| 165 | =head2 branchcode | ||||
| 166 | |||||
| 167 | data_type: 'varchar' | ||||
| 168 | is_nullable: 1 | ||||
| 169 | size: 10 | ||||
| 170 | |||||
| 171 | =head2 collectiontitle | ||||
| 172 | |||||
| 173 | data_type: 'text' | ||||
| 174 | is_nullable: 1 | ||||
| 175 | |||||
| 176 | =head2 itemtype | ||||
| 177 | |||||
| 178 | data_type: 'varchar' | ||||
| 179 | is_nullable: 1 | ||||
| 180 | size: 30 | ||||
| 181 | |||||
| 182 | =head2 quantity | ||||
| 183 | |||||
| 184 | data_type: 'smallint' | ||||
| 185 | is_nullable: 1 | ||||
| 186 | |||||
| 187 | =head2 currency | ||||
| 188 | |||||
| 189 | data_type: 'varchar' | ||||
| 190 | is_nullable: 1 | ||||
| 191 | size: 3 | ||||
| 192 | |||||
| 193 | =head2 price | ||||
| 194 | |||||
| 195 | data_type: 'decimal' | ||||
| 196 | is_nullable: 1 | ||||
| 197 | size: [28,6] | ||||
| 198 | |||||
| 199 | =head2 total | ||||
| 200 | |||||
| 201 | data_type: 'decimal' | ||||
| 202 | is_nullable: 1 | ||||
| 203 | size: [28,6] | ||||
| 204 | |||||
| 205 | =cut | ||||
| 206 | |||||
| 207 | 1 | 9.16ms | __PACKAGE__->add_columns( # spent 9.16ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 208 | "suggestionid", | ||||
| 209 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 210 | "suggestedby", | ||||
| 211 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
| 212 | "suggesteddate", | ||||
| 213 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 }, | ||||
| 214 | "managedby", | ||||
| 215 | { data_type => "integer", is_nullable => 1 }, | ||||
| 216 | "manageddate", | ||||
| 217 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 218 | "acceptedby", | ||||
| 219 | { data_type => "integer", is_nullable => 1 }, | ||||
| 220 | "accepteddate", | ||||
| 221 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 222 | "rejectedby", | ||||
| 223 | { data_type => "integer", is_nullable => 1 }, | ||||
| 224 | "rejecteddate", | ||||
| 225 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 226 | "STATUS", | ||||
| 227 | { | ||||
| 228 | accessor => "status", | ||||
| 229 | data_type => "varchar", | ||||
| 230 | default_value => "", | ||||
| 231 | is_nullable => 0, | ||||
| 232 | size => 10, | ||||
| 233 | }, | ||||
| 234 | "note", | ||||
| 235 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 236 | "author", | ||||
| 237 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
| 238 | "title", | ||||
| 239 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 240 | "copyrightdate", | ||||
| 241 | { data_type => "smallint", is_nullable => 1 }, | ||||
| 242 | "publishercode", | ||||
| 243 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 244 | "date", | ||||
| 245 | { | ||||
| 246 | data_type => "timestamp", | ||||
| 247 | datetime_undef_if_invalid => 1, | ||||
| 248 | default_value => \"current_timestamp", | ||||
| 249 | is_nullable => 0, | ||||
| 250 | }, | ||||
| 251 | "volumedesc", | ||||
| 252 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 253 | "publicationyear", | ||||
| 254 | { data_type => "smallint", default_value => 0, is_nullable => 1 }, | ||||
| 255 | "place", | ||||
| 256 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 257 | "isbn", | ||||
| 258 | { data_type => "varchar", is_nullable => 1, size => 30 }, | ||||
| 259 | "biblionumber", | ||||
| 260 | { data_type => "integer", is_nullable => 1 }, | ||||
| 261 | "reason", | ||||
| 262 | { data_type => "text", is_nullable => 1 }, | ||||
| 263 | "patronreason", | ||||
| 264 | { data_type => "text", is_nullable => 1 }, | ||||
| 265 | "budgetid", | ||||
| 266 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 267 | "branchcode", | ||||
| 268 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
| 269 | "collectiontitle", | ||||
| 270 | { data_type => "text", is_nullable => 1 }, | ||||
| 271 | "itemtype", | ||||
| 272 | { data_type => "varchar", is_nullable => 1, size => 30 }, | ||||
| 273 | "quantity", | ||||
| 274 | { data_type => "smallint", is_nullable => 1 }, | ||||
| 275 | "currency", | ||||
| 276 | { data_type => "varchar", is_nullable => 1, size => 3 }, | ||||
| 277 | "price", | ||||
| 278 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
| 279 | "total", | ||||
| 280 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
| 281 | ); | ||||
| 282 | |||||
| 283 | =head1 PRIMARY KEY | ||||
| 284 | |||||
| 285 | =over 4 | ||||
| 286 | |||||
| 287 | =item * L</suggestionid> | ||||
| 288 | |||||
| 289 | =back | ||||
| 290 | |||||
| 291 | =cut | ||||
| 292 | |||||
| 293 | 1 | 90µs | __PACKAGE__->set_primary_key("suggestionid"); # spent 90µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 294 | |||||
| 295 | =head1 RELATIONS | ||||
| 296 | |||||
| 297 | =head2 budgetid | ||||
| 298 | |||||
| 299 | Type: belongs_to | ||||
| 300 | |||||
| 301 | Related object: L<Koha::Schema::Result::Aqbudget> | ||||
| 302 | |||||
| 303 | =cut | ||||
| 304 | |||||
| 305 | 1 | 752µs | __PACKAGE__->belongs_to( # spent 752µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 306 | "budgetid", | ||||
| 307 | "Koha::Schema::Result::Aqbudget", | ||||
| 308 | { budget_id => "budgetid" }, | ||||
| 309 | { | ||||
| 310 | is_deferrable => 1, | ||||
| 311 | join_type => "LEFT", | ||||
| 312 | on_delete => "SET NULL", | ||||
| 313 | on_update => "CASCADE", | ||||
| 314 | }, | ||||
| 315 | ); | ||||
| 316 | |||||
| 317 | |||||
| 318 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-13 11:06:30 | ||||
| 319 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zXNCczGjuuyoojx85UcQig | ||||
| 320 | |||||
| 321 | |||||
| 322 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 323 | 1; |