Browse Source
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Galen Charlton <gmc@esilibrary.com>new/bootstrap-opac
37 changed files with 1873 additions and 194 deletions
@ -0,0 +1,82 @@ |
|||
package Koha::Schema::Result::AuthorisedValuesBranch; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::AuthorisedValuesBranch |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("authorised_values_branches"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 av_id |
|||
|
|||
data_type: 'integer' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
|
|||
=head2 branchcode |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"av_id", |
|||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
|||
"branchcode", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 av |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::AuthorisedValue> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"av", |
|||
"Koha::Schema::Result::AuthorisedValue", |
|||
{ id => "av_id" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
=head2 branchcode |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Branch> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"branchcode", |
|||
"Koha::Schema::Result::Branch", |
|||
{ branchcode => "branchcode" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yPaKXjOzZX76bddoMqxKmA |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,83 @@ |
|||
package Koha::Schema::Result::BorrowerAttributeTypesBranch; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::BorrowerAttributeTypesBranch |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("borrower_attribute_types_branches"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 bat_code |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 b_branchcode |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"bat_code", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
"b_branchcode", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 bat_code |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::BorrowerAttributeType> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"bat_code", |
|||
"Koha::Schema::Result::BorrowerAttributeType", |
|||
{ code => "bat_code" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
=head2 b_branchcode |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Branch> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"b_branchcode", |
|||
"Koha::Schema::Result::Branch", |
|||
{ branchcode => "b_branchcode" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z/zsaV00AbPzi/YfCh+cwA |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,554 @@ |
|||
package Koha::Schema::Result::BorrowerModification; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::BorrowerModification |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("borrower_modifications"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 timestamp |
|||
|
|||
data_type: 'timestamp' |
|||
default_value: current_timestamp |
|||
is_nullable: 0 |
|||
|
|||
=head2 verification_token |
|||
|
|||
data_type: 'varchar' |
|||
default_value: (empty string) |
|||
is_nullable: 0 |
|||
size: 255 |
|||
|
|||
=head2 borrowernumber |
|||
|
|||
data_type: 'integer' |
|||
default_value: 0 |
|||
is_nullable: 0 |
|||
|
|||
=head2 cardnumber |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 16 |
|||
|
|||
=head2 surname |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 firstname |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 title |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 othernames |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 initials |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 streetnumber |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 streettype |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 address |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 address2 |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 city |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 state |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 zipcode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 25 |
|||
|
|||
=head2 country |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 email |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 phone |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 mobile |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 fax |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 emailpro |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 phonepro |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_streetnumber |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 b_streettype |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 b_address |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 100 |
|||
|
|||
=head2 b_address2 |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_city |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_state |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_zipcode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 25 |
|||
|
|||
=head2 b_country |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_email |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 b_phone |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 dateofbirth |
|||
|
|||
data_type: 'date' |
|||
is_nullable: 1 |
|||
|
|||
=head2 branchcode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 categorycode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 dateenrolled |
|||
|
|||
data_type: 'date' |
|||
is_nullable: 1 |
|||
|
|||
=head2 dateexpiry |
|||
|
|||
data_type: 'date' |
|||
is_nullable: 1 |
|||
|
|||
=head2 gonenoaddress |
|||
|
|||
data_type: 'tinyint' |
|||
is_nullable: 1 |
|||
|
|||
=head2 lost |
|||
|
|||
data_type: 'tinyint' |
|||
is_nullable: 1 |
|||
|
|||
=head2 debarred |
|||
|
|||
data_type: 'date' |
|||
is_nullable: 1 |
|||
|
|||
=head2 debarredcomment |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 contactname |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 contactfirstname |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 contacttitle |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 guarantorid |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 borrowernotes |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 relationship |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 100 |
|||
|
|||
=head2 ethnicity |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 ethnotes |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 sex |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 1 |
|||
|
|||
=head2 password |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 30 |
|||
|
|||
=head2 flags |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 userid |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 75 |
|||
|
|||
=head2 opacnote |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 contactnote |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 sort1 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 80 |
|||
|
|||
=head2 sort2 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 80 |
|||
|
|||
=head2 altcontactfirstname |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 altcontactsurname |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 altcontactaddress1 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 altcontactaddress2 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 altcontactaddress3 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 altcontactstate |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 altcontactzipcode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 altcontactcountry |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 altcontactphone |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 smsalertnumber |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 50 |
|||
|
|||
=head2 privacy |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"timestamp", |
|||
{ |
|||
data_type => "timestamp", |
|||
default_value => \"current_timestamp", |
|||
is_nullable => 0, |
|||
}, |
|||
"verification_token", |
|||
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
|||
"borrowernumber", |
|||
{ data_type => "integer", default_value => 0, is_nullable => 0 }, |
|||
"cardnumber", |
|||
{ data_type => "varchar", is_nullable => 1, size => 16 }, |
|||
"surname", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"firstname", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"title", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"othernames", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"initials", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"streetnumber", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"streettype", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"address", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"address2", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"city", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"state", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"zipcode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 25 }, |
|||
"country", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"email", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"phone", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"mobile", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"fax", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"emailpro", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"phonepro", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"b_streetnumber", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"b_streettype", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"b_address", |
|||
{ data_type => "varchar", is_nullable => 1, size => 100 }, |
|||
"b_address2", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"b_city", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"b_state", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"b_zipcode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 25 }, |
|||
"b_country", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"b_email", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"b_phone", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"dateofbirth", |
|||
{ data_type => "date", is_nullable => 1 }, |
|||
"branchcode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"categorycode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"dateenrolled", |
|||
{ data_type => "date", is_nullable => 1 }, |
|||
"dateexpiry", |
|||
{ data_type => "date", is_nullable => 1 }, |
|||
"gonenoaddress", |
|||
{ data_type => "tinyint", is_nullable => 1 }, |
|||
"lost", |
|||
{ data_type => "tinyint", is_nullable => 1 }, |
|||
"debarred", |
|||
{ data_type => "date", is_nullable => 1 }, |
|||
"debarredcomment", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"contactname", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"contactfirstname", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"contacttitle", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"guarantorid", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"borrowernotes", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"relationship", |
|||
{ data_type => "varchar", is_nullable => 1, size => 100 }, |
|||
"ethnicity", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"ethnotes", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"sex", |
|||
{ data_type => "varchar", is_nullable => 1, size => 1 }, |
|||
"password", |
|||
{ data_type => "varchar", is_nullable => 1, size => 30 }, |
|||
"flags", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"userid", |
|||
{ data_type => "varchar", is_nullable => 1, size => 75 }, |
|||
"opacnote", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"contactnote", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"sort1", |
|||
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
|||
"sort2", |
|||
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
|||
"altcontactfirstname", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"altcontactsurname", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"altcontactaddress1", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"altcontactaddress2", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"altcontactaddress3", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"altcontactstate", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"altcontactzipcode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"altcontactcountry", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"altcontactphone", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"smsalertnumber", |
|||
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
|||
"privacy", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
); |
|||
__PACKAGE__->set_primary_key("verification_token", "borrowernumber"); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F50fjkEjqHuyl7zaEDV+3A |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,83 @@ |
|||
package Koha::Schema::Result::CategoriesBranch; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::CategoriesBranch |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("categories_branches"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 categorycode |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 branchcode |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"categorycode", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
"branchcode", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 categorycode |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Category> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"categorycode", |
|||
"Koha::Schema::Result::Category", |
|||
{ categorycode => "categorycode" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
=head2 branchcode |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Branch> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"branchcode", |
|||
"Koha::Schema::Result::Branch", |
|||
{ branchcode => "branchcode" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVolMqOZ2fpkPdSCSjpDUA |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,162 @@ |
|||
package Koha::Schema::Result::Course; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::Course |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("courses"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 course_id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 department |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 20 |
|||
|
|||
=head2 course_number |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 section |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 course_name |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 term |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 20 |
|||
|
|||
=head2 staff_note |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 public_note |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 students_count |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 20 |
|||
|
|||
=head2 enabled |
|||
|
|||
data_type: 'enum' |
|||
default_value: 'yes' |
|||
extra: {list => ["yes","no"]} |
|||
is_nullable: 0 |
|||
|
|||
=head2 timestamp |
|||
|
|||
data_type: 'timestamp' |
|||
default_value: current_timestamp |
|||
is_nullable: 0 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"course_id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"department", |
|||
{ data_type => "varchar", is_nullable => 1, size => 20 }, |
|||
"course_number", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"section", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"course_name", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"term", |
|||
{ data_type => "varchar", is_nullable => 1, size => 20 }, |
|||
"staff_note", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"public_note", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"students_count", |
|||
{ data_type => "varchar", is_nullable => 1, size => 20 }, |
|||
"enabled", |
|||
{ |
|||
data_type => "enum", |
|||
default_value => "yes", |
|||
extra => { list => ["yes", "no"] }, |
|||
is_nullable => 0, |
|||
}, |
|||
"timestamp", |
|||
{ |
|||
data_type => "timestamp", |
|||
default_value => \"current_timestamp", |
|||
is_nullable => 0, |
|||
}, |
|||
); |
|||
__PACKAGE__->set_primary_key("course_id"); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 course_instructors |
|||
|
|||
Type: has_many |
|||
|
|||
Related object: L<Koha::Schema::Result::CourseInstructor> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->has_many( |
|||
"course_instructors", |
|||
"Koha::Schema::Result::CourseInstructor", |
|||
{ "foreign.course_id" => "self.course_id" }, |
|||
{ cascade_copy => 0, cascade_delete => 0 }, |
|||
); |
|||
|
|||
=head2 course_reserves |
|||
|
|||
Type: has_many |
|||
|
|||
Related object: L<Koha::Schema::Result::CourseReserve> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->has_many( |
|||
"course_reserves", |
|||
"Koha::Schema::Result::CourseReserve", |
|||
{ "foreign.course_id" => "self.course_id" }, |
|||
{ cascade_copy => 0, cascade_delete => 0 }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SN5SfQi+SbfPr069wck64w |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,82 @@ |
|||
package Koha::Schema::Result::CourseInstructor; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::CourseInstructor |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("course_instructors"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 course_id |
|||
|
|||
data_type: 'integer' |
|||
is_foreign_key: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 borrowernumber |
|||
|
|||
data_type: 'integer' |
|||
is_foreign_key: 1 |
|||
is_nullable: 0 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"course_id", |
|||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
|||
"borrowernumber", |
|||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
|||
); |
|||
__PACKAGE__->set_primary_key("course_id", "borrowernumber"); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 course |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Course> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"course", |
|||
"Koha::Schema::Result::Course", |
|||
{ course_id => "course_id" }, |
|||
{ on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
=head2 borrowernumber |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Borrower> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"borrowernumber", |
|||
"Koha::Schema::Result::Borrower", |
|||
{ borrowernumber => "borrowernumber" }, |
|||
{ on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zPwefIbI2Pz0pX03KpS1eQ |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,142 @@ |
|||
package Koha::Schema::Result::CourseItem; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::CourseItem |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("course_items"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 ci_id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 itemnumber |
|||
|
|||
data_type: 'integer' |
|||
is_foreign_key: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 itype |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 ccode |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 holdingbranch |
|||
|
|||
data_type: 'varchar' |
|||
is_foreign_key: 1 |
|||
is_nullable: 1 |
|||
size: 10 |
|||
|
|||
=head2 location |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 80 |
|||
|
|||
=head2 enabled |
|||
|
|||
data_type: 'enum' |
|||
default_value: 'no' |
|||
extra: {list => ["yes","no"]} |
|||
is_nullable: 0 |
|||
|
|||
=head2 timestamp |
|||
|
|||
data_type: 'timestamp' |
|||
default_value: current_timestamp |
|||
is_nullable: 0 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"ci_id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"itemnumber", |
|||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
|||
"itype", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"ccode", |
|||
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
|||
"holdingbranch", |
|||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
|||
"location", |
|||
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
|||
"enabled", |
|||
{ |
|||
data_type => "enum", |
|||
default_value => "no", |
|||
extra => { list => ["yes", "no"] }, |
|||
is_nullable => 0, |
|||
}, |
|||
"timestamp", |
|||
{ |
|||
data_type => "timestamp", |
|||
default_value => \"current_timestamp", |
|||
is_nullable => 0, |
|||
}, |
|||
); |
|||
__PACKAGE__->set_primary_key("ci_id"); |
|||
__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 holdingbranch |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Branch> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"holdingbranch", |
|||
"Koha::Schema::Result::Branch", |
|||
{ branchcode => "holdingbranch" }, |
|||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
=head2 itemnumber |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Item> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"itemnumber", |
|||
"Koha::Schema::Result::Item", |
|||
{ itemnumber => "itemnumber" }, |
|||
{ on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BAqW3ImuEzBoIMWAeM12qA |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,101 @@ |
|||
package Koha::Schema::Result::CourseReserve; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::CourseReserve |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("course_reserves"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 cr_id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 course_id |
|||
|
|||
data_type: 'integer' |
|||
is_foreign_key: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 ci_id |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 0 |
|||
|
|||
=head2 staff_note |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 public_note |
|||
|
|||
data_type: 'mediumtext' |
|||
is_nullable: 1 |
|||
|
|||
=head2 timestamp |
|||
|
|||
data_type: 'timestamp' |
|||
default_value: current_timestamp |
|||
is_nullable: 0 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"cr_id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"course_id", |
|||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
|||
"ci_id", |
|||
{ data_type => "integer", is_nullable => 0 }, |
|||
"staff_note", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"public_note", |
|||
{ data_type => "mediumtext", is_nullable => 1 }, |
|||
"timestamp", |
|||
{ |
|||
data_type => "timestamp", |
|||
default_value => \"current_timestamp", |
|||
is_nullable => 0, |
|||
}, |
|||
); |
|||
__PACKAGE__->set_primary_key("cr_id"); |
|||
__PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 course |
|||
|
|||
Type: belongs_to |
|||
|
|||
Related object: L<Koha::Schema::Result::Course> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->belongs_to( |
|||
"course", |
|||
"Koha::Schema::Result::Course", |
|||
{ course_id => "course_id" }, |
|||
{ on_delete => "CASCADE", on_update => "CASCADE" }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LUZRTXuhywezgITcSqqDJQ |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,77 @@ |
|||
package Koha::Schema::Result::Linktracker; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::Linktracker |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("linktracker"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 biblionumber |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 itemnumber |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 borrowernumber |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 url |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=head2 timeclicked |
|||
|
|||
data_type: 'datetime' |
|||
is_nullable: 1 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"biblionumber", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"itemnumber", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"borrowernumber", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"url", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
"timeclicked", |
|||
{ data_type => "datetime", is_nullable => 1 }, |
|||
); |
|||
__PACKAGE__->set_primary_key("id"); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6e2s/DzzRjvXXrusUC4TZg |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,57 @@ |
|||
package Koha::Schema::Result::PluginData; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::PluginData |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("plugin_data"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 plugin_class |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 0 |
|||
size: 255 |
|||
|
|||
=head2 plugin_key |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 0 |
|||
size: 255 |
|||
|
|||
=head2 plugin_value |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 1 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"plugin_class", |
|||
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
|||
"plugin_key", |
|||
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
|||
"plugin_value", |
|||
{ data_type => "text", is_nullable => 1 }, |
|||
); |
|||
__PACKAGE__->set_primary_key("plugin_class", "plugin_key"); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XC9EptLCJK8QWBHGy1TnPw |
|||
|
|||
|
|||
# You can replace this text with custom content, and it will be preserved on regeneration |
|||
1; |
Loading…
Reference in new issue