is_foreign_key: 1
is_nullable: 1
+=head2 deliveryplace
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 billingplace
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
=cut
__PACKAGE__->add_columns(
{ data_type => "mediumtext", is_nullable => 1 },
"basketgroupid",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "deliveryplace",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "billingplace",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
);
__PACKAGE__->set_primary_key("basketno");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eRG3p93qKZhp3rNPwG60Ig
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dtVubmNVtOouPnHgut95og
# You can replace this text with custom content, and it will be preserved on regeneration
is_foreign_key: 1
is_nullable: 0
-=head2 billingplace
-
- data_type: 'varchar'
- is_nullable: 1
- size: 10
-
=head2 deliveryplace
data_type: 'varchar'
is_nullable: 1
size: 255
+=head2 billingplace
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
=cut
__PACKAGE__->add_columns(
{ data_type => "tinyint", is_nullable => 1 },
"booksellerid",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
- "billingplace",
- { data_type => "varchar", is_nullable => 1, size => 10 },
"deliveryplace",
{ data_type => "varchar", is_nullable => 1, size => 10 },
"freedeliveryplace",
{ data_type => "text", is_nullable => 1 },
"deliverycomment",
{ data_type => "varchar", is_nullable => 1, size => 255 },
+ "billingplace",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
);
__PACKAGE__->set_primary_key("id");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sxuJyGpPeqNxjNAnAAe69A
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fm4sF0IGJYdSejZIB4uoBQ
# You can replace this text with custom content, and it will be preserved on regeneration
data_type: 'mediumtext'
is_nullable: 1
-=head2 subscription
-
- data_type: 'tinyint'
- is_nullable: 1
-
-=head2 serialid
-
- data_type: 'varchar'
- is_nullable: 1
- size: 30
-
=head2 basketno
data_type: 'integer'
is_nullable: 1
size: [13,2]
-=head2 gst
+=head2 gstrate
data_type: 'decimal'
is_nullable: 1
- size: [13,2]
+ size: [6,4]
+
+=head2 discount
+
+ data_type: 'float'
+ is_nullable: 1
+ size: [6,4]
=head2 budget_id
data_type: 'date'
is_nullable: 1
+=head2 subscriptionid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
=head2 parent_ordernumber
data_type: 'integer'
{ data_type => "mediumtext", is_nullable => 1 },
"purchaseordernumber",
{ data_type => "mediumtext", is_nullable => 1 },
- "subscription",
- { data_type => "tinyint", is_nullable => 1 },
- "serialid",
- { data_type => "varchar", is_nullable => 1, size => 30 },
"basketno",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"biblioitemnumber",
{ data_type => "decimal", is_nullable => 1, size => [13, 2] },
"ecost",
{ data_type => "decimal", is_nullable => 1, size => [13, 2] },
- "gst",
- { data_type => "decimal", is_nullable => 1, size => [13, 2] },
+ "gstrate",
+ { data_type => "decimal", is_nullable => 1, size => [6, 4] },
+ "discount",
+ { data_type => "float", is_nullable => 1, size => [6, 4] },
"budget_id",
{ data_type => "integer", is_nullable => 0 },
"budgetgroup_id",
{ data_type => "integer", default_value => 0, is_nullable => 1 },
"claimed_date",
{ data_type => "date", is_nullable => 1 },
+ "subscriptionid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"parent_ordernumber",
{ data_type => "integer", is_nullable => 1 },
);
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
);
+=head2 subscriptionid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Subscription>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "subscriptionid",
+ "Koha::Schema::Result::Subscription",
+ { subscriptionid => "subscriptionid" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 aqorders_items
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AqordersItem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders_items",
+ "Koha::Schema::Result::AqordersItem",
+ { "foreign.ordernumber" => "self.ordernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McWqeFHBMTDvKV7pUEqJ3w
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H1fME9Sli2LWh6zAmpzK8A
# You can replace this text with custom content, and it will be preserved on regeneration
=head2 ordernumber
data_type: 'integer'
+ is_foreign_key: 1
is_nullable: 0
=head2 itemnumber
__PACKAGE__->add_columns(
"ordernumber",
- { data_type => "integer", is_nullable => 0 },
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"itemnumber",
{ data_type => "integer", is_nullable => 0 },
"timestamp",
);
__PACKAGE__->set_primary_key("itemnumber");
+=head1 RELATIONS
+
+=head2 ordernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "ordernumber",
+ "Koha::Schema::Result::Aqorder",
+ { ordernumber => "ordernumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OlihytSmp6fCmG/hAT7FEg
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KFzTfBzan4H1BxT1suyXA
# You can replace this text with custom content, and it will be preserved on regeneration
);
__PACKAGE__->set_primary_key("id");
+=head1 RELATIONS
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GpXi5gcFBtEj82hEFzhmVg
+=head2 authorised_values_branches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "authorised_values_branches",
+ "Koha::Schema::Result::AuthorisedValuesBranch",
+ { "foreign.av_id" => "self.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:UQnP1vJKTnc7KwuTT20Orw
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
=head2 state
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 zipcode
=head2 b_state
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 b_zipcode
=head2 altcontactstate
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 altcontactzipcode
"city",
{ data_type => "mediumtext", is_nullable => 0 },
"state",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"zipcode",
{ data_type => "varchar", is_nullable => 1, size => 25 },
"country",
"b_city",
{ data_type => "mediumtext", is_nullable => 1 },
"b_state",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"b_zipcode",
{ data_type => "varchar", is_nullable => 1, size => 25 },
"b_country",
"altcontactaddress3",
{ data_type => "varchar", is_nullable => 1, size => 255 },
"altcontactstate",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"altcontactzipcode",
{ data_type => "varchar", is_nullable => 1, size => 50 },
"altcontactcountry",
{ on_delete => "CASCADE", on_update => "CASCADE" },
);
+=head2 course_instructors
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CourseInstructor>
+
+=cut
+
+__PACKAGE__->has_many(
+ "course_instructors",
+ "Koha::Schema::Result::CourseInstructor",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 creator_batches
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a5PYhuHX3DHlNJqdmIuqTw
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RZG8l5yFKXZzsAY8CenNeA
# You can replace this text with custom content, and it will be preserved on regeneration
=head2 category_code
data_type: 'varchar'
- is_foreign_key: 1
is_nullable: 1
size: 10
"display_checkout",
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"category_code",
- { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ { data_type => "varchar", is_nullable => 1, size => 10 },
"class",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
);
=head1 RELATIONS
-=head2 category_code
+=head2 borrower_attribute_types_branches
-Type: belongs_to
+Type: has_many
-Related object: L<Koha::Schema::Result::Category>
+Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
=cut
-__PACKAGE__->belongs_to(
- "category_code",
- "Koha::Schema::Result::Category",
- { categorycode => "category_code" },
- { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+__PACKAGE__->has_many(
+ "borrower_attribute_types_branches",
+ "Koha::Schema::Result::BorrowerAttributeTypesBranch",
+ { "foreign.bat_code" => "self.code" },
+ { cascade_copy => 0, cascade_delete => 0 },
);
=head2 borrower_attributes
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EpdavGdH3uR/eaNLJIoHCg
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwni0x6JLQPsjX8UOSnr4Q
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
--- /dev/null
+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;
=head1 RELATIONS
+=head2 authorised_values_branches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "authorised_values_branches",
+ "Koha::Schema::Result::AuthorisedValuesBranch",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrower_attribute_types_branches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_attribute_types_branches",
+ "Koha::Schema::Result::BorrowerAttributeTypesBranch",
+ { "foreign.b_branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 borrowers
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 categories_branches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CategoriesBranch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "categories_branches",
+ "Koha::Schema::Result::CategoriesBranch",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 course_items
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CourseItem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "course_items",
+ "Koha::Schema::Result::CourseItem",
+ { "foreign.holdingbranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 creator_batches
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7/fUACQhSXHg0daDi6MGbQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BS/6xtFAoMSKsXho4IXXjQ
# You can replace this text with custom content, and it will be preserved on regeneration
is_nullable: 1
size: 16
+=head2 show_in_pulldown
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
=cut
__PACKAGE__->add_columns(
{ data_type => "mediumtext", is_nullable => 1 },
"categorytype",
{ data_type => "varchar", is_nullable => 1, size => 16 },
+ "show_in_pulldown",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("categorycode");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i3um3oAfQ9EV/pJHuUiWnA
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VkvImio07fpqmHCntPn5+w
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
=head1 RELATIONS
-=head2 borrower_attribute_types
-
-Type: has_many
-
-Related object: L<Koha::Schema::Result::BorrowerAttributeType>
-
-=cut
-
-__PACKAGE__->has_many(
- "borrower_attribute_types",
- "Koha::Schema::Result::BorrowerAttributeType",
- { "foreign.category_code" => "self.categorycode" },
- { cascade_copy => 0, cascade_delete => 0 },
-);
-
=head2 borrower_message_preferences
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 categories_branches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CategoriesBranch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "categories_branches",
+ "Koha::Schema::Result::CategoriesBranch",
+ { "foreign.categorycode" => "self.categorycode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 default_borrower_circ_rule
Type: might_have
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BpTckQJaDAxGwrOS9s3tuQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rQnbpUtXD6tNSnSGpowcaw
# You can replace this text with custom content, and it will be preserved on regeneration
is_nullable: 1
size: 100
-=head2 city_zipcode
+=head2 city_country
data_type: 'varchar'
is_nullable: 1
- size: 20
+ size: 100
-=head2 city_country
+=head2 city_zipcode
data_type: 'varchar'
is_nullable: 1
- size: 100
+ size: 20
=cut
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
"city_state",
{ data_type => "varchar", is_nullable => 1, size => 100 },
- "city_zipcode",
- { data_type => "varchar", is_nullable => 1, size => 20 },
"city_country",
{ data_type => "varchar", is_nullable => 1, size => 100 },
+ "city_zipcode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
);
__PACKAGE__->set_primary_key("cityid");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rm0FlpZ/rA6OLY0TP/RMTQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ziAiH8vvSS8OzKHZBcpUow
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
=head2 biblionumber
data_type: 'integer'
- default_value: 0
+ is_auto_increment: 1
is_nullable: 0
=head2 frameworkcode
__PACKAGE__->add_columns(
"biblionumber",
- { data_type => "integer", default_value => 0, is_nullable => 0 },
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"frameworkcode",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
"author",
__PACKAGE__->set_primary_key("biblionumber");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/x/M9xGCkN5ClHrk1GUELw
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NeMRnyT+TXPaypKdluD7BQ
# You can replace this text with custom content, and it will be preserved on regeneration
=head2 state
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 zipcode
=head2 b_state
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 b_zipcode
=head2 categorycode
data_type: 'varchar'
- is_nullable: 1
+ default_value: (empty string)
+ is_nullable: 0
size: 10
=head2 dateenrolled
=head2 altcontactstate
- data_type: 'mediumtext'
+ data_type: 'text'
is_nullable: 1
=head2 altcontactzipcode
=head2 privacy
data_type: 'integer'
- is_nullable: 1
+ default_value: 1
+ is_nullable: 0
=cut
"city",
{ data_type => "mediumtext", is_nullable => 0 },
"state",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"zipcode",
{ data_type => "varchar", is_nullable => 1, size => 25 },
"country",
"b_city",
{ data_type => "mediumtext", is_nullable => 1 },
"b_state",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"b_zipcode",
{ data_type => "varchar", is_nullable => 1, size => 25 },
"b_country",
"branchcode",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
"categorycode",
- { data_type => "varchar", is_nullable => 1, size => 10 },
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
"dateenrolled",
{ data_type => "date", is_nullable => 1 },
"dateexpiry",
"altcontactaddress3",
{ data_type => "varchar", is_nullable => 1, size => 255 },
"altcontactstate",
- { data_type => "mediumtext", is_nullable => 1 },
+ { data_type => "text", is_nullable => 1 },
"altcontactzipcode",
{ data_type => "varchar", is_nullable => 1, size => 50 },
"altcontactcountry",
"smsalertnumber",
{ data_type => "varchar", is_nullable => 1, size => 50 },
"privacy",
- { data_type => "integer", is_nullable => 1 },
+ { data_type => "integer", default_value => 1, is_nullable => 0 },
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bFluvx9OwGTzEMpQZPBuKQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1D2zAd8OsHXZ2s9cEVevug
# You can replace this text with custom content, and it will be preserved on regeneration
is_nullable: 1
size: 255
+=head2 coded_location_qualifier
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
=head2 issues
data_type: 'smallint'
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"itemcallnumber",
{ data_type => "varchar", is_nullable => 1, size => 255 },
+ "coded_location_qualifier",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
"issues",
{ data_type => "smallint", is_nullable => 1 },
"renewals",
__PACKAGE__->set_primary_key("itemnumber");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:71VE1YzdzK7dAtGTVKeCkg
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dQeILHSwObg9anjIGL+5vA
# You can replace this text with custom content, and it will be preserved on regeneration
extra: {list => ["batch","z3950","webservice"]}
is_nullable: 0
+=head2 record_type
+
+ data_type: 'enum'
+ default_value: 'biblio'
+ extra: {list => ["biblio","auth","holdings"]}
+ is_nullable: 0
+
=head2 file_name
data_type: 'varchar'
data_type: 'mediumtext'
is_nullable: 1
-=head2 record_type
-
- data_type: 'enum'
- default_value: 'biblio'
- extra: {list => ["biblio","auth","holdings"]}
- is_nullable: 0
-
=cut
__PACKAGE__->add_columns(
extra => { list => ["batch", "z3950", "webservice"] },
is_nullable => 0,
},
- "file_name",
- { data_type => "varchar", is_nullable => 1, size => 100 },
- "comments",
- { data_type => "mediumtext", is_nullable => 1 },
"record_type",
{
data_type => "enum",
extra => { list => ["biblio", "auth", "holdings"] },
is_nullable => 0,
},
+ "file_name",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "comments",
+ { data_type => "mediumtext", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("import_batch_id");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:es2clfR8Vlgv8rN/kM65iA
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LUl8GuPahmUwYeaGAKBJxw
# You can replace this text with custom content, and it will be preserved on regeneration
data_type: 'integer'
is_foreign_key: 1
- is_nullable: 0
+ is_nullable: 1
=head2 itemnumber
data_type: 'integer'
is_foreign_key: 1
- is_nullable: 0
+ is_nullable: 1
=head2 date_due
__PACKAGE__->add_columns(
"borrowernumber",
- { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"itemnumber",
- { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"date_due",
{ data_type => "datetime", is_nullable => 1 },
"branchcode",
"borrowernumber",
"Koha::Schema::Result::Borrower",
{ borrowernumber => "borrowernumber" },
- { on_delete => "CASCADE", on_update => "CASCADE" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 itemnumber
"itemnumber",
"Koha::Schema::Result::Item",
{ itemnumber => "itemnumber" },
- { on_delete => "CASCADE", on_update => "CASCADE" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KCy3FmbJK9aZRqXSAkYe5g
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uZUDWDGWOkC3oCOyMaG1sg
# You can replace this text with custom content, and it will be preserved on regeneration
default_value: 0
is_nullable: 0
+=head2 renewalperiod
+
+ data_type: 'integer'
+ is_nullable: 1
+
=head2 reservesallowed
data_type: 'smallint'
default_value: 0
is_nullable: 0
+=head2 holdspickupdelay
+
+ data_type: 'integer'
+ is_nullable: 1
+
=head2 branchcode
data_type: 'varchar'
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"renewalsallowed",
{ data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "renewalperiod",
+ { data_type => "integer", is_nullable => 1 },
"reservesallowed",
{ data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "holdspickupdelay",
+ { data_type => "integer", is_nullable => 1 },
"branchcode",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
"overduefinescap",
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bsTUaL5I872EWP0ZLfdPQA
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:odTb6vtz4DignNIlYwkNEg
# You can replace this text with custom content, and it will be preserved on regeneration
is_nullable: 1
size: 255
+=head2 coded_location_qualifier
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
=head2 issues
data_type: 'smallint'
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"itemcallnumber",
{ data_type => "varchar", is_nullable => 1, size => 255 },
+ "coded_location_qualifier",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
"issues",
{ data_type => "smallint", is_nullable => 1 },
"renewals",
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 course_item
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::CourseItem>
+
+=cut
+
+__PACKAGE__->might_have(
+ "course_item",
+ "Koha::Schema::Result::CourseItem",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 creator_batches
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+jjodrPqX4WhBbgnTc5OqQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f3HngbnArIKegakzHgcFBg
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
data_type: 'datetime'
is_nullable: 1
+=head2 maxpickupdate
+
+ data_type: 'date'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"suspend_until",
{ data_type => "datetime", is_nullable => 1 },
+ "maxpickupdate",
+ { data_type => "date", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("reserve_id");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1b1FcIuOJ5ZRU2apc6swkQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ni1RNxdeOoypM+GwYu1vAQ
# You can replace this text with custom content, and it will be preserved on regeneration
=head2 barcode
data_type: 'varchar'
- is_nullable: 0
+ is_nullable: 1
size: 20
=head2 cardnumber
is_nullable: 1
size: 16
+=head2 amount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
=cut
__PACKAGE__->add_columns(
"action",
{ data_type => "varchar", is_nullable => 0, size => 10 },
"barcode",
- { data_type => "varchar", is_nullable => 0, size => 20 },
+ { data_type => "varchar", is_nullable => 1, size => 20 },
"cardnumber",
{ data_type => "varchar", is_nullable => 1, size => 16 },
+ "amount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
);
__PACKAGE__->set_primary_key("operationid");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PFEH3bfCYOG8Q3dOX/IQ5w
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ECj0ps97NmZowYLZv++zbA
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+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;
data_type: 'datetime'
is_nullable: 1
+=head2 maxpickupdate
+
+ data_type: 'date'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"suspend_until",
{ data_type => "datetime", is_nullable => 1 },
+ "maxpickupdate",
+ { data_type => "date", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("reserve_id");
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8kr13IjL7oHVHRXQzTReA
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RqJFYCoDl4dMH1cwZilLKA
# You can replace this text with custom content, and it will be preserved on regeneration
data_type: 'date'
is_nullable: 1
-=head2 itemnumber
-
- data_type: 'text'
- is_nullable: 1
-
=head2 claimdate
data_type: 'date'
{ data_type => "text", is_nullable => 1 },
"publisheddate",
{ data_type => "date", is_nullable => 1 },
- "itemnumber",
- { data_type => "text", is_nullable => 1 },
"claimdate",
{ data_type => "date", is_nullable => 1 },
"routingnotes",
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PqzibMlED9bg0uOONSBnmg
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6kL+JePSa/pT8Fvyrp2xow
# You can replace this text with custom content, and it will be preserved on regeneration
data_type: 'date'
is_nullable: 1
+=head2 closed
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 reneweddate
+
+ data_type: 'date'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
{ data_type => "integer", default_value => 0, is_nullable => 0 },
"enddate",
{ data_type => "date", is_nullable => 1 },
+ "closed",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "reneweddate",
+ { data_type => "date", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("subscriptionid");
=head1 RELATIONS
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.subscriptionid" => "self.subscriptionid" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 subscriptionroutinglists
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V94nwW1uwvdVX634/QPe6A
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dNaDbtGiAeSsPKEu2vd9sw
# You can replace this text with custom content, and it will be preserved on regeneration
data_type: 'varchar'
is_nullable: 1
- size: 80
+ size: 255
=head2 copyrightdate
"author",
{ data_type => "varchar", is_nullable => 1, size => 80 },
"title",
- { data_type => "varchar", is_nullable => 1, size => 80 },
+ { data_type => "varchar", is_nullable => 1, size => 255 },
"copyrightdate",
{ data_type => "smallint", is_nullable => 1 },
"publishercode",
__PACKAGE__->set_primary_key("suggestionid");
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yseojs5ogx6ZmYsbhE03Gw
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FCZjU1DjqLCAcw+dSjpP/w
# You can replace this text with custom content, and it will be preserved on regeneration
=head1 RELATIONS
-=head2 biblionumber
+=head2 borrowernumber
Type: belongs_to
-Related object: L<Koha::Schema::Result::Biblio>
+Related object: L<Koha::Schema::Result::Borrower>
=cut
__PACKAGE__->belongs_to(
- "biblionumber",
- "Koha::Schema::Result::Biblio",
- { biblionumber => "biblionumber" },
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
{ on_delete => "CASCADE", on_update => "CASCADE" },
);
-=head2 borrowernumber
+=head2 biblionumber
Type: belongs_to
-Related object: L<Koha::Schema::Result::Borrower>
+Related object: L<Koha::Schema::Result::Biblio>
=cut
__PACKAGE__->belongs_to(
- "borrowernumber",
- "Koha::Schema::Result::Borrower",
- { borrowernumber => "borrowernumber" },
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
{ on_delete => "CASCADE", on_update => "CASCADE" },
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xdc0YzmHsXuuuUWfa1aRpg
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SunUKfsdQ6hNupUkD2ygzw
# You can replace this text with custom content, and it will be preserved on regeneration
=head1 RELATIONS
-=head2 biblionumber
+=head2 term
Type: belongs_to
-Related object: L<Koha::Schema::Result::Biblio>
+Related object: L<Koha::Schema::Result::TagsApproval>
=cut
__PACKAGE__->belongs_to(
- "biblionumber",
- "Koha::Schema::Result::Biblio",
- { biblionumber => "biblionumber" },
+ "term",
+ "Koha::Schema::Result::TagsApproval",
+ { term => "term" },
{ on_delete => "CASCADE", on_update => "CASCADE" },
);
-=head2 term
+=head2 biblionumber
Type: belongs_to
-Related object: L<Koha::Schema::Result::TagsApproval>
+Related object: L<Koha::Schema::Result::Biblio>
=cut
__PACKAGE__->belongs_to(
- "term",
- "Koha::Schema::Result::TagsApproval",
- { term => "term" },
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
{ on_delete => "CASCADE", on_update => "CASCADE" },
);
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BTw4FJK85g85U1U0RELiQQ
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X0OvXQjDYLVCMgHHWx/kpw
# You can replace this text with custom content, and it will be preserved on regeneration
=head1 RELATIONS
+=head2 shelfnumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Virtualshelve>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "shelfnumber",
+ "Koha::Schema::Result::Virtualshelve",
+ { shelfnumber => "shelfnumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
=head2 biblionumber
Type: belongs_to
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
);
-=head2 shelfnumber
-
-Type: belongs_to
-
-Related object: L<Koha::Schema::Result::Virtualshelve>
-
-=cut
-
-__PACKAGE__->belongs_to(
- "shelfnumber",
- "Koha::Schema::Result::Virtualshelve",
- { shelfnumber => "shelfnumber" },
- { on_delete => "CASCADE", on_update => "CASCADE" },
-);
-
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LytHu3VzJUfDRLgSsRHy1Q
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hno59ucoCC6fZqGi1A2yIA
# You can replace this text with custom content, and it will be preserved on regeneration