use strict;
use warnings;
use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
-
+$ENV{'DBIC_DONT_VALIDATE_RELS'} = 1; # FIXME once the DBIx schema has its schema adjusted we should remove this
BEGIN {
if ($ENV{'HTTP_USER_AGENT'}) {
require CGI::Carp;
}
use DBI;
+require Koha::Schema;
use ZOOM;
use XML::Simple;
use C4::Boolean;
return;
}
+# _new_schema
+# Internal helper function (not a method!). This creates a new
+# database connection from the data given in the current context, and
+# returns it.
+sub _new_schema {
+ my $db_driver;
+ if ($context->config("db_scheme")){
+ $db_driver=db_scheme2dbi($context->config("db_scheme"));
+ }else{
+ $db_driver="mysql";
+ }
+
+ my $db_name = $context->config("database");
+ my $db_host = $context->config("hostname");
+ my $db_port = $context->config("port") || '';
+ my $db_user = $context->config("user");
+ my $db_passwd = $context->config("pass");
+ my $schema= Koha::Schema->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",
+ $db_user, $db_passwd);
+ return $schema;
+}
+
+=head2 schema
+
+ $schema = C4::Context->schema;
+
+Returns a database handle connected to the Koha database for the
+current context. If no connection has yet been made, this method
+creates one, and connects to the database.
+
+This database handle is cached for future use: if you call
+C<C4::Context-E<gt>schema> twice, you will get the same handle both
+times. If you need a second database handle, use C<&new_schema> and
+possibly C<&set_schema>.
+
+=cut
+
+sub schema {
+ my $self = shift;
+ my $sth;
+
+ if (defined($context->{"schema"}) && $context->{"schema"}->ping()) {
+ return $context->{"schema"};
+ }
+
+ # No database handle or it died . Create one.
+ $context->{"schema"} = &_new_schema();
+
+ return $context->{"schema"};
+}
+
+=head2 new_schema
+
+ $schema = C4::Context->new_schema;
+
+Creates a new connection to the Koha database for the current context,
+and returns the database handle (a C<DBI::db> object).
+
+The handle is not saved anywhere: this method is strictly a
+convenience function; the point is that it knows which database to
+connect to so that the caller doesn't have to know.
+
+=cut
+
+#'
+sub new_schema {
+ my $self = shift;
+
+ return &_new_schema();
+}
+
+=head2 set_schema
+
+ $my_schema = C4::Connect->new_schema;
+ C4::Connect->set_schema($my_schema);
+ ...
+ C4::Connect->restore_schema;
+
+C<&set_schema> and C<&restore_schema> work in a manner analogous to
+C<&set_context> and C<&restore_context>.
+
+C<&set_schema> saves the current database handle on a stack, then sets
+the current database handle to C<$my_schema>.
+
+C<$my_schema> is assumed to be a good database handle.
+
+=cut
+
+sub set_schema {
+ my $self = shift;
+ my $new_schema = shift;
+
+ # Save the current database handle on the handle stack.
+ # We assume that $new_schema is all good: if the caller wants to
+ # screw himself by passing an invalid handle, that's fine by
+ # us.
+ push @{$context->{"schema_stack"}}, $context->{"schema"};
+ $context->{"schema"} = $new_schema;
+}
+
+=head2 restore_schema
+
+ C4::Context->restore_schema;
+
+Restores the database handle saved by an earlier call to
+C<C4::Context-E<gt>set_schema>.
+
+=cut
+
+sub restore_schema {
+ my $self = shift;
+
+ if ($#{$context->{"schema_stack"}} < 0) {
+ # Stack underflow
+ die "SCHEMA stack underflow";
+ }
+
+ # Pop the old database handle and set it.
+ $context->{"schema"} = pop @{$context->{"schema_stack"}};
+
+ # FIXME - If it is determined that restore_context should
+ # return something, then this function should, too.
+}
+
=head2 marcfromkohafield
$dbh = C4::Context->marcfromkohafield;
'required' => '1',
'min_ver' => '1.53'
},
+ 'DBIx::Class::Schema::Loader' => {
+ 'usage' => 'Core',
+ 'required' => '1',
+ 'min_ver' => '0.07000'
+ },
'Net::Z3950::ZOOM' => {
'usage' => 'Core',
'required' => '1',
--- /dev/null
+package Koha::Schema;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Schema';
+
+__PACKAGE__->load_namespaces;
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HQBaQAYvjvZj3xPakhjuPw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Accountline;
+
+# 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::Accountline
+
+=cut
+
+__PACKAGE__->table("accountlines");
+
+=head1 ACCESSORS
+
+=head2 accountlines_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 accountno
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 date
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 amount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 dispute
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 accounttype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 5
+
+=head2 amountoutstanding
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 lastincrement
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 notify_id
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 notify_level
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 note
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 manager_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "accountlines_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "accountno",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "date",
+ { data_type => "date", is_nullable => 1 },
+ "amount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "dispute",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "accounttype",
+ { data_type => "varchar", is_nullable => 1, size => 5 },
+ "amountoutstanding",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "lastincrement",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "notify_id",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "notify_level",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "note",
+ { data_type => "text", is_nullable => 1 },
+ "manager_id",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("accountlines_id");
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 itemnumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "itemnumber",
+ "Koha::Schema::Result::Item",
+ { itemnumber => "itemnumber" },
+ { 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:+AbxKjLUR7hQsP2dpsyAPw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Accountoffset;
+
+# 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::Accountoffset
+
+=cut
+
+__PACKAGE__->table("accountoffsets");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 accountno
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 offsetaccount
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 offsetamount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "accountno",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "offsetaccount",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "offsetamount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+
+=head1 RELATIONS
+
+=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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EgbEZx495kZ40/HqRcPXfA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ActionLogs;
+
+# 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::ActionLogs
+
+=cut
+
+__PACKAGE__->table("action_logs");
+
+=head1 ACCESSORS
+
+=head2 action_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 user
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 module
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 action
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 object
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 info
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "action_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "user",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "module",
+ { data_type => "text", is_nullable => 1 },
+ "action",
+ { data_type => "text", is_nullable => 1 },
+ "object",
+ { data_type => "integer", is_nullable => 1 },
+ "info",
+ { data_type => "text", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("action_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9VN0SGNBYM/thO7QzQB4Bg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Alert;
+
+# 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::Alert
+
+=cut
+
+__PACKAGE__->table("alert");
+
+=head1 ACCESSORS
+
+=head2 alertid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 type
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 externalid
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "alertid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "type",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "externalid",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
+);
+__PACKAGE__->set_primary_key("alertid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MH/2E3A0Zh8EpLye/qojPw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbasket;
+
+# 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::Aqbasket
+
+=cut
+
+__PACKAGE__->table("aqbasket");
+
+=head1 ACCESSORS
+
+=head2 basketno
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 basketname
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 50
+
+=head2 note
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 booksellernote
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 contractnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 creationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 closedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 booksellerid
+
+ data_type: 'integer'
+ default_value: 1
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 authorisedby
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 booksellerinvoicenumber
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 basketgroupid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "basketno",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "basketname",
+ { data_type => "varchar", is_nullable => 1, size => 50 },
+ "note",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "booksellernote",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "contractnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "creationdate",
+ { data_type => "date", is_nullable => 1 },
+ "closedate",
+ { data_type => "date", is_nullable => 1 },
+ "booksellerid",
+ {
+ data_type => "integer",
+ default_value => 1,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "authorisedby",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "booksellerinvoicenumber",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "basketgroupid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("basketno");
+
+=head1 RELATIONS
+
+=head2 booksellerid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "booksellerid",
+ "Koha::Schema::Result::Aqbookseller",
+ { id => "booksellerid" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 contractnumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqcontract>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "contractnumber",
+ "Koha::Schema::Result::Aqcontract",
+ { contractnumber => "contractnumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 basketgroupid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbasketgroup>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "basketgroupid",
+ "Koha::Schema::Result::Aqbasketgroup",
+ { id => "basketgroupid" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.basketno" => "self.basketno" },
+ { 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:eRG3p93qKZhp3rNPwG60Ig
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbasketgroup;
+
+# 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::Aqbasketgroup
+
+=cut
+
+__PACKAGE__->table("aqbasketgroups");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 50
+
+=head2 closed
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 booksellerid
+
+ data_type: 'integer'
+ 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: 10
+
+=head2 freedeliveryplace
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 deliverycomment
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "name",
+ { data_type => "varchar", is_nullable => 1, size => 50 },
+ "closed",
+ { 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 },
+);
+__PACKAGE__->set_primary_key("id");
+
+=head1 RELATIONS
+
+=head2 aqbaskets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbasket>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbaskets",
+ "Koha::Schema::Result::Aqbasket",
+ { "foreign.basketgroupid" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 booksellerid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "booksellerid",
+ "Koha::Schema::Result::Aqbookseller",
+ { id => "booksellerid" },
+ { 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:sxuJyGpPeqNxjNAnAAe69A
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbookseller;
+
+# 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::Aqbookseller
+
+=cut
+
+__PACKAGE__->table("aqbooksellers");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 name
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 address1
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 address2
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 address3
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 address4
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 phone
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 accountnumber
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 othersupplier
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 currency
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 booksellerfax
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 bookselleremail
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 booksellerurl
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 contact
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 postal
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 url
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 contpos
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 contphone
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 contfax
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 contaltphone
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 contemail
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 contnotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 active
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 listprice
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 invoiceprice
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 gstreg
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 listincgst
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 invoiceincgst
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 gstrate
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [6,4]
+
+=head2 discount
+
+ data_type: 'float'
+ is_nullable: 1
+ size: [6,4]
+
+=head2 fax
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 50
+
+=head2 deliverytime
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "name",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "address1",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "address2",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "address3",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "address4",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "phone",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "accountnumber",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "othersupplier",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "currency",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "booksellerfax",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "bookselleremail",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "booksellerurl",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "contact",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "postal",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "url",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "contpos",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "contphone",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "contfax",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "contaltphone",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "contemail",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "contnotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "active",
+ { data_type => "tinyint", is_nullable => 1 },
+ "listprice",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "invoiceprice",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "gstreg",
+ { data_type => "tinyint", is_nullable => 1 },
+ "listincgst",
+ { data_type => "tinyint", is_nullable => 1 },
+ "invoiceincgst",
+ { data_type => "tinyint", is_nullable => 1 },
+ "gstrate",
+ { data_type => "decimal", is_nullable => 1, size => [6, 4] },
+ "discount",
+ { data_type => "float", is_nullable => 1, size => [6, 4] },
+ "fax",
+ { data_type => "varchar", is_nullable => 1, size => 50 },
+ "deliverytime",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("id");
+
+=head1 RELATIONS
+
+=head2 aqbaskets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbasket>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbaskets",
+ "Koha::Schema::Result::Aqbasket",
+ { "foreign.booksellerid" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqbasketgroups
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbasketgroup>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbasketgroups",
+ "Koha::Schema::Result::Aqbasketgroup",
+ { "foreign.booksellerid" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 listprice
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Currency>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "listprice",
+ "Koha::Schema::Result::Currency",
+ { currency => "listprice" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 invoiceprice
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Currency>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "invoiceprice",
+ "Koha::Schema::Result::Currency",
+ { currency => "invoiceprice" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 aqcontracts
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqcontract>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqcontracts",
+ "Koha::Schema::Result::Aqcontract",
+ { "foreign.booksellerid" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqinvoices
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqinvoice>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqinvoices",
+ "Koha::Schema::Result::Aqinvoice",
+ { "foreign.booksellerid" => "self.id" },
+ { 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:Rie+pN0FWfYl8iqGV+svZQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbudget;
+
+# 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::Aqbudget
+
+=cut
+
+__PACKAGE__->table("aqbudgets");
+
+=head1 ACCESSORS
+
+=head2 budget_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 budget_parent_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 budget_code
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 budget_name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 budget_branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 budget_amount
+
+ data_type: 'decimal'
+ default_value: 0.000000
+ is_nullable: 1
+ size: [28,6]
+
+=head2 budget_encumb
+
+ data_type: 'decimal'
+ default_value: 0.000000
+ is_nullable: 1
+ size: [28,6]
+
+=head2 budget_expend
+
+ data_type: 'decimal'
+ default_value: 0.000000
+ is_nullable: 1
+ size: [28,6]
+
+=head2 budget_notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 budget_period_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 sort1_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 sort2_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 budget_owner_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 budget_permission
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "budget_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "budget_parent_id",
+ { data_type => "integer", is_nullable => 1 },
+ "budget_code",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "budget_name",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "budget_branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "budget_amount",
+ {
+ data_type => "decimal",
+ default_value => "0.000000",
+ is_nullable => 1,
+ size => [28, 6],
+ },
+ "budget_encumb",
+ {
+ data_type => "decimal",
+ default_value => "0.000000",
+ is_nullable => 1,
+ size => [28, 6],
+ },
+ "budget_expend",
+ {
+ data_type => "decimal",
+ default_value => "0.000000",
+ is_nullable => 1,
+ size => [28, 6],
+ },
+ "budget_notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "budget_period_id",
+ { data_type => "integer", is_nullable => 1 },
+ "sort1_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "sort2_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "budget_owner_id",
+ { data_type => "integer", is_nullable => 1 },
+ "budget_permission",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("budget_id");
+
+=head1 RELATIONS
+
+=head2 aqbudgetborrowers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbudgetborrower>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbudgetborrowers",
+ "Koha::Schema::Result::Aqbudgetborrower",
+ { "foreign.budget_id" => "self.budget_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqbudgets_plannings
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AqbudgetsPlanning>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbudgets_plannings",
+ "Koha::Schema::Result::AqbudgetsPlanning",
+ { "foreign.budget_id" => "self.budget_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqinvoices
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqinvoice>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqinvoices",
+ "Koha::Schema::Result::Aqinvoice",
+ { "foreign.shipmentcost_budgetid" => "self.budget_id" },
+ { 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:qMHMlKGUX5xPXM2fmjnBgQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbudgetborrower;
+
+# 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::Aqbudgetborrower
+
+=cut
+
+__PACKAGE__->table("aqbudgetborrowers");
+
+=head1 ACCESSORS
+
+=head2 budget_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(
+ "budget_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("budget_id", "borrowernumber");
+
+=head1 RELATIONS
+
+=head2 budget
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbudget>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "budget",
+ "Koha::Schema::Result::Aqbudget",
+ { budget_id => "budget_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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyTHiYgSk9l/r976XwuYog
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqbudgetperiod;
+
+# 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::Aqbudgetperiod
+
+=cut
+
+__PACKAGE__->table("aqbudgetperiods");
+
+=head1 ACCESSORS
+
+=head2 budget_period_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 budget_period_startdate
+
+ data_type: 'date'
+ is_nullable: 0
+
+=head2 budget_period_enddate
+
+ data_type: 'date'
+ is_nullable: 0
+
+=head2 budget_period_active
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 budget_period_description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 budget_period_total
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 budget_period_locked
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 sort1_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 sort2_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "budget_period_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "budget_period_startdate",
+ { data_type => "date", is_nullable => 0 },
+ "budget_period_enddate",
+ { data_type => "date", is_nullable => 0 },
+ "budget_period_active",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "budget_period_description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "budget_period_total",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "budget_period_locked",
+ { data_type => "tinyint", is_nullable => 1 },
+ "sort1_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "sort2_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+);
+__PACKAGE__->set_primary_key("budget_period_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MKnUsWU+v4zWADuLVahIuQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AqbudgetsPlanning;
+
+# 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::AqbudgetsPlanning
+
+=cut
+
+__PACKAGE__->table("aqbudgets_planning");
+
+=head1 ACCESSORS
+
+=head2 plan_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 budget_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 budget_period_id
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 estimated_amount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 authcat
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 30
+
+=head2 authvalue
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 30
+
+=head2 display
+
+ data_type: 'tinyint'
+ default_value: 1
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "plan_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "budget_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "budget_period_id",
+ { data_type => "integer", is_nullable => 0 },
+ "estimated_amount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "authcat",
+ { data_type => "varchar", is_nullable => 0, size => 30 },
+ "authvalue",
+ { data_type => "varchar", is_nullable => 0, size => 30 },
+ "display",
+ { data_type => "tinyint", default_value => 1, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("plan_id");
+
+=head1 RELATIONS
+
+=head2 budget
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbudget>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "budget",
+ "Koha::Schema::Result::Aqbudget",
+ { budget_id => "budget_id" },
+ { 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:0yahPlMJfcJkYkG94ANfQA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqcontract;
+
+# 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::Aqcontract
+
+=cut
+
+__PACKAGE__->table("aqcontract");
+
+=head1 ACCESSORS
+
+=head2 contractnumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 contractstartdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 contractenddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 contractname
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 50
+
+=head2 contractdescription
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 booksellerid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "contractnumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "contractstartdate",
+ { data_type => "date", is_nullable => 1 },
+ "contractenddate",
+ { data_type => "date", is_nullable => 1 },
+ "contractname",
+ { data_type => "varchar", is_nullable => 1, size => 50 },
+ "contractdescription",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "booksellerid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("contractnumber");
+
+=head1 RELATIONS
+
+=head2 aqbaskets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbasket>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbaskets",
+ "Koha::Schema::Result::Aqbasket",
+ { "foreign.contractnumber" => "self.contractnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 booksellerid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "booksellerid",
+ "Koha::Schema::Result::Aqbookseller",
+ { id => "booksellerid" },
+ { 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:ycOR9kVN0T7MmqtyS5ymww
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqinvoice;
+
+# 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::Aqinvoice
+
+=cut
+
+__PACKAGE__->table("aqinvoices");
+
+=head1 ACCESSORS
+
+=head2 invoiceid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 invoicenumber
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 booksellerid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 shipmentdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 billingdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 closedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 shipmentcost
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 shipmentcost_budgetid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "invoiceid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "invoicenumber",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "booksellerid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "shipmentdate",
+ { data_type => "date", is_nullable => 1 },
+ "billingdate",
+ { data_type => "date", is_nullable => 1 },
+ "closedate",
+ { data_type => "date", is_nullable => 1 },
+ "shipmentcost",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "shipmentcost_budgetid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("invoiceid");
+
+=head1 RELATIONS
+
+=head2 booksellerid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "booksellerid",
+ "Koha::Schema::Result::Aqbookseller",
+ { id => "booksellerid" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 shipmentcost_budgetid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbudget>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "shipmentcost_budgetid",
+ "Koha::Schema::Result::Aqbudget",
+ { budget_id => "shipmentcost_budgetid" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.invoiceid" => "self.invoiceid" },
+ { 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:O5JnKjtyloB4VdJzZMpQng
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqorder;
+
+# 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::Aqorder
+
+=cut
+
+__PACKAGE__->table("aqorders");
+
+=head1 ACCESSORS
+
+=head2 ordernumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 entrydate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 quantity
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 currency
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 3
+
+=head2 listprice
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 totalamount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 datereceived
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 invoiceid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 freight
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 unitprice
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 quantityreceived
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 cancelledby
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 datecancellationprinted
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 supplierreference
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 purchaseordernumber
+
+ 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_foreign_key: 1
+ is_nullable: 1
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 rrp
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [13,2]
+
+=head2 ecost
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [13,2]
+
+=head2 gst
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [13,2]
+
+=head2 budget_id
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 budgetgroup_id
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 budgetdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 sort1
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 sort2
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 sort1_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 sort2_authcat
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 uncertainprice
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 claims_count
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 claimed_date
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 parent_ordernumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "ordernumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "entrydate",
+ { data_type => "date", is_nullable => 1 },
+ "quantity",
+ { data_type => "smallint", is_nullable => 1 },
+ "currency",
+ { data_type => "varchar", is_nullable => 1, size => 3 },
+ "listprice",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "totalamount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "datereceived",
+ { data_type => "date", is_nullable => 1 },
+ "invoiceid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "freight",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "unitprice",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "quantityreceived",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "cancelledby",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "datecancellationprinted",
+ { data_type => "date", is_nullable => 1 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "supplierreference",
+ { 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 => "integer", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "rrp",
+ { 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] },
+ "budget_id",
+ { data_type => "integer", is_nullable => 0 },
+ "budgetgroup_id",
+ { data_type => "integer", is_nullable => 0 },
+ "budgetdate",
+ { data_type => "date", is_nullable => 1 },
+ "sort1",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "sort2",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "sort1_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "sort2_authcat",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "uncertainprice",
+ { data_type => "tinyint", is_nullable => 1 },
+ "claims_count",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "claimed_date",
+ { data_type => "date", is_nullable => 1 },
+ "parent_ordernumber",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("ordernumber");
+
+=head1 RELATIONS
+
+=head2 basketno
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqbasket>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "basketno",
+ "Koha::Schema::Result::Aqbasket",
+ { basketno => "basketno" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 invoiceid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Aqinvoice>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "invoiceid",
+ "Koha::Schema::Result::Aqinvoice",
+ { invoiceid => "invoiceid" },
+ { 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:McWqeFHBMTDvKV7pUEqJ3w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Aqorderdelivery;
+
+# 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::Aqorderdelivery
+
+=cut
+
+__PACKAGE__->table("aqorderdelivery");
+
+=head1 ACCESSORS
+
+=head2 ordernumber
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 deliverynumber
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 deliverydate
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 18
+
+=head2 qtydelivered
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 deliverycomments
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "ordernumber",
+ { data_type => "date", is_nullable => 1 },
+ "deliverynumber",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "deliverydate",
+ { data_type => "varchar", is_nullable => 1, size => 18 },
+ "qtydelivered",
+ { data_type => "smallint", is_nullable => 1 },
+ "deliverycomments",
+ { data_type => "mediumtext", is_nullable => 1 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LOGL7qHtUGwgWbKJ1HguXA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AqordersItem;
+
+# 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::AqordersItem
+
+=cut
+
+__PACKAGE__->table("aqorders_items");
+
+=head1 ACCESSORS
+
+=head2 ordernumber
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "ordernumber",
+ { data_type => "integer", is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", is_nullable => 0 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__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:OlihytSmp6fCmG/hAT7FEg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AuthHeader;
+
+# 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::AuthHeader
+
+=cut
+
+__PACKAGE__->table("auth_header");
+
+=head1 ACCESSORS
+
+=head2 authid
+
+ data_type: 'bigint'
+ extra: {unsigned => 1}
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 authtypecode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 datecreated
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 datemodified
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 origincode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 authtrees
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 marc
+
+ data_type: 'blob'
+ is_nullable: 1
+
+=head2 linkid
+
+ data_type: 'bigint'
+ is_nullable: 1
+
+=head2 marcxml
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "authid",
+ {
+ data_type => "bigint",
+ extra => { unsigned => 1 },
+ is_auto_increment => 1,
+ is_nullable => 0,
+ },
+ "authtypecode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "datecreated",
+ { data_type => "date", is_nullable => 1 },
+ "datemodified",
+ { data_type => "date", is_nullable => 1 },
+ "origincode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "authtrees",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "marc",
+ { data_type => "blob", is_nullable => 1 },
+ "linkid",
+ { data_type => "bigint", is_nullable => 1 },
+ "marcxml",
+ { data_type => "longtext", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("authid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NVcyurExTIYMqdmRcU0hSA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AuthSubfieldStructure;
+
+# 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::AuthSubfieldStructure
+
+=cut
+
+__PACKAGE__->table("auth_subfield_structure");
+
+=head1 ACCESSORS
+
+=head2 authtypecode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 tagfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 tagsubfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 1
+
+=head2 liblibrarian
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 libopac
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 repeatable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 mandatory
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 tab
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 authorised_value
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 value_builder
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 seealso
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 isurl
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 hidden
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 linkid
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 kohafield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 1
+ size: 45
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "authtypecode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "tagfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "tagsubfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
+ "liblibrarian",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "libopac",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "repeatable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "mandatory",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "tab",
+ { data_type => "tinyint", is_nullable => 1 },
+ "authorised_value",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "value_builder",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "seealso",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "isurl",
+ { data_type => "tinyint", is_nullable => 1 },
+ "hidden",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "linkid",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "kohafield",
+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+);
+__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Au8FV34qkqLZqlpt3mXPA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AuthTagStructure;
+
+# 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::AuthTagStructure
+
+=cut
+
+__PACKAGE__->table("auth_tag_structure");
+
+=head1 ACCESSORS
+
+=head2 authtypecode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 tagfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 liblibrarian
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 libopac
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 repeatable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 mandatory
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 authorised_value
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "authtypecode",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "tagfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "liblibrarian",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "libopac",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "repeatable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "mandatory",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "authorised_value",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+);
+__PACKAGE__->set_primary_key("authtypecode", "tagfield");
+
+=head1 RELATIONS
+
+=head2 authtypecode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::AuthType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "authtypecode",
+ "Koha::Schema::Result::AuthType",
+ { authtypecode => "authtypecode" },
+ { 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:EIrlKC3v6sYrPt9F21xeag
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AuthType;
+
+# 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::AuthType
+
+=cut
+
+__PACKAGE__->table("auth_types");
+
+=head1 ACCESSORS
+
+=head2 authtypecode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 authtypetext
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 auth_tag_to_report
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 summary
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "authtypecode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "authtypetext",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "auth_tag_to_report",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "summary",
+ { data_type => "mediumtext", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("authtypecode");
+
+=head1 RELATIONS
+
+=head2 auth_tag_structures
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AuthTagStructure>
+
+=cut
+
+__PACKAGE__->has_many(
+ "auth_tag_structures",
+ "Koha::Schema::Result::AuthTagStructure",
+ { "foreign.authtypecode" => "self.authtypecode" },
+ { 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:n40JCBQ6mHTaHDRGG8mk2w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::AuthorisedValue;
+
+# 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::AuthorisedValue
+
+=cut
+
+__PACKAGE__->table("authorised_values");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 category
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 16
+
+=head2 authorised_value
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 80
+
+=head2 lib
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 200
+
+=head2 lib_opac
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 200
+
+=head2 imageurl
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 200
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "category",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 },
+ "authorised_value",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
+ "lib",
+ { data_type => "varchar", is_nullable => 1, size => 200 },
+ "lib_opac",
+ { data_type => "varchar", is_nullable => 1, size => 200 },
+ "imageurl",
+ { data_type => "varchar", is_nullable => 1, size => 200 },
+);
+__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:GpXi5gcFBtEj82hEFzhmVg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Biblio;
+
+# 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::Biblio
+
+=cut
+
+__PACKAGE__->table("biblio");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=head2 author
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 title
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 unititle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 serial
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 seriestitle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 copyrightdate
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 datecreated
+
+ data_type: 'date'
+ is_nullable: 0
+
+=head2 abstract
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
+ "author",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "title",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "unititle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "serial",
+ { data_type => "tinyint", is_nullable => 1 },
+ "seriestitle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "copyrightdate",
+ { data_type => "smallint", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "datecreated",
+ { data_type => "date", is_nullable => 0 },
+ "abstract",
+ { data_type => "mediumtext", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("biblionumber");
+
+=head1 RELATIONS
+
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 biblioimages
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Biblioimage>
+
+=cut
+
+__PACKAGE__->has_many(
+ "biblioimages",
+ "Koha::Schema::Result::Biblioimage",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 biblioitems
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Biblioitem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "biblioitems",
+ "Koha::Schema::Result::Biblioitem",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 hold_fill_targets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::HoldFillTarget>
+
+=cut
+
+__PACKAGE__->has_many(
+ "hold_fill_targets",
+ "Koha::Schema::Result::HoldFillTarget",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 oai_sets_biblios
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OaiSetsBiblio>
+
+=cut
+
+__PACKAGE__->has_many(
+ "oai_sets_biblios",
+ "Koha::Schema::Result::OaiSetsBiblio",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 old_reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OldReserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "old_reserves",
+ "Koha::Schema::Result::OldReserve",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 ratings
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Rating>
+
+=cut
+
+__PACKAGE__->has_many(
+ "ratings",
+ "Koha::Schema::Result::Rating",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Reserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reserves",
+ "Koha::Schema::Result::Reserve",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reviews
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Review>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reviews",
+ "Koha::Schema::Result::Review",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 tags_all
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TagAll>
+
+=cut
+
+__PACKAGE__->has_many(
+ "tags_all",
+ "Koha::Schema::Result::TagAll",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 tags_indexes
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TagsIndex>
+
+=cut
+
+__PACKAGE__->has_many(
+ "tags_indexes",
+ "Koha::Schema::Result::TagsIndex",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 virtualshelfcontents
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelfcontent>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelfcontents",
+ "Koha::Schema::Result::Virtualshelfcontent",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { 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:NwOZPwmnB/44XMp45TzWVg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BiblioFramework;
+
+# 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::BiblioFramework
+
+=cut
+
+__PACKAGE__->table("biblio_framework");
+
+=head1 ACCESSORS
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=head2 frameworktext
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
+ "frameworktext",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+);
+__PACKAGE__->set_primary_key("frameworkcode");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tEQykJXvhOfUAxNs4DnBaQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Biblioimage;
+
+# 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::Biblioimage
+
+=cut
+
+__PACKAGE__->table("biblioimages");
+
+=head1 ACCESSORS
+
+=head2 imagenumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 mimetype
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 15
+
+=head2 imagefile
+
+ data_type: 'mediumblob'
+ is_nullable: 0
+
+=head2 thumbnail
+
+ data_type: 'mediumblob'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "imagenumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "mimetype",
+ { data_type => "varchar", is_nullable => 0, size => 15 },
+ "imagefile",
+ { data_type => "mediumblob", is_nullable => 0 },
+ "thumbnail",
+ { data_type => "mediumblob", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("imagenumber");
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "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:9P2Yp+Ye/tJ3+aG7mQR8sQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Biblioitem;
+
+# 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::Biblioitem
+
+=cut
+
+__PACKAGE__->table("biblioitems");
+
+=head1 ACCESSORS
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 volume
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 number
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 isbn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 issn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 9
+
+=head2 ean
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 13
+
+=head2 publicationyear
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 publishercode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 volumedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 volumedesc
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 collectiontitle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 collectionissn
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 collectionvolume
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 editionstatement
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 editionresponsibility
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 illus
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 pages
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 size
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 place
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 lccn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 marc
+
+ data_type: 'longblob'
+ is_nullable: 1
+
+=head2 url
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 cn_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_class
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 cn_item
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_suffix
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_sort
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 agerestriction
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 totalissues
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 marcxml
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblioitemnumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "volume",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "number",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "itemtype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "isbn",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "issn",
+ { data_type => "varchar", is_nullable => 1, size => 9 },
+ "ean",
+ { data_type => "varchar", is_nullable => 1, size => 13 },
+ "publicationyear",
+ { data_type => "text", is_nullable => 1 },
+ "publishercode",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "volumedate",
+ { data_type => "date", is_nullable => 1 },
+ "volumedesc",
+ { data_type => "text", is_nullable => 1 },
+ "collectiontitle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "collectionissn",
+ { data_type => "text", is_nullable => 1 },
+ "collectionvolume",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "editionstatement",
+ { data_type => "text", is_nullable => 1 },
+ "editionresponsibility",
+ { data_type => "text", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "illus",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "pages",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "size",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "place",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "lccn",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "marc",
+ { data_type => "longblob", is_nullable => 1 },
+ "url",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "cn_source",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_class",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "cn_item",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_suffix",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_sort",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "agerestriction",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "totalissues",
+ { data_type => "integer", is_nullable => 1 },
+ "marcxml",
+ { data_type => "longtext", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("biblioitemnumber");
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 items
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->has_many(
+ "items",
+ "Koha::Schema::Result::Item",
+ { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
+ { 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:j5xMUqTsOxa/ieu7yPnOaA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Borrower;
+
+# 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::Borrower
+
+=cut
+
+__PACKAGE__->table("borrowers");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 cardnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=head2 surname
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=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: 0
+
+=head2 address2
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 city
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 state
+
+ data_type: 'mediumtext'
+ 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: 'mediumtext'
+ 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'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ 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: 'mediumtext'
+ 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'
+ default_value: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "cardnumber",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+ "surname",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "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 => 0 },
+ "address2",
+ { data_type => "text", is_nullable => 1 },
+ "city",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "state",
+ { data_type => "mediumtext", 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 => "mediumtext", 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",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "categorycode",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ 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 => "mediumtext", 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", default_value => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("borrowernumber");
+__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
+
+=head1 RELATIONS
+
+=head2 accountlines
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Accountline>
+
+=cut
+
+__PACKAGE__->has_many(
+ "accountlines",
+ "Koha::Schema::Result::Accountline",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 accountoffsets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Accountoffset>
+
+=cut
+
+__PACKAGE__->has_many(
+ "accountoffsets",
+ "Koha::Schema::Result::Accountoffset",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqbudgetborrowers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbudgetborrower>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbudgetborrowers",
+ "Koha::Schema::Result::Aqbudgetborrower",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrower_attributes
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerAttribute>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_attributes",
+ "Koha::Schema::Result::BorrowerAttribute",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrower_files
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerFile>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_files",
+ "Koha::Schema::Result::BorrowerFile",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrower_message_preferences
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_message_preferences",
+ "Koha::Schema::Result::BorrowerMessagePreference",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 categorycode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Category>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "categorycode",
+ "Koha::Schema::Result::Category",
+ { categorycode => "categorycode" },
+ { 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" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 creator_batches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CreatorBatch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "creator_batches",
+ "Koha::Schema::Result::CreatorBatch",
+ { "foreign.borrower_number" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 hold_fill_targets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::HoldFillTarget>
+
+=cut
+
+__PACKAGE__->has_many(
+ "hold_fill_targets",
+ "Koha::Schema::Result::HoldFillTarget",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 issues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Issue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "issues",
+ "Koha::Schema::Result::Issue",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_queues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MessageQueue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "message_queues",
+ "Koha::Schema::Result::MessageQueue",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 old_issues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OldIssue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "old_issues",
+ "Koha::Schema::Result::OldIssue",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 old_reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OldReserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "old_reserves",
+ "Koha::Schema::Result::OldReserve",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 patroncards
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Patroncard>
+
+=cut
+
+__PACKAGE__->has_many(
+ "patroncards",
+ "Koha::Schema::Result::Patroncard",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 patronimage
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::Patronimage>
+
+=cut
+
+__PACKAGE__->might_have(
+ "patronimage",
+ "Koha::Schema::Result::Patronimage",
+ { "foreign.cardnumber" => "self.cardnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 ratings
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Rating>
+
+=cut
+
+__PACKAGE__->has_many(
+ "ratings",
+ "Koha::Schema::Result::Rating",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Reserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reserves",
+ "Koha::Schema::Result::Reserve",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reviews
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Review>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reviews",
+ "Koha::Schema::Result::Review",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 subscriptionroutinglists
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
+
+=cut
+
+__PACKAGE__->has_many(
+ "subscriptionroutinglists",
+ "Koha::Schema::Result::Subscriptionroutinglist",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 tags_all
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TagAll>
+
+=cut
+
+__PACKAGE__->has_many(
+ "tags_all",
+ "Koha::Schema::Result::TagAll",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 tags_approvals
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TagsApproval>
+
+=cut
+
+__PACKAGE__->has_many(
+ "tags_approvals",
+ "Koha::Schema::Result::TagsApproval",
+ { "foreign.approved_by" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 user_permissions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::UserPermission>
+
+=cut
+
+__PACKAGE__->has_many(
+ "user_permissions",
+ "Koha::Schema::Result::UserPermission",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 virtualshelfcontents
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelfcontent>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelfcontents",
+ "Koha::Schema::Result::Virtualshelfcontent",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 virtualshelfshares
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelfshare>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelfshares",
+ "Koha::Schema::Result::Virtualshelfshare",
+ { "foreign.borrowernumber" => "self.borrowernumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 virtualshelves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelves",
+ "Koha::Schema::Result::Virtualshelve",
+ { "foreign.owner" => "self.borrowernumber" },
+ { 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:a5PYhuHX3DHlNJqdmIuqTw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BorrowerAttribute;
+
+# 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::BorrowerAttribute
+
+=cut
+
+__PACKAGE__->table("borrower_attributes");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 code
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 attribute
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 password
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 64
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "code",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "attribute",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "password",
+ { data_type => "varchar", is_nullable => 1, size => 64 },
+);
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 code
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::BorrowerAttributeType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "code",
+ "Koha::Schema::Result::BorrowerAttributeType",
+ { code => "code" },
+ { 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:LWaFw4Fk0Bj+K6JgDpicmA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BorrowerAttributeType;
+
+# 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::BorrowerAttributeType
+
+=cut
+
+__PACKAGE__->table("borrower_attribute_types");
+
+=head1 ACCESSORS
+
+=head2 code
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 repeatable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 unique_id
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 opac_display
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 password_allowed
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 staff_searchable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 authorised_value_category
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 display_checkout
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 category_code
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 class
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "code",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "repeatable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "unique_id",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "opac_display",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "password_allowed",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "staff_searchable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "authorised_value_category",
+ { data_type => "varchar", 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 },
+ "class",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+);
+__PACKAGE__->set_primary_key("code");
+
+=head1 RELATIONS
+
+=head2 category_code
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Category>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "category_code",
+ "Koha::Schema::Result::Category",
+ { categorycode => "category_code" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 borrower_attributes
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerAttribute>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_attributes",
+ "Koha::Schema::Result::BorrowerAttribute",
+ { "foreign.code" => "self.code" },
+ { 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:EpdavGdH3uR/eaNLJIoHCg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BorrowerFile;
+
+# 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::BorrowerFile
+
+=cut
+
+__PACKAGE__->table("borrower_files");
+
+=head1 ACCESSORS
+
+=head2 file_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 file_name
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 file_type
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 file_description
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 file_content
+
+ data_type: 'longblob'
+ is_nullable: 0
+
+=head2 date_uploaded
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "file_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "file_name",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "file_type",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "file_description",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "file_content",
+ { data_type => "longblob", is_nullable => 0 },
+ "date_uploaded",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__PACKAGE__->set_primary_key("file_id");
+
+=head1 RELATIONS
+
+=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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5nM5pPcZmdSjcoBGIlTp9A
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BorrowerMessagePreference;
+
+# 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::BorrowerMessagePreference
+
+=cut
+
+__PACKAGE__->table("borrower_message_preferences");
+
+=head1 ACCESSORS
+
+=head2 borrower_message_preference_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 message_attribute_id
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 days_in_advance
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 wants_digest
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrower_message_preference_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "categorycode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "message_attribute_id",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 1,
+ },
+ "days_in_advance",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "wants_digest",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("borrower_message_preference_id");
+
+=head1 RELATIONS
+
+=head2 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 message_attribute
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MessageAttribute>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "message_attribute",
+ "Koha::Schema::Result::MessageAttribute",
+ { message_attribute_id => "message_attribute_id" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=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 borrower_message_transport_preferences
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_message_transport_preferences",
+ "Koha::Schema::Result::BorrowerMessageTransportPreference",
+ {
+ "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
+ },
+ { 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:dP6LspN4dP65EGfApx6xIw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BorrowerMessageTransportPreference;
+
+# 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::BorrowerMessageTransportPreference
+
+=cut
+
+__PACKAGE__->table("borrower_message_transport_preferences");
+
+=head1 ACCESSORS
+
+=head2 borrower_message_preference_id
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 message_transport_type
+
+ data_type: 'varchar'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrower_message_preference_id",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "message_transport_type",
+ {
+ data_type => "varchar",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 20,
+ },
+);
+__PACKAGE__->set_primary_key("borrower_message_preference_id", "message_transport_type");
+
+=head1 RELATIONS
+
+=head2 borrower_message_preference
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrower_message_preference",
+ "Koha::Schema::Result::BorrowerMessagePreference",
+ {
+ borrower_message_preference_id => "borrower_message_preference_id",
+ },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 message_transport_type
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MessageTransportType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "message_transport_type",
+ "Koha::Schema::Result::MessageTransportType",
+ { message_transport_type => "message_transport_type" },
+ { 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:Pqunp568ul/dBpW5ISwr7Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Branch;
+
+# 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::Branch
+
+=cut
+
+__PACKAGE__->table("branches");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 branchname
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 branchaddress1
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchaddress2
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchaddress3
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchzip
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 branchcity
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchstate
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchcountry
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 branchphone
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchfax
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchemail
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 branchurl
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 issuing
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 branchip
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 15
+
+=head2 branchprinter
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 branchnotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 opac_info
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "branchname",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "branchaddress1",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchaddress2",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchaddress3",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchzip",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "branchcity",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchstate",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchcountry",
+ { data_type => "text", is_nullable => 1 },
+ "branchphone",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchfax",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchemail",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "branchurl",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "issuing",
+ { data_type => "tinyint", is_nullable => 1 },
+ "branchip",
+ { data_type => "varchar", is_nullable => 1, size => 15 },
+ "branchprinter",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "branchnotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "opac_info",
+ { data_type => "text", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("branchcode");
+
+=head1 RELATIONS
+
+=head2 borrowers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrowers",
+ "Koha::Schema::Result::Borrower",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branch_borrower_circ_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branch_borrower_circ_rules",
+ "Koha::Schema::Result::BranchBorrowerCircRule",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branch_item_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BranchItemRule>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branch_item_rules",
+ "Koha::Schema::Result::BranchItemRule",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branchrelations
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Branchrelation>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branchrelations",
+ "Koha::Schema::Result::Branchrelation",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branchtransfers_frombranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Branchtransfer>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branchtransfers_frombranches",
+ "Koha::Schema::Result::Branchtransfer",
+ { "foreign.frombranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branchtransfers_tobranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Branchtransfer>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branchtransfers_tobranches",
+ "Koha::Schema::Result::Branchtransfer",
+ { "foreign.tobranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 creator_batches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CreatorBatch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "creator_batches",
+ "Koha::Schema::Result::CreatorBatch",
+ { "foreign.branch_code" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 default_branch_circ_rule
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
+
+=cut
+
+__PACKAGE__->might_have(
+ "default_branch_circ_rule",
+ "Koha::Schema::Result::DefaultBranchCircRule",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 hold_fill_targets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::HoldFillTarget>
+
+=cut
+
+__PACKAGE__->has_many(
+ "hold_fill_targets",
+ "Koha::Schema::Result::HoldFillTarget",
+ { "foreign.source_branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 items_homebranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->has_many(
+ "items_homebranches",
+ "Koha::Schema::Result::Item",
+ { "foreign.homebranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 items_holdingbranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->has_many(
+ "items_holdingbranches",
+ "Koha::Schema::Result::Item",
+ { "foreign.holdingbranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Reserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reserves",
+ "Koha::Schema::Result::Reserve",
+ { "foreign.branchcode" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 transport_cost_frombranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TransportCost>
+
+=cut
+
+__PACKAGE__->has_many(
+ "transport_cost_frombranches",
+ "Koha::Schema::Result::TransportCost",
+ { "foreign.frombranch" => "self.branchcode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 transport_cost_tobranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TransportCost>
+
+=cut
+
+__PACKAGE__->has_many(
+ "transport_cost_tobranches",
+ "Koha::Schema::Result::TransportCost",
+ { "foreign.tobranch" => "self.branchcode" },
+ { 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:7/fUACQhSXHg0daDi6MGbQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BranchBorrowerCircRule;
+
+# 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::BranchBorrowerCircRule
+
+=cut
+
+__PACKAGE__->table("branch_borrower_circ_rules");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 maxissueqty
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "categorycode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "maxissueqty",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("categorycode", "branchcode");
+
+=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" },
+ { 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" },
+ { 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:Urf4PD4Ob8D3kqgvz7PGtA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BranchItemRule;
+
+# 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::BranchItemRule
+
+=cut
+
+__PACKAGE__->table("branch_item_rules");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 holdallowed
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 returnbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "itemtype",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "holdallowed",
+ { data_type => "tinyint", is_nullable => 1 },
+ "returnbranch",
+ { data_type => "varchar", is_nullable => 1, size => 15 },
+);
+__PACKAGE__->set_primary_key("itemtype", "branchcode");
+
+=head1 RELATIONS
+
+=head2 itemtype
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Itemtype>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "itemtype",
+ "Koha::Schema::Result::Itemtype",
+ { itemtype => "itemtype" },
+ { 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" },
+ { 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:7Pbf8S6Y9k2teX1337IGIA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::BranchTransferLimit;
+
+# 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::BranchTransferLimit
+
+=cut
+
+__PACKAGE__->table("branch_transfer_limits");
+
+=head1 ACCESSORS
+
+=head2 limitid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 tobranch
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 frombranch
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 ccode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "limitid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "tobranch",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "frombranch",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "itemtype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "ccode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+);
+__PACKAGE__->set_primary_key("limitid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5tloMmwsDVXChfqSMEPOoA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Branchcategory;
+
+# 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::Branchcategory
+
+=cut
+
+__PACKAGE__->table("branchcategories");
+
+=head1 ACCESSORS
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 categoryname
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 32
+
+=head2 codedescription
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 categorytype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=cut
+
+__PACKAGE__->add_columns(
+ "categorycode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "categoryname",
+ { data_type => "varchar", is_nullable => 1, size => 32 },
+ "codedescription",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "categorytype",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+);
+__PACKAGE__->set_primary_key("categorycode");
+
+=head1 RELATIONS
+
+=head2 branchrelations
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Branchrelation>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branchrelations",
+ "Koha::Schema::Result::Branchrelation",
+ { "foreign.categorycode" => "self.categorycode" },
+ { 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:i3um3oAfQ9EV/pJHuUiWnA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Branchrelation;
+
+# 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::Branchrelation
+
+=cut
+
+__PACKAGE__->table("branchrelations");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "categorycode",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+);
+__PACKAGE__->set_primary_key("branchcode", "categorycode");
+
+=head1 RELATIONS
+
+=head2 branchcode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "branchcode",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "branchcode" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 categorycode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branchcategory>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "categorycode",
+ "Koha::Schema::Result::Branchcategory",
+ { categorycode => "categorycode" },
+ { 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:VFoJV/KyMCVH7/fD5bSY/w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Branchtransfer;
+
+# 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::Branchtransfer
+
+=cut
+
+__PACKAGE__->table("branchtransfers");
+
+=head1 ACCESSORS
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 datesent
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 frombranch
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 datearrived
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 tobranch
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 comments
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemnumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "datesent",
+ { data_type => "datetime", is_nullable => 1 },
+ "frombranch",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "datearrived",
+ { data_type => "datetime", is_nullable => 1 },
+ "tobranch",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "comments",
+ { data_type => "mediumtext", is_nullable => 1 },
+);
+
+=head1 RELATIONS
+
+=head2 frombranch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "frombranch",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "frombranch" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 tobranch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "tobranch",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "tobranch" },
+ { 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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ojdZ8a0zDyBQi7MaMtCSuQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Browser;
+
+# 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::Browser
+
+=cut
+
+__PACKAGE__->table("browser");
+
+=head1 ACCESSORS
+
+=head2 level
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 classification
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 20
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 number
+
+ data_type: 'bigint'
+ is_nullable: 0
+
+=head2 endnode
+
+ data_type: 'tinyint'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "level",
+ { data_type => "integer", is_nullable => 0 },
+ "classification",
+ { data_type => "varchar", is_nullable => 0, size => 20 },
+ "description",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "number",
+ { data_type => "bigint", is_nullable => 0 },
+ "endnode",
+ { data_type => "tinyint", 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:PdemP//rSRmiSjwhmhigdA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Category;
+
+# 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::Category
+
+=cut
+
+__PACKAGE__->table("categories");
+
+=head1 ACCESSORS
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 enrolmentperiod
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 enrolmentperioddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 upperagelimit
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 dateofbirthrequired
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 finetype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 bulk
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 enrolmentfee
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 overduenoticerequired
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 issuelimit
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 reservefee
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 hidelostitems
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 category_type
+
+ data_type: 'varchar'
+ default_value: 'A'
+ is_nullable: 0
+ size: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "categorycode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "enrolmentperiod",
+ { data_type => "smallint", is_nullable => 1 },
+ "enrolmentperioddate",
+ { data_type => "date", is_nullable => 1 },
+ "upperagelimit",
+ { data_type => "smallint", is_nullable => 1 },
+ "dateofbirthrequired",
+ { data_type => "tinyint", is_nullable => 1 },
+ "finetype",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "bulk",
+ { data_type => "tinyint", is_nullable => 1 },
+ "enrolmentfee",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "overduenoticerequired",
+ { data_type => "tinyint", is_nullable => 1 },
+ "issuelimit",
+ { data_type => "smallint", is_nullable => 1 },
+ "reservefee",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "hidelostitems",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "category_type",
+ { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
+);
+__PACKAGE__->set_primary_key("categorycode");
+
+=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
+
+Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_message_preferences",
+ "Koha::Schema::Result::BorrowerMessagePreference",
+ { "foreign.categorycode" => "self.categorycode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrowers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrowers",
+ "Koha::Schema::Result::Borrower",
+ { "foreign.categorycode" => "self.categorycode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branch_borrower_circ_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branch_borrower_circ_rules",
+ "Koha::Schema::Result::BranchBorrowerCircRule",
+ { "foreign.categorycode" => "self.categorycode" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 default_borrower_circ_rule
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule>
+
+=cut
+
+__PACKAGE__->might_have(
+ "default_borrower_circ_rule",
+ "Koha::Schema::Result::DefaultBorrowerCircRule",
+ { "foreign.categorycode" => "self.categorycode" },
+ { 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:BpTckQJaDAxGwrOS9s3tuQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::City;
+
+# 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::City
+
+=cut
+
+__PACKAGE__->table("cities");
+
+=head1 ACCESSORS
+
+=head2 cityid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 city_name
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 city_state
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 city_zipcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 city_country
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=cut
+
+__PACKAGE__->add_columns(
+ "cityid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "city_name",
+ { 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 },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ClassSortRule;
+
+# 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::ClassSortRule
+
+=cut
+
+__PACKAGE__->table("class_sort_rules");
+
+=head1 ACCESSORS
+
+=head2 class_sort_rule
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 sort_routine
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 30
+
+=cut
+
+__PACKAGE__->add_columns(
+ "class_sort_rule",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "sort_routine",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
+);
+__PACKAGE__->set_primary_key("class_sort_rule");
+
+=head1 RELATIONS
+
+=head2 class_sources
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ClassSource>
+
+=cut
+
+__PACKAGE__->has_many(
+ "class_sources",
+ "Koha::Schema::Result::ClassSource",
+ { "foreign.class_sort_rule" => "self.class_sort_rule" },
+ { 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:3JLMzBsuge+hUAqcXVtgzQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ClassSource;
+
+# 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::ClassSource
+
+=cut
+
+__PACKAGE__->table("class_sources");
+
+=head1 ACCESSORS
+
+=head2 cn_source
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 used
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 class_sort_rule
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "cn_source",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "used",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "class_sort_rule",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+);
+__PACKAGE__->set_primary_key("cn_source");
+
+=head1 RELATIONS
+
+=head2 class_sort_rule
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ClassSortRule>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "class_sort_rule",
+ "Koha::Schema::Result::ClassSortRule",
+ { class_sort_rule => "class_sort_rule" },
+ { 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:fot5u8I5lS5/W0bHPD0Rpw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Closure;
+
+# 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::Closure
+
+=cut
+
+__PACKAGE__->table("closure");
+
+=head1 ACCESSORS
+
+=head2 closureid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 description
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 title
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 event_start
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 event_end
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "closureid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "description",
+ { data_type => "text", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "title",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "event_start",
+ { data_type => "datetime", is_nullable => 1 },
+ "event_end",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("closureid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yA2qWZ8+Om9n0UAev2wl1Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ClosureRrule;
+
+# 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::ClosureRrule
+
+=cut
+
+__PACKAGE__->table("closure_rrule");
+
+=head1 ACCESSORS
+
+=head2 closureid
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 recurrence_start
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 recurrence_end
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 frequency
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 days_interval
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "closureid",
+ { data_type => "integer", is_nullable => 1 },
+ "recurrence_start",
+ { data_type => "datetime", is_nullable => 1 },
+ "recurrence_end",
+ { data_type => "datetime", is_nullable => 1 },
+ "frequency",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "days_interval",
+ { data_type => "integer", is_nullable => 1 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g4CMCw0JgKii7mgfHkqThQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Collection;
+
+# 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::Collection
+
+=cut
+
+__PACKAGE__->table("collections");
+
+=head1 ACCESSORS
+
+=head2 colid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 coltitle
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 coldesc
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 colbranchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 4
+
+=cut
+
+__PACKAGE__->add_columns(
+ "colid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "coltitle",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "coldesc",
+ { data_type => "text", is_nullable => 0 },
+ "colbranchcode",
+ { data_type => "varchar", is_nullable => 1, size => 4 },
+);
+__PACKAGE__->set_primary_key("colid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MCaPTe+sCHOw8R6O+qFRIA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::CollectionTracking;
+
+# 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::CollectionTracking
+
+=cut
+
+__PACKAGE__->table("collections_tracking");
+
+=head1 ACCESSORS
+
+=head2 ctid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 colid
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "ctid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "colid",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("ctid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OV5D03dIIo/pCuRSBPsXsg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::CreatorBatch;
+
+# 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::CreatorBatch
+
+=cut
+
+__PACKAGE__->table("creator_batches");
+
+=head1 ACCESSORS
+
+=head2 label_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 batch_id
+
+ data_type: 'integer'
+ default_value: 1
+ is_nullable: 0
+
+=head2 item_number
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 borrower_number
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 branch_code
+
+ data_type: 'varchar'
+ default_value: 'NB'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 creator
+
+ data_type: 'char'
+ default_value: 'Labels'
+ is_nullable: 0
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "label_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "batch_id",
+ { data_type => "integer", default_value => 1, is_nullable => 0 },
+ "item_number",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "borrower_number",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "branch_code",
+ {
+ data_type => "varchar",
+ default_value => "NB",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+ "creator",
+ {
+ data_type => "char",
+ default_value => "Labels",
+ is_nullable => 0,
+ size => 15,
+ },
+);
+__PACKAGE__->set_primary_key("label_id");
+
+=head1 RELATIONS
+
+=head2 borrower_number
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrower_number",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrower_number" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 branch_code
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "branch_code",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "branch_code" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 item_number
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "item_number",
+ "Koha::Schema::Result::Item",
+ { itemnumber => "item_number" },
+ { 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:Ei9dbdCUspCrRrhIBHQG6w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::CreatorImage;
+
+# 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::CreatorImage
+
+=cut
+
+__PACKAGE__->table("creator_images");
+
+=head1 ACCESSORS
+
+=head2 image_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 imagefile
+
+ data_type: 'mediumblob'
+ is_nullable: 1
+
+=head2 image_name
+
+ data_type: 'char'
+ default_value: 'DEFAULT'
+ is_nullable: 0
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "image_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "imagefile",
+ { data_type => "mediumblob", is_nullable => 1 },
+ "image_name",
+ {
+ data_type => "char",
+ default_value => "DEFAULT",
+ is_nullable => 0,
+ size => 20,
+ },
+);
+__PACKAGE__->set_primary_key("image_id");
+__PACKAGE__->add_unique_constraint("image_name_index", ["image_name"]);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5s/Ejf4/8x2uRb1aDvLhqA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::CreatorLayout;
+
+# 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::CreatorLayout
+
+=cut
+
+__PACKAGE__->table("creator_layouts");
+
+=head1 ACCESSORS
+
+=head2 layout_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 barcode_type
+
+ data_type: 'char'
+ default_value: 'CODE39'
+ is_nullable: 0
+ size: 100
+
+=head2 start_label
+
+ data_type: 'integer'
+ default_value: 1
+ is_nullable: 0
+
+=head2 printing_type
+
+ data_type: 'char'
+ default_value: 'BAR'
+ is_nullable: 0
+ size: 32
+
+=head2 layout_name
+
+ data_type: 'char'
+ default_value: 'DEFAULT'
+ is_nullable: 0
+ size: 20
+
+=head2 guidebox
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 font
+
+ data_type: 'char'
+ default_value: 'TR'
+ is_nullable: 0
+ size: 10
+
+=head2 font_size
+
+ data_type: 'integer'
+ default_value: 10
+ is_nullable: 0
+
+=head2 units
+
+ data_type: 'char'
+ default_value: 'POINT'
+ is_nullable: 0
+ size: 20
+
+=head2 callnum_split
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 text_justify
+
+ data_type: 'char'
+ default_value: 'L'
+ is_nullable: 0
+ size: 1
+
+=head2 format_string
+
+ data_type: 'varchar'
+ default_value: 'barcode'
+ is_nullable: 0
+ size: 210
+
+=head2 layout_xml
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 creator
+
+ data_type: 'char'
+ default_value: 'Labels'
+ is_nullable: 0
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "layout_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "barcode_type",
+ {
+ data_type => "char",
+ default_value => "CODE39",
+ is_nullable => 0,
+ size => 100,
+ },
+ "start_label",
+ { data_type => "integer", default_value => 1, is_nullable => 0 },
+ "printing_type",
+ { data_type => "char", default_value => "BAR", is_nullable => 0, size => 32 },
+ "layout_name",
+ {
+ data_type => "char",
+ default_value => "DEFAULT",
+ is_nullable => 0,
+ size => 20,
+ },
+ "guidebox",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "font",
+ { data_type => "char", default_value => "TR", is_nullable => 0, size => 10 },
+ "font_size",
+ { data_type => "integer", default_value => 10, is_nullable => 0 },
+ "units",
+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
+ "callnum_split",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "text_justify",
+ { data_type => "char", default_value => "L", is_nullable => 0, size => 1 },
+ "format_string",
+ {
+ data_type => "varchar",
+ default_value => "barcode",
+ is_nullable => 0,
+ size => 210,
+ },
+ "layout_xml",
+ { data_type => "text", is_nullable => 0 },
+ "creator",
+ {
+ data_type => "char",
+ default_value => "Labels",
+ is_nullable => 0,
+ size => 15,
+ },
+);
+__PACKAGE__->set_primary_key("layout_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NARlAl2b7wt4a8MmUr0giw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::CreatorTemplate;
+
+# 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::CreatorTemplate
+
+=cut
+
+__PACKAGE__->table("creator_templates");
+
+=head1 ACCESSORS
+
+=head2 template_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 profile_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 template_code
+
+ data_type: 'char'
+ default_value: 'DEFAULT TEMPLATE'
+ is_nullable: 0
+ size: 100
+
+=head2 template_desc
+
+ data_type: 'char'
+ default_value: 'Default description'
+ is_nullable: 0
+ size: 100
+
+=head2 page_width
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 page_height
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 label_width
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 label_height
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 top_text_margin
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 left_text_margin
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 top_margin
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 left_margin
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 cols
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 rows
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 col_gap
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 row_gap
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 units
+
+ data_type: 'char'
+ default_value: 'POINT'
+ is_nullable: 0
+ size: 20
+
+=head2 creator
+
+ data_type: 'char'
+ default_value: 'Labels'
+ is_nullable: 0
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "template_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "profile_id",
+ { data_type => "integer", is_nullable => 1 },
+ "template_code",
+ {
+ data_type => "char",
+ default_value => "DEFAULT TEMPLATE",
+ is_nullable => 0,
+ size => 100,
+ },
+ "template_desc",
+ {
+ data_type => "char",
+ default_value => "Default description",
+ is_nullable => 0,
+ size => 100,
+ },
+ "page_width",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "page_height",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "label_width",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "label_height",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "top_text_margin",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "left_text_margin",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "top_margin",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "left_margin",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "cols",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "rows",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "col_gap",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "row_gap",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "units",
+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
+ "creator",
+ {
+ data_type => "char",
+ default_value => "Labels",
+ is_nullable => 0,
+ size => 15,
+ },
+);
+__PACKAGE__->set_primary_key("template_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7+6xi7FTvNEbXqNlPfzQSw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Currency;
+
+# 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::Currency
+
+=cut
+
+__PACKAGE__->table("currency");
+
+=head1 ACCESSORS
+
+=head2 currency
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 symbol
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 5
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 rate
+
+ data_type: 'float'
+ is_nullable: 1
+ size: [15,5]
+
+=head2 active
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "currency",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "symbol",
+ { data_type => "varchar", is_nullable => 1, size => 5 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "rate",
+ { data_type => "float", is_nullable => 1, size => [15, 5] },
+ "active",
+ { data_type => "tinyint", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("currency");
+
+=head1 RELATIONS
+
+=head2 aqbooksellers_listprices
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbooksellers_listprices",
+ "Koha::Schema::Result::Aqbookseller",
+ { "foreign.listprice" => "self.currency" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 aqbooksellers_invoiceprices
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbookseller>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqbooksellers_invoiceprices",
+ "Koha::Schema::Result::Aqbookseller",
+ { "foreign.invoiceprice" => "self.currency" },
+ { 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:6SWDTY33KjtpW71Elgs69g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::DefaultBorrowerCircRule;
+
+# 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::DefaultBorrowerCircRule
+
+=cut
+
+__PACKAGE__->table("default_borrower_circ_rules");
+
+=head1 ACCESSORS
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 maxissueqty
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "categorycode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "maxissueqty",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("categorycode");
+
+=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" },
+ { 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:Z6tiOK5+uLufdewEsUrAEQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::DefaultBranchCircRule;
+
+# 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::DefaultBranchCircRule
+
+=cut
+
+__PACKAGE__->table("default_branch_circ_rules");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 maxissueqty
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 holdallowed
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 returnbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "maxissueqty",
+ { data_type => "integer", is_nullable => 1 },
+ "holdallowed",
+ { data_type => "tinyint", is_nullable => 1 },
+ "returnbranch",
+ { data_type => "varchar", is_nullable => 1, size => 15 },
+);
+__PACKAGE__->set_primary_key("branchcode");
+
+=head1 RELATIONS
+
+=head2 branchcode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "branchcode",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "branchcode" },
+ { 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:yCrCqkdVhV80/WtxZPK6Kw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::DefaultBranchItemRule;
+
+# 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::DefaultBranchItemRule
+
+=cut
+
+__PACKAGE__->table("default_branch_item_rules");
+
+=head1 ACCESSORS
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 holdallowed
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 returnbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemtype",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "holdallowed",
+ { data_type => "tinyint", is_nullable => 1 },
+ "returnbranch",
+ { data_type => "varchar", is_nullable => 1, size => 15 },
+);
+__PACKAGE__->set_primary_key("itemtype");
+
+=head1 RELATIONS
+
+=head2 itemtype
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Itemtype>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "itemtype",
+ "Koha::Schema::Result::Itemtype",
+ { itemtype => "itemtype" },
+ { 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:N5e8mgI8+T/E4CchVMYIoQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::DefaultCircRule;
+
+# 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::DefaultCircRule
+
+=cut
+
+__PACKAGE__->table("default_circ_rules");
+
+=head1 ACCESSORS
+
+=head2 singleton
+
+ data_type: 'enum'
+ default_value: 'singleton'
+ extra: {list => ["singleton"]}
+ is_nullable: 0
+
+=head2 maxissueqty
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 holdallowed
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 returnbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "singleton",
+ {
+ data_type => "enum",
+ default_value => "singleton",
+ extra => { list => ["singleton"] },
+ is_nullable => 0,
+ },
+ "maxissueqty",
+ { data_type => "integer", is_nullable => 1 },
+ "holdallowed",
+ { data_type => "integer", is_nullable => 1 },
+ "returnbranch",
+ { data_type => "varchar", is_nullable => 1, size => 15 },
+);
+__PACKAGE__->set_primary_key("singleton");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PSMIlns1Q2e5Kun60SzKYg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Deletedbiblio;
+
+# 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::Deletedbiblio
+
+=cut
+
+__PACKAGE__->table("deletedbiblio");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=head2 author
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 title
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 unititle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 serial
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 seriestitle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 copyrightdate
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 datecreated
+
+ data_type: 'date'
+ is_nullable: 0
+
+=head2 abstract
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
+ "author",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "title",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "unititle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "serial",
+ { data_type => "tinyint", is_nullable => 1 },
+ "seriestitle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "copyrightdate",
+ { data_type => "smallint", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "datecreated",
+ { data_type => "date", is_nullable => 0 },
+ "abstract",
+ { data_type => "mediumtext", is_nullable => 1 },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Deletedbiblioitem;
+
+# 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::Deletedbiblioitem
+
+=cut
+
+__PACKAGE__->table("deletedbiblioitems");
+
+=head1 ACCESSORS
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 volume
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 number
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 isbn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 issn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 9
+
+=head2 ean
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 13
+
+=head2 publicationyear
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 publishercode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 volumedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 volumedesc
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 collectiontitle
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 collectionissn
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 collectionvolume
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 editionstatement
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 editionresponsibility
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 illus
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 pages
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 size
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 place
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 lccn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 marc
+
+ data_type: 'longblob'
+ is_nullable: 1
+
+=head2 url
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 cn_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_class
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 cn_item
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_suffix
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_sort
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 agerestriction
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 totalissues
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 marcxml
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblioitemnumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "volume",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "number",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "itemtype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "isbn",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "issn",
+ { data_type => "varchar", is_nullable => 1, size => 9 },
+ "ean",
+ { data_type => "varchar", is_nullable => 1, size => 13 },
+ "publicationyear",
+ { data_type => "text", is_nullable => 1 },
+ "publishercode",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "volumedate",
+ { data_type => "date", is_nullable => 1 },
+ "volumedesc",
+ { data_type => "text", is_nullable => 1 },
+ "collectiontitle",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "collectionissn",
+ { data_type => "text", is_nullable => 1 },
+ "collectionvolume",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "editionstatement",
+ { data_type => "text", is_nullable => 1 },
+ "editionresponsibility",
+ { data_type => "text", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "illus",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "pages",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "size",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "place",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "lccn",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "marc",
+ { data_type => "longblob", is_nullable => 1 },
+ "url",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "cn_source",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_class",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "cn_item",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_suffix",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_sort",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "agerestriction",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "totalissues",
+ { data_type => "integer", is_nullable => 1 },
+ "marcxml",
+ { data_type => "longtext", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("biblioitemnumber");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+7zlVHfXJbuk7GfMYsooXw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Deletedborrower;
+
+# 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::Deletedborrower
+
+=cut
+
+__PACKAGE__->table("deletedborrowers");
+
+=head1 ACCESSORS
+
+=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: 0
+
+=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: 0
+
+=head2 address2
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 city
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 state
+
+ data_type: 'mediumtext'
+ 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: 'mediumtext'
+ 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'
+ default_value: (empty string)
+ is_nullable: 0
+ 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: 30
+
+=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: 'mediumtext'
+ 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(
+ "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 => 0 },
+ "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 => 0 },
+ "address2",
+ { data_type => "text", is_nullable => 1 },
+ "city",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "state",
+ { data_type => "mediumtext", 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 => "mediumtext", 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", default_value => "", is_nullable => 0, 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 => 30 },
+ "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 => "mediumtext", 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 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bFluvx9OwGTzEMpQZPBuKQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Deleteditem;
+
+# 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::Deleteditem
+
+=cut
+
+__PACKAGE__->table("deleteditems");
+
+=head1 ACCESSORS
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 barcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 dateaccessioned
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 booksellerid
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 homebranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 price
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [8,2]
+
+=head2 replacementprice
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [8,2]
+
+=head2 replacementpricedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 datelastborrowed
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 datelastseen
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 stack
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 notforloan
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 damaged
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemlost
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 wthdrawn
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemcallnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 issues
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 renewals
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 reserves
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 restricted
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 itemnotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 holdingbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 paidfor
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 location
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 permanent_location
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 onloan
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 cn_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_sort
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 ccode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 materials
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 uri
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 itype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 more_subfields_xml
+
+ data_type: 'longtext'
+ is_nullable: 1
+
+=head2 enumchron
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 copynumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 32
+
+=head2 stocknumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 32
+
+=head2 marc
+
+ data_type: 'longblob'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemnumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "biblioitemnumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "barcode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "dateaccessioned",
+ { data_type => "date", is_nullable => 1 },
+ "booksellerid",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "homebranch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "price",
+ { data_type => "decimal", is_nullable => 1, size => [8, 2] },
+ "replacementprice",
+ { data_type => "decimal", is_nullable => 1, size => [8, 2] },
+ "replacementpricedate",
+ { data_type => "date", is_nullable => 1 },
+ "datelastborrowed",
+ { data_type => "date", is_nullable => 1 },
+ "datelastseen",
+ { data_type => "date", is_nullable => 1 },
+ "stack",
+ { data_type => "tinyint", is_nullable => 1 },
+ "notforloan",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "damaged",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "itemlost",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "wthdrawn",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "itemcallnumber",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "issues",
+ { data_type => "smallint", is_nullable => 1 },
+ "renewals",
+ { data_type => "smallint", is_nullable => 1 },
+ "reserves",
+ { data_type => "smallint", is_nullable => 1 },
+ "restricted",
+ { data_type => "tinyint", is_nullable => 1 },
+ "itemnotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "holdingbranch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "paidfor",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "location",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "permanent_location",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "onloan",
+ { data_type => "date", is_nullable => 1 },
+ "cn_source",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_sort",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "ccode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "materials",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "uri",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "itype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "more_subfields_xml",
+ { data_type => "longtext", is_nullable => 1 },
+ "enumchron",
+ { data_type => "text", is_nullable => 1 },
+ "copynumber",
+ { data_type => "varchar", is_nullable => 1, size => 32 },
+ "stocknumber",
+ { data_type => "varchar", is_nullable => 1, size => 32 },
+ "marc",
+ { data_type => "longblob", is_nullable => 1 },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Ethnicity;
+
+# 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::Ethnicity
+
+=cut
+
+__PACKAGE__->table("ethnicity");
+
+=head1 ACCESSORS
+
+=head2 code
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "code",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "name",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+);
+__PACKAGE__->set_primary_key("code");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H+zE5eEx/ClCKhvOgCCQzg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ExportFormat;
+
+# 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::ExportFormat
+
+=cut
+
+__PACKAGE__->table("export_format");
+
+=head1 ACCESSORS
+
+=head2 export_format_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 profile
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 marcfields
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 csv_separator
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 2
+
+=head2 field_separator
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 2
+
+=head2 subfield_separator
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 2
+
+=head2 encoding
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "export_format_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "profile",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "description",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "marcfields",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "csv_separator",
+ { data_type => "varchar", is_nullable => 0, size => 2 },
+ "field_separator",
+ { data_type => "varchar", is_nullable => 0, size => 2 },
+ "subfield_separator",
+ { data_type => "varchar", is_nullable => 0, size => 2 },
+ "encoding",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+);
+__PACKAGE__->set_primary_key("export_format_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUCNW2Ek6JxBjlVcO1TQ1g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Fieldmapping;
+
+# 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::Fieldmapping
+
+=cut
+
+__PACKAGE__->table("fieldmapping");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 field
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 frameworkcode
+
+ data_type: 'char'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=head2 fieldcode
+
+ data_type: 'char'
+ is_nullable: 0
+ size: 3
+
+=head2 subfieldcode
+
+ data_type: 'char'
+ is_nullable: 0
+ size: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "field",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "frameworkcode",
+ { data_type => "char", default_value => "", is_nullable => 0, size => 4 },
+ "fieldcode",
+ { data_type => "char", is_nullable => 0, size => 3 },
+ "subfieldcode",
+ { data_type => "char", is_nullable => 0, size => 1 },
+);
+__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:gvtMvCtkyoKYhiEqLmhFEg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::HoldFillTarget;
+
+# 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::HoldFillTarget
+
+=cut
+
+__PACKAGE__->table("hold_fill_targets");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 source_branchcode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 item_level_request
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "source_branchcode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "item_level_request",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("itemnumber");
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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" },
+);
+
+=head2 source_branchcode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "source_branchcode",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "source_branchcode" },
+ { 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:/h3AEVRMJgs51+fyRzpLaQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportAuth;
+
+# 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::ImportAuth
+
+=cut
+
+__PACKAGE__->table("import_auths");
+
+=head1 ACCESSORS
+
+=head2 import_record_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matched_authid
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 control_number
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 authorized_heading
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 128
+
+=head2 original_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=cut
+
+__PACKAGE__->add_columns(
+ "import_record_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matched_authid",
+ { data_type => "integer", is_nullable => 1 },
+ "control_number",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "authorized_heading",
+ { data_type => "varchar", is_nullable => 1, size => 128 },
+ "original_source",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+);
+
+=head1 RELATIONS
+
+=head2 import_record
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ImportRecord>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "import_record",
+ "Koha::Schema::Result::ImportRecord",
+ { import_record_id => "import_record_id" },
+ { 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:KS/c5gOeZK0p8UY5mXRqlQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportBatch;
+
+# 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::ImportBatch
+
+=cut
+
+__PACKAGE__->table("import_batches");
+
+=head1 ACCESSORS
+
+=head2 import_batch_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 matcher_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 template_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 num_records
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 num_items
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 upload_timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 overlay_action
+
+ data_type: 'enum'
+ default_value: 'create_new'
+ extra: {list => ["replace","create_new","use_template","ignore"]}
+ is_nullable: 0
+
+=head2 nomatch_action
+
+ data_type: 'enum'
+ default_value: 'create_new'
+ extra: {list => ["create_new","ignore"]}
+ is_nullable: 0
+
+=head2 item_action
+
+ data_type: 'enum'
+ default_value: 'always_add'
+ extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]}
+ is_nullable: 0
+
+=head2 import_status
+
+ data_type: 'enum'
+ default_value: 'staging'
+ extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
+ is_nullable: 0
+
+=head2 batch_type
+
+ data_type: 'enum'
+ default_value: 'batch'
+ extra: {list => ["batch","z3950","webservice"]}
+ is_nullable: 0
+
+=head2 file_name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 comments
+
+ 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(
+ "import_batch_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "matcher_id",
+ { data_type => "integer", is_nullable => 1 },
+ "template_id",
+ { data_type => "integer", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "num_records",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "num_items",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "upload_timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "overlay_action",
+ {
+ data_type => "enum",
+ default_value => "create_new",
+ extra => { list => ["replace", "create_new", "use_template", "ignore"] },
+ is_nullable => 0,
+ },
+ "nomatch_action",
+ {
+ data_type => "enum",
+ default_value => "create_new",
+ extra => { list => ["create_new", "ignore"] },
+ is_nullable => 0,
+ },
+ "item_action",
+ {
+ data_type => "enum",
+ default_value => "always_add",
+ extra => {
+ list => [
+ "always_add",
+ "add_only_for_matches",
+ "add_only_for_new",
+ "ignore",
+ ],
+ },
+ is_nullable => 0,
+ },
+ "import_status",
+ {
+ data_type => "enum",
+ default_value => "staging",
+ extra => {
+ list => [
+ "staging",
+ "staged",
+ "importing",
+ "imported",
+ "reverting",
+ "reverted",
+ "cleaned",
+ ],
+ },
+ is_nullable => 0,
+ },
+ "batch_type",
+ {
+ data_type => "enum",
+ default_value => "batch",
+ 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",
+ default_value => "biblio",
+ extra => { list => ["biblio", "auth", "holdings"] },
+ is_nullable => 0,
+ },
+);
+__PACKAGE__->set_primary_key("import_batch_id");
+
+=head1 RELATIONS
+
+=head2 import_records
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ImportRecord>
+
+=cut
+
+__PACKAGE__->has_many(
+ "import_records",
+ "Koha::Schema::Result::ImportRecord",
+ { "foreign.import_batch_id" => "self.import_batch_id" },
+ { 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:es2clfR8Vlgv8rN/kM65iA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportBiblio;
+
+# 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::ImportBiblio
+
+=cut
+
+__PACKAGE__->table("import_biblios");
+
+=head1 ACCESSORS
+
+=head2 import_record_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matched_biblionumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 control_number
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 original_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 title
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 128
+
+=head2 author
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 isbn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 issn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 9
+
+=head2 has_items
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "import_record_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matched_biblionumber",
+ { data_type => "integer", is_nullable => 1 },
+ "control_number",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "original_source",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "title",
+ { data_type => "varchar", is_nullable => 1, size => 128 },
+ "author",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "isbn",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "issn",
+ { data_type => "varchar", is_nullable => 1, size => 9 },
+ "has_items",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+);
+
+=head1 RELATIONS
+
+=head2 import_record
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ImportRecord>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "import_record",
+ "Koha::Schema::Result::ImportRecord",
+ { import_record_id => "import_record_id" },
+ { 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:HJRDv5y++ivu2IsDFMbGMw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportItem;
+
+# 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::ImportItem
+
+=cut
+
+__PACKAGE__->table("import_items");
+
+=head1 ACCESSORS
+
+=head2 import_items_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 import_record_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 status
+
+ data_type: 'enum'
+ default_value: 'staged'
+ extra: {list => ["error","staged","imported","reverted","ignored"]}
+ is_nullable: 0
+
+=head2 marcxml
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=head2 import_error
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "import_items_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "import_record_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "status",
+ {
+ data_type => "enum",
+ default_value => "staged",
+ extra => { list => ["error", "staged", "imported", "reverted", "ignored"] },
+ is_nullable => 0,
+ },
+ "marcxml",
+ { data_type => "longtext", is_nullable => 0 },
+ "import_error",
+ { data_type => "mediumtext", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("import_items_id");
+
+=head1 RELATIONS
+
+=head2 import_record
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ImportRecord>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "import_record",
+ "Koha::Schema::Result::ImportRecord",
+ { import_record_id => "import_record_id" },
+ { 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:2PCGat+VP/DjjEe+G0gb3Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportRecord;
+
+# 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::ImportRecord
+
+=cut
+
+__PACKAGE__->table("import_records");
+
+=head1 ACCESSORS
+
+=head2 import_record_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 import_batch_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 record_sequence
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 upload_timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 import_date
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 marc
+
+ data_type: 'longblob'
+ is_nullable: 0
+
+=head2 marcxml
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=head2 marcxml_old
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=head2 record_type
+
+ data_type: 'enum'
+ default_value: 'biblio'
+ extra: {list => ["biblio","auth","holdings"]}
+ is_nullable: 0
+
+=head2 overlay_status
+
+ data_type: 'enum'
+ default_value: 'no_match'
+ extra: {list => ["no_match","auto_match","manual_match","match_applied"]}
+ is_nullable: 0
+
+=head2 status
+
+ data_type: 'enum'
+ default_value: 'staged'
+ extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]}
+ is_nullable: 0
+
+=head2 import_error
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 encoding
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 40
+
+=head2 z3950random
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 40
+
+=cut
+
+__PACKAGE__->add_columns(
+ "import_record_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "import_batch_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "record_sequence",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "upload_timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "import_date",
+ { data_type => "date", is_nullable => 1 },
+ "marc",
+ { data_type => "longblob", is_nullable => 0 },
+ "marcxml",
+ { data_type => "longtext", is_nullable => 0 },
+ "marcxml_old",
+ { data_type => "longtext", is_nullable => 0 },
+ "record_type",
+ {
+ data_type => "enum",
+ default_value => "biblio",
+ extra => { list => ["biblio", "auth", "holdings"] },
+ is_nullable => 0,
+ },
+ "overlay_status",
+ {
+ data_type => "enum",
+ default_value => "no_match",
+ extra => {
+ list => ["no_match", "auto_match", "manual_match", "match_applied"],
+ },
+ is_nullable => 0,
+ },
+ "status",
+ {
+ data_type => "enum",
+ default_value => "staged",
+ extra => {
+ list => [
+ "error",
+ "staged",
+ "imported",
+ "reverted",
+ "items_reverted",
+ "ignored",
+ ],
+ },
+ is_nullable => 0,
+ },
+ "import_error",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "encoding",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
+ "z3950random",
+ { data_type => "varchar", is_nullable => 1, size => 40 },
+);
+__PACKAGE__->set_primary_key("import_record_id");
+
+=head1 RELATIONS
+
+=head2 import_auths
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ImportAuth>
+
+=cut
+
+__PACKAGE__->has_many(
+ "import_auths",
+ "Koha::Schema::Result::ImportAuth",
+ { "foreign.import_record_id" => "self.import_record_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 import_biblios
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ImportBiblio>
+
+=cut
+
+__PACKAGE__->has_many(
+ "import_biblios",
+ "Koha::Schema::Result::ImportBiblio",
+ { "foreign.import_record_id" => "self.import_record_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 import_items
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ImportItem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "import_items",
+ "Koha::Schema::Result::ImportItem",
+ { "foreign.import_record_id" => "self.import_record_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 import_records_matches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ImportRecordMatches>
+
+=cut
+
+__PACKAGE__->has_many(
+ "import_records_matches",
+ "Koha::Schema::Result::ImportRecordMatches",
+ { "foreign.import_record_id" => "self.import_record_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 import_batch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ImportBatch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "import_batch",
+ "Koha::Schema::Result::ImportBatch",
+ { import_batch_id => "import_batch_id" },
+ { 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:4BPw0d87+uhdeHd0DnL6Ng
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ImportRecordMatches;
+
+# 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::ImportRecordMatches
+
+=cut
+
+__PACKAGE__->table("import_record_matches");
+
+=head1 ACCESSORS
+
+=head2 import_record_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 candidate_match_id
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 score
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "import_record_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "candidate_match_id",
+ { data_type => "integer", is_nullable => 0 },
+ "score",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+);
+
+=head1 RELATIONS
+
+=head2 import_record
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::ImportRecord>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "import_record",
+ "Koha::Schema::Result::ImportRecord",
+ { import_record_id => "import_record_id" },
+ { 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:XNn+Yyr6xKz3R4ewz9PSpQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Issue;
+
+# 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::Issue
+
+=cut
+
+__PACKAGE__->table("issues");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 date_due
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 issuingbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 18
+
+=head2 returndate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 lastreneweddate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 return
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 4
+
+=head2 renewals
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 issuedate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "date_due",
+ { data_type => "datetime", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "issuingbranch",
+ { data_type => "varchar", is_nullable => 1, size => 18 },
+ "returndate",
+ { data_type => "datetime", is_nullable => 1 },
+ "lastreneweddate",
+ { data_type => "datetime", is_nullable => 1 },
+ "return",
+ { data_type => "varchar", is_nullable => 1, size => 4 },
+ "renewals",
+ { data_type => "tinyint", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "issuedate",
+ { data_type => "datetime", is_nullable => 1 },
+);
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KCy3FmbJK9aZRqXSAkYe5g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Issuingrule;
+
+# 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::Issuingrule
+
+=cut
+
+__PACKAGE__->table("issuingrules");
+
+=head1 ACCESSORS
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 restrictedtype
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 rentaldiscount
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 reservecharge
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 fine
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 finedays
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 firstremind
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 chargeperiod
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 accountsent
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 chargename
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 100
+
+=head2 maxissueqty
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 issuelength
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 lengthunit
+
+ data_type: 'varchar'
+ default_value: 'days'
+ is_nullable: 1
+ size: 10
+
+=head2 hardduedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 hardduedatecompare
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 renewalsallowed
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 reservesallowed
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 overduefinescap
+
+ data_type: 'decimal'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "categorycode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "itemtype",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "restrictedtype",
+ { data_type => "tinyint", is_nullable => 1 },
+ "rentaldiscount",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "reservecharge",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "fine",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "finedays",
+ { data_type => "integer", is_nullable => 1 },
+ "firstremind",
+ { data_type => "integer", is_nullable => 1 },
+ "chargeperiod",
+ { data_type => "integer", is_nullable => 1 },
+ "accountsent",
+ { data_type => "integer", is_nullable => 1 },
+ "chargename",
+ { data_type => "varchar", is_nullable => 1, size => 100 },
+ "maxissueqty",
+ { data_type => "integer", is_nullable => 1 },
+ "issuelength",
+ { data_type => "integer", is_nullable => 1 },
+ "lengthunit",
+ {
+ data_type => "varchar",
+ default_value => "days",
+ is_nullable => 1,
+ size => 10,
+ },
+ "hardduedate",
+ { data_type => "date", is_nullable => 1 },
+ "hardduedatecompare",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "renewalsallowed",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "reservesallowed",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "overduefinescap",
+ { data_type => "decimal", is_nullable => 1 },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Item;
+
+# 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::Item
+
+=cut
+
+__PACKAGE__->table("items");
+
+=head1 ACCESSORS
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 barcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 dateaccessioned
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 booksellerid
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 homebranch
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 price
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [8,2]
+
+=head2 replacementprice
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [8,2]
+
+=head2 replacementpricedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 datelastborrowed
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 datelastseen
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 stack
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 notforloan
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 damaged
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemlost
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 wthdrawn
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemcallnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 issues
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 renewals
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 reserves
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 restricted
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 itemnotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 holdingbranch
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 paidfor
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 location
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 permanent_location
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 onloan
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 cn_source
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 cn_sort
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 ccode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 materials
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 uri
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 itype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 more_subfields_xml
+
+ data_type: 'longtext'
+ is_nullable: 1
+
+=head2 enumchron
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 copynumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 32
+
+=head2 stocknumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 32
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemnumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "biblioitemnumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "barcode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "dateaccessioned",
+ { data_type => "date", is_nullable => 1 },
+ "booksellerid",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "homebranch",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "price",
+ { data_type => "decimal", is_nullable => 1, size => [8, 2] },
+ "replacementprice",
+ { data_type => "decimal", is_nullable => 1, size => [8, 2] },
+ "replacementpricedate",
+ { data_type => "date", is_nullable => 1 },
+ "datelastborrowed",
+ { data_type => "date", is_nullable => 1 },
+ "datelastseen",
+ { data_type => "date", is_nullable => 1 },
+ "stack",
+ { data_type => "tinyint", is_nullable => 1 },
+ "notforloan",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "damaged",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "itemlost",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "wthdrawn",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "itemcallnumber",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "issues",
+ { data_type => "smallint", is_nullable => 1 },
+ "renewals",
+ { data_type => "smallint", is_nullable => 1 },
+ "reserves",
+ { data_type => "smallint", is_nullable => 1 },
+ "restricted",
+ { data_type => "tinyint", is_nullable => 1 },
+ "itemnotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "holdingbranch",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "paidfor",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "location",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "permanent_location",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "onloan",
+ { data_type => "date", is_nullable => 1 },
+ "cn_source",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "cn_sort",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "ccode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "materials",
+ { data_type => "text", is_nullable => 1 },
+ "uri",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "itype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "more_subfields_xml",
+ { data_type => "longtext", is_nullable => 1 },
+ "enumchron",
+ { data_type => "text", is_nullable => 1 },
+ "copynumber",
+ { data_type => "varchar", is_nullable => 1, size => 32 },
+ "stocknumber",
+ { data_type => "varchar", is_nullable => 1, size => 32 },
+);
+__PACKAGE__->set_primary_key("itemnumber");
+__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
+
+=head1 RELATIONS
+
+=head2 accountlines
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Accountline>
+
+=cut
+
+__PACKAGE__->has_many(
+ "accountlines",
+ "Koha::Schema::Result::Accountline",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 branchtransfers
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Branchtransfer>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branchtransfers",
+ "Koha::Schema::Result::Branchtransfer",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 creator_batches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CreatorBatch>
+
+=cut
+
+__PACKAGE__->has_many(
+ "creator_batches",
+ "Koha::Schema::Result::CreatorBatch",
+ { "foreign.item_number" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 hold_fill_target
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::HoldFillTarget>
+
+=cut
+
+__PACKAGE__->might_have(
+ "hold_fill_target",
+ "Koha::Schema::Result::HoldFillTarget",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 issues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Issue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "issues",
+ "Koha::Schema::Result::Issue",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 biblioitemnumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblioitem>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblioitemnumber",
+ "Koha::Schema::Result::Biblioitem",
+ { biblioitemnumber => "biblioitemnumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 homebranch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "homebranch",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "homebranch" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=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 old_issues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OldIssue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "old_issues",
+ "Koha::Schema::Result::OldIssue",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 old_reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OldReserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "old_reserves",
+ "Koha::Schema::Result::OldReserve",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 reserves
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Reserve>
+
+=cut
+
+__PACKAGE__->has_many(
+ "reserves",
+ "Koha::Schema::Result::Reserve",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 serialitem
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::Serialitem>
+
+=cut
+
+__PACKAGE__->might_have(
+ "serialitem",
+ "Koha::Schema::Result::Serialitem",
+ { "foreign.itemnumber" => "self.itemnumber" },
+ { 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:+jjodrPqX4WhBbgnTc5OqQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ItemCirculationAlertPreference;
+
+# 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::ItemCirculationAlertPreference
+
+=cut
+
+__PACKAGE__->table("item_circulation_alert_preferences");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 item_type
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 notification
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 16
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "categorycode",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "item_type",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "notification",
+ { data_type => "varchar", is_nullable => 0, size => 16 },
+);
+__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:u0W8zw5k/6shlotWbr/5UA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Itemtype;
+
+# 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::Itemtype
+
+=cut
+
+__PACKAGE__->table("itemtypes");
+
+=head1 ACCESSORS
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 rentalcharge
+
+ data_type: 'double precision'
+ is_nullable: 1
+ size: [16,4]
+
+=head2 notforloan
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 imageurl
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 200
+
+=head2 summary
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemtype",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "rentalcharge",
+ { data_type => "double precision", is_nullable => 1, size => [16, 4] },
+ "notforloan",
+ { data_type => "smallint", is_nullable => 1 },
+ "imageurl",
+ { data_type => "varchar", is_nullable => 1, size => 200 },
+ "summary",
+ { data_type => "text", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("itemtype");
+
+=head1 RELATIONS
+
+=head2 branch_item_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BranchItemRule>
+
+=cut
+
+__PACKAGE__->has_many(
+ "branch_item_rules",
+ "Koha::Schema::Result::BranchItemRule",
+ { "foreign.itemtype" => "self.itemtype" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 default_branch_item_rule
+
+Type: might_have
+
+Related object: L<Koha::Schema::Result::DefaultBranchItemRule>
+
+=cut
+
+__PACKAGE__->might_have(
+ "default_branch_item_rule",
+ "Koha::Schema::Result::DefaultBranchItemRule",
+ { "foreign.itemtype" => "self.itemtype" },
+ { 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:U4zQb4FXeB0GE8+Kyp9X1Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::LanguageDescription;
+
+# 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::LanguageDescription
+
+=cut
+
+__PACKAGE__->table("language_descriptions");
+
+=head1 ACCESSORS
+
+=head2 subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 type
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 lang
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "type",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "lang",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "description",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+);
+__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:WmYReEEJY/1M9lgDnNVZWA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::LanguageRfc4646ToIso639;
+
+# 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::LanguageRfc4646ToIso639
+
+=cut
+
+__PACKAGE__->table("language_rfc4646_to_iso639");
+
+=head1 ACCESSORS
+
+=head2 rfc4646_subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 iso639_2_code
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "rfc4646_subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "iso639_2_code",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+);
+__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:vwUWEmP6tprD5pTK2xnqfw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::LanguageScriptBidi;
+
+# 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::LanguageScriptBidi
+
+=cut
+
+__PACKAGE__->table("language_script_bidi");
+
+=head1 ACCESSORS
+
+=head2 rfc4646_subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 bidi
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 3
+
+=cut
+
+__PACKAGE__->add_columns(
+ "rfc4646_subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "bidi",
+ { data_type => "varchar", is_nullable => 1, size => 3 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AF0TN1yPhye2rmM2hqjBhw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::LanguageScriptMapping;
+
+# 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::LanguageScriptMapping
+
+=cut
+
+__PACKAGE__->table("language_script_mapping");
+
+=head1 ACCESSORS
+
+=head2 language_subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 script_subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=cut
+
+__PACKAGE__->add_columns(
+ "language_subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "script_subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZq4ORzniNZ2ureISmxuYg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::LanguageSubtagRegistry;
+
+# 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::LanguageSubtagRegistry
+
+=cut
+
+__PACKAGE__->table("language_subtag_registry");
+
+=head1 ACCESSORS
+
+=head2 subtag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 type
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 25
+
+=head2 added
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "subtag",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "type",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "description",
+ { data_type => "varchar", is_nullable => 1, size => 25 },
+ "added",
+ { data_type => "date", is_nullable => 1 },
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+);
+__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:3XkyaSdpFe0F5KktVox9nQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Letter;
+
+# 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::Letter
+
+=cut
+
+__PACKAGE__->table("letter");
+
+=head1 ACCESSORS
+
+=head2 module
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=head2 code
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 name
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 is_html
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 title
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 200
+
+=head2 content
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "module",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
+ "code",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "name",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "is_html",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "title",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 200 },
+ "content",
+ { data_type => "text", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("module", "code", "branchcode");
+
+=head1 RELATIONS
+
+=head2 message_transports
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MessageTransport>
+
+=cut
+
+__PACKAGE__->has_many(
+ "message_transports",
+ "Koha::Schema::Result::MessageTransport",
+ {
+ "foreign.branchcode" => "self.branchcode",
+ "foreign.letter_code" => "self.code",
+ "foreign.letter_module" => "self.module",
+ },
+ { 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:MDVfBFxikRa6QrFHs549ZA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MarcMatcher;
+
+# 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::MarcMatcher
+
+=cut
+
+__PACKAGE__->table("marc_matchers");
+
+=head1 ACCESSORS
+
+=head2 matcher_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 code
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 description
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 record_type
+
+ data_type: 'varchar'
+ default_value: 'biblio'
+ is_nullable: 0
+ size: 10
+
+=head2 threshold
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matcher_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "code",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "description",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "record_type",
+ {
+ data_type => "varchar",
+ default_value => "biblio",
+ is_nullable => 0,
+ size => 10,
+ },
+ "threshold",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("matcher_id");
+
+=head1 RELATIONS
+
+=head2 matchchecks
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Matchcheck>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchchecks",
+ "Koha::Schema::Result::Matchcheck",
+ { "foreign.matcher_id" => "self.matcher_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matcher_matchpoints
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MatcherMatchpoint>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matcher_matchpoints",
+ "Koha::Schema::Result::MatcherMatchpoint",
+ { "foreign.matcher_id" => "self.matcher_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matchpoints
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Matchpoint>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchpoints",
+ "Koha::Schema::Result::Matchpoint",
+ { "foreign.matcher_id" => "self.matcher_id" },
+ { 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:iZyWhA28vO7VHWXtE473TQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MarcSubfieldStructure;
+
+# 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::MarcSubfieldStructure
+
+=cut
+
+__PACKAGE__->table("marc_subfield_structure");
+
+=head1 ACCESSORS
+
+=head2 tagfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 tagsubfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 1
+
+=head2 liblibrarian
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 libopac
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 repeatable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 mandatory
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 kohafield
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 40
+
+=head2 tab
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 authorised_value
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 authtypecode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 value_builder
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 isurl
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 hidden
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=head2 seealso
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1100
+
+=head2 link
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 defaultvalue
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 maxlength
+
+ data_type: 'integer'
+ default_value: 9999
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "tagfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "tagsubfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 },
+ "liblibrarian",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "libopac",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "repeatable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "mandatory",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "kohafield",
+ { data_type => "varchar", is_nullable => 1, size => 40 },
+ "tab",
+ { data_type => "tinyint", is_nullable => 1 },
+ "authorised_value",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "authtypecode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "value_builder",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "isurl",
+ { data_type => "tinyint", is_nullable => 1 },
+ "hidden",
+ { data_type => "tinyint", is_nullable => 1 },
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
+ "seealso",
+ { data_type => "varchar", is_nullable => 1, size => 1100 },
+ "link",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "defaultvalue",
+ { data_type => "text", is_nullable => 1 },
+ "maxlength",
+ { data_type => "integer", default_value => 9999, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6UMADnf1NRqg+kxGn1LdrQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MarcTagStructure;
+
+# 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::MarcTagStructure
+
+=cut
+
+__PACKAGE__->table("marc_tag_structure");
+
+=head1 ACCESSORS
+
+=head2 tagfield
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 liblibrarian
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 libopac
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 repeatable
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 mandatory
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 authorised_value
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 frameworkcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 4
+
+=cut
+
+__PACKAGE__->add_columns(
+ "tagfield",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "liblibrarian",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "libopac",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "repeatable",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "mandatory",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "authorised_value",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "frameworkcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
+);
+__PACKAGE__->set_primary_key("frameworkcode", "tagfield");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wQUMc8pLSjTOgr7+Z6sscQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Matchcheck;
+
+# 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::Matchcheck
+
+=cut
+
+__PACKAGE__->table("matchchecks");
+
+=head1 ACCESSORS
+
+=head2 matcher_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matchcheck_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 source_matchpoint_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 target_matchpoint_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matcher_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matchcheck_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "source_matchpoint_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "target_matchpoint_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("matchcheck_id");
+
+=head1 RELATIONS
+
+=head2 matcher
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MarcMatcher>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matcher",
+ "Koha::Schema::Result::MarcMatcher",
+ { matcher_id => "matcher_id" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 source_matchpoint
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Matchpoint>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "source_matchpoint",
+ "Koha::Schema::Result::Matchpoint",
+ { matchpoint_id => "source_matchpoint_id" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 target_matchpoint
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Matchpoint>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "target_matchpoint",
+ "Koha::Schema::Result::Matchpoint",
+ { matchpoint_id => "target_matchpoint_id" },
+ { 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:R2duGZidKaVVqnfQP5pSvQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MatcherMatchpoint;
+
+# 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::MatcherMatchpoint
+
+=cut
+
+__PACKAGE__->table("matcher_matchpoints");
+
+=head1 ACCESSORS
+
+=head2 matcher_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matchpoint_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matcher_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matchpoint_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+
+=head1 RELATIONS
+
+=head2 matcher
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MarcMatcher>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matcher",
+ "Koha::Schema::Result::MarcMatcher",
+ { matcher_id => "matcher_id" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 matchpoint
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Matchpoint>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matchpoint",
+ "Koha::Schema::Result::Matchpoint",
+ { matchpoint_id => "matchpoint_id" },
+ { 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:GBxofoXbX0KRwU1fa5bQ2g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Matchpoint;
+
+# 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::Matchpoint
+
+=cut
+
+__PACKAGE__->table("matchpoints");
+
+=head1 ACCESSORS
+
+=head2 matcher_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matchpoint_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 search_index
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 30
+
+=head2 score
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matcher_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matchpoint_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "search_index",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
+ "score",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("matchpoint_id");
+
+=head1 RELATIONS
+
+=head2 matchchecks_source_matchpoints
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Matchcheck>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchchecks_source_matchpoints",
+ "Koha::Schema::Result::Matchcheck",
+ { "foreign.source_matchpoint_id" => "self.matchpoint_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matchchecks_target_matchpoints
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Matchcheck>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchchecks_target_matchpoints",
+ "Koha::Schema::Result::Matchcheck",
+ { "foreign.target_matchpoint_id" => "self.matchpoint_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matcher_matchpoints
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MatcherMatchpoint>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matcher_matchpoints",
+ "Koha::Schema::Result::MatcherMatchpoint",
+ { "foreign.matchpoint_id" => "self.matchpoint_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matchpoint_components
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MatchpointComponent>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchpoint_components",
+ "Koha::Schema::Result::MatchpointComponent",
+ { "foreign.matchpoint_id" => "self.matchpoint_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matcher
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MarcMatcher>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matcher",
+ "Koha::Schema::Result::MarcMatcher",
+ { matcher_id => "matcher_id" },
+ { 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:ltzMXDHk2L7ECkLUrGXyzA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MatchpointComponent;
+
+# 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::MatchpointComponent
+
+=cut
+
+__PACKAGE__->table("matchpoint_components");
+
+=head1 ACCESSORS
+
+=head2 matchpoint_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 matchpoint_component_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 sequence
+
+ accessor: undef
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 tag
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 3
+
+=head2 subfields
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 40
+
+=head2 offset
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 length
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matchpoint_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "matchpoint_component_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "sequence",
+ {
+ accessor => undef,
+ data_type => "integer",
+ default_value => 0,
+ is_nullable => 0,
+ },
+ "tag",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
+ "subfields",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
+ "offset",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "length",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("matchpoint_component_id");
+
+=head1 RELATIONS
+
+=head2 matchpoint_component_norms
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MatchpointComponentNorm>
+
+=cut
+
+__PACKAGE__->has_many(
+ "matchpoint_component_norms",
+ "Koha::Schema::Result::MatchpointComponentNorm",
+ {
+ "foreign.matchpoint_component_id" => "self.matchpoint_component_id",
+ },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 matchpoint
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Matchpoint>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matchpoint",
+ "Koha::Schema::Result::Matchpoint",
+ { matchpoint_id => "matchpoint_id" },
+ { 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:/7C/jFYOMSF/AtJViHH7jQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MatchpointComponentNorm;
+
+# 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::MatchpointComponentNorm
+
+=cut
+
+__PACKAGE__->table("matchpoint_component_norms");
+
+=head1 ACCESSORS
+
+=head2 matchpoint_component_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 sequence
+
+ accessor: undef
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 norm_routine
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 50
+
+=cut
+
+__PACKAGE__->add_columns(
+ "matchpoint_component_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "sequence",
+ {
+ accessor => undef,
+ data_type => "integer",
+ default_value => 0,
+ is_nullable => 0,
+ },
+ "norm_routine",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
+);
+
+=head1 RELATIONS
+
+=head2 matchpoint_component
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MatchpointComponent>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "matchpoint_component",
+ "Koha::Schema::Result::MatchpointComponent",
+ { matchpoint_component_id => "matchpoint_component_id" },
+ { 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:bfVMJiFqfjhc8fSKXNEtBA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Message;
+
+# 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::Message
+
+=cut
+
+__PACKAGE__->table("messages");
+
+=head1 ACCESSORS
+
+=head2 message_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 message_type
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 1
+
+=head2 message
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 message_date
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "message_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "message_type",
+ { data_type => "varchar", is_nullable => 0, size => 1 },
+ "message",
+ { data_type => "text", is_nullable => 0 },
+ "message_date",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__PACKAGE__->set_primary_key("message_id");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEt+ILa1HzB4aXmXkk8XXg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MessageAttribute;
+
+# 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::MessageAttribute
+
+=cut
+
+__PACKAGE__->table("message_attributes");
+
+=head1 ACCESSORS
+
+=head2 message_attribute_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 message_name
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 40
+
+=head2 takes_days
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "message_attribute_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "message_name",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
+ "takes_days",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("message_attribute_id");
+__PACKAGE__->add_unique_constraint("message_name", ["message_name"]);
+
+=head1 RELATIONS
+
+=head2 borrower_message_preferences
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_message_preferences",
+ "Koha::Schema::Result::BorrowerMessagePreference",
+ { "foreign.message_attribute_id" => "self.message_attribute_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_transports
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MessageTransport>
+
+=cut
+
+__PACKAGE__->has_many(
+ "message_transports",
+ "Koha::Schema::Result::MessageTransport",
+ { "foreign.message_attribute_id" => "self.message_attribute_id" },
+ { 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:nJqtM1tc/ouojD5I8+qg0A
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MessageQueue;
+
+# 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::MessageQueue
+
+=cut
+
+__PACKAGE__->table("message_queue");
+
+=head1 ACCESSORS
+
+=head2 message_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 subject
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 content
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 metadata
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 letter_code
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 64
+
+=head2 message_transport_type
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 20
+
+=head2 status
+
+ data_type: 'enum'
+ default_value: 'pending'
+ extra: {list => ["sent","pending","failed","deleted"]}
+ is_nullable: 0
+
+=head2 time_queued
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 to_address
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 from_address
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 content_type
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "message_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "subject",
+ { data_type => "text", is_nullable => 1 },
+ "content",
+ { data_type => "text", is_nullable => 1 },
+ "metadata",
+ { data_type => "text", is_nullable => 1 },
+ "letter_code",
+ { data_type => "varchar", is_nullable => 1, size => 64 },
+ "message_transport_type",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
+ "status",
+ {
+ data_type => "enum",
+ default_value => "pending",
+ extra => { list => ["sent", "pending", "failed", "deleted"] },
+ is_nullable => 0,
+ },
+ "time_queued",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "to_address",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "from_address",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "content_type",
+ { data_type => "text", is_nullable => 1 },
+);
+
+=head1 RELATIONS
+
+=head2 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 message_transport_type
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MessageTransportType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "message_transport_type",
+ "Koha::Schema::Result::MessageTransportType",
+ { message_transport_type => "message_transport_type" },
+ { 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:kcpiO2MjqoETlnMyCBhP6Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MessageTransport;
+
+# 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::MessageTransport
+
+=cut
+
+__PACKAGE__->table("message_transports");
+
+=head1 ACCESSORS
+
+=head2 message_attribute_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 message_transport_type
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 20
+
+=head2 is_digest
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 letter_module
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 20
+
+=head2 letter_code
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 20
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "message_attribute_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "message_transport_type",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
+ "is_digest",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "letter_module",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 20,
+ },
+ "letter_code",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 20,
+ },
+ "branchcode",
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
+);
+__PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest");
+
+=head1 RELATIONS
+
+=head2 message_attribute
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MessageAttribute>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "message_attribute",
+ "Koha::Schema::Result::MessageAttribute",
+ { message_attribute_id => "message_attribute_id" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 message_transport_type
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::MessageTransportType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "message_transport_type",
+ "Koha::Schema::Result::MessageTransportType",
+ { message_transport_type => "message_transport_type" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 letter
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Letter>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "letter",
+ "Koha::Schema::Result::Letter",
+ {
+ branchcode => "branchcode",
+ code => "letter_code",
+ module => "letter_module",
+ },
+ { 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:erQZqSSp25HrYkWlHaaF9g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::MessageTransportType;
+
+# 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::MessageTransportType
+
+=cut
+
+__PACKAGE__->table("message_transport_types");
+
+=head1 ACCESSORS
+
+=head2 message_transport_type
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "message_transport_type",
+ { data_type => "varchar", is_nullable => 0, size => 20 },
+);
+__PACKAGE__->set_primary_key("message_transport_type");
+
+=head1 RELATIONS
+
+=head2 borrower_message_transport_preferences
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
+
+=cut
+
+__PACKAGE__->has_many(
+ "borrower_message_transport_preferences",
+ "Koha::Schema::Result::BorrowerMessageTransportPreference",
+ {
+ "foreign.message_transport_type" => "self.message_transport_type",
+ },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_queues
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MessageQueue>
+
+=cut
+
+__PACKAGE__->has_many(
+ "message_queues",
+ "Koha::Schema::Result::MessageQueue",
+ {
+ "foreign.message_transport_type" => "self.message_transport_type",
+ },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_transports
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::MessageTransport>
+
+=cut
+
+__PACKAGE__->has_many(
+ "message_transports",
+ "Koha::Schema::Result::MessageTransport",
+ {
+ "foreign.message_transport_type" => "self.message_transport_type",
+ },
+ { 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:mEnlVv5CZ+YeZCHiOlk45g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::NeedMergeAuthority;
+
+# 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::NeedMergeAuthority
+
+=cut
+
+__PACKAGE__->table("need_merge_authorities");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 authid
+
+ data_type: 'bigint'
+ is_nullable: 0
+
+=head2 done
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "authid",
+ { data_type => "bigint", is_nullable => 0 },
+ "done",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+);
+__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:8PCvOl9x3QoD3aqi9CCBwA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Notify;
+
+# 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::Notify
+
+=cut
+
+__PACKAGE__->table("notifys");
+
+=head1 ACCESSORS
+
+=head2 notify_id
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 notify_date
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 notify_send_date
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 notify_level
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 method
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "notify_id",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "itemnumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "notify_date",
+ { data_type => "date", is_nullable => 1 },
+ "notify_send_date",
+ { data_type => "date", is_nullable => 1 },
+ "notify_level",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "method",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ldEIateKiL5a9392TykxWA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Nozebra;
+
+# 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::Nozebra
+
+=cut
+
+__PACKAGE__->table("nozebra");
+
+=head1 ACCESSORS
+
+=head2 server
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 20
+
+=head2 indexname
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 40
+
+=head2 value
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 250
+
+=head2 biblionumbers
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "server",
+ { data_type => "varchar", is_nullable => 0, size => 20 },
+ "indexname",
+ { data_type => "varchar", is_nullable => 0, size => 40 },
+ "value",
+ { data_type => "varchar", is_nullable => 0, size => 250 },
+ "biblionumbers",
+ { data_type => "longtext", 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:HEbJLtO1Tpyvy9/w8dnS2w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OaiSet;
+
+# 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::OaiSet
+
+=cut
+
+__PACKAGE__->table("oai_sets");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 spec
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 80
+
+=head2 name
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 80
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "spec",
+ { data_type => "varchar", is_nullable => 0, size => 80 },
+ "name",
+ { data_type => "varchar", is_nullable => 0, size => 80 },
+);
+__PACKAGE__->set_primary_key("id");
+__PACKAGE__->add_unique_constraint("spec", ["spec"]);
+
+=head1 RELATIONS
+
+=head2 oai_sets_biblios
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OaiSetsBiblio>
+
+=cut
+
+__PACKAGE__->has_many(
+ "oai_sets_biblios",
+ "Koha::Schema::Result::OaiSetsBiblio",
+ { "foreign.set_id" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 oai_sets_descriptions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OaiSetsDescription>
+
+=cut
+
+__PACKAGE__->has_many(
+ "oai_sets_descriptions",
+ "Koha::Schema::Result::OaiSetsDescription",
+ { "foreign.set_id" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 oai_sets_mappings
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OaiSetsMapping>
+
+=cut
+
+__PACKAGE__->has_many(
+ "oai_sets_mappings",
+ "Koha::Schema::Result::OaiSetsMapping",
+ { "foreign.set_id" => "self.id" },
+ { 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:HbNoD2MpVTh5RyvbUZYizA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OaiSetsBiblio;
+
+# 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::OaiSetsBiblio
+
+=cut
+
+__PACKAGE__->table("oai_sets_biblios");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 set_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "set_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("biblionumber", "set_id");
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 set
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::OaiSet>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "set",
+ "Koha::Schema::Result::OaiSet",
+ { id => "set_id" },
+ { 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:UkR8n4x6yZOGCMP10KvnRg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OaiSetsDescription;
+
+# 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::OaiSetsDescription
+
+=cut
+
+__PACKAGE__->table("oai_sets_descriptions");
+
+=head1 ACCESSORS
+
+=head2 set_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "set_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "description",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+);
+
+=head1 RELATIONS
+
+=head2 set
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::OaiSet>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "set",
+ "Koha::Schema::Result::OaiSet",
+ { id => "set_id" },
+ { 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:aOzHC9btK44D6oF9qhpidQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OaiSetsMapping;
+
+# 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::OaiSetsMapping
+
+=cut
+
+__PACKAGE__->table("oai_sets_mappings");
+
+=head1 ACCESSORS
+
+=head2 set_id
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 marcfield
+
+ data_type: 'char'
+ is_nullable: 0
+ size: 3
+
+=head2 marcsubfield
+
+ data_type: 'char'
+ is_nullable: 0
+ size: 1
+
+=head2 marcvalue
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 80
+
+=cut
+
+__PACKAGE__->add_columns(
+ "set_id",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "marcfield",
+ { data_type => "char", is_nullable => 0, size => 3 },
+ "marcsubfield",
+ { data_type => "char", is_nullable => 0, size => 1 },
+ "marcvalue",
+ { data_type => "varchar", is_nullable => 0, size => 80 },
+);
+
+=head1 RELATIONS
+
+=head2 set
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::OaiSet>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "set",
+ "Koha::Schema::Result::OaiSet",
+ { id => "set_id" },
+ { 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:vWEr0nzPAHZAmjsA2NAaQQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OldIssue;
+
+# 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::OldIssue
+
+=cut
+
+__PACKAGE__->table("old_issues");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 date_due
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 issuingbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 18
+
+=head2 returndate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 lastreneweddate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 return
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 4
+
+=head2 renewals
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 issuedate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "date_due",
+ { data_type => "datetime", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "issuingbranch",
+ { data_type => "varchar", is_nullable => 1, size => 18 },
+ "returndate",
+ { data_type => "datetime", is_nullable => 1 },
+ "lastreneweddate",
+ { data_type => "datetime", is_nullable => 1 },
+ "return",
+ { data_type => "varchar", is_nullable => 1, size => 4 },
+ "renewals",
+ { data_type => "tinyint", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "issuedate",
+ { data_type => "datetime", is_nullable => 1 },
+);
+
+=head1 RELATIONS
+
+=head2 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { 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" },
+ { 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:OmCAF2QYzR59eHr1w51seA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OldReserve;
+
+# 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::OldReserve
+
+=cut
+
+__PACKAGE__->table("old_reserves");
+
+=head1 ACCESSORS
+
+=head2 reserve_id
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 reservedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 constrainttype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 notificationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 reminderdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 cancellationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 reservenotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 priority
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 found
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 waitingdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 expirationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 lowestpriority
+
+ data_type: 'tinyint'
+ is_nullable: 0
+
+=head2 suspend
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 suspend_until
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "reserve_id",
+ { data_type => "integer", is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "reservedate",
+ { data_type => "date", is_nullable => 1 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "constrainttype",
+ { data_type => "varchar", is_nullable => 1, size => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "notificationdate",
+ { data_type => "date", is_nullable => 1 },
+ "reminderdate",
+ { data_type => "date", is_nullable => 1 },
+ "cancellationdate",
+ { data_type => "date", is_nullable => 1 },
+ "reservenotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "priority",
+ { data_type => "smallint", is_nullable => 1 },
+ "found",
+ { data_type => "varchar", is_nullable => 1, size => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "waitingdate",
+ { data_type => "date", is_nullable => 1 },
+ "expirationdate",
+ { data_type => "date", is_nullable => 1 },
+ "lowestpriority",
+ { data_type => "tinyint", is_nullable => 0 },
+ "suspend",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "suspend_until",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("reserve_id");
+
+=head1 RELATIONS
+
+=head2 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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" },
+ { 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:1b1FcIuOJ5ZRU2apc6swkQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::OpacNews;
+
+# 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::OpacNews
+
+=cut
+
+__PACKAGE__->table("opac_news");
+
+=head1 ACCESSORS
+
+=head2 idnew
+
+ data_type: 'integer'
+ extra: {unsigned => 1}
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 title
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 250
+
+=head2 new
+
+ accessor: undef
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 lang
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 25
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 expirationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 number
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "idnew",
+ {
+ data_type => "integer",
+ extra => { unsigned => 1 },
+ is_auto_increment => 1,
+ is_nullable => 0,
+ },
+ "title",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
+ "new",
+ { accessor => undef, data_type => "text", is_nullable => 0 },
+ "lang",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "expirationdate",
+ { data_type => "date", is_nullable => 1 },
+ "number",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("idnew");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8SrbfmWUXmR8I47YLpPUrQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Overduerule;
+
+# 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::Overduerule
+
+=cut
+
+__PACKAGE__->table("overduerules");
+
+=head1 ACCESSORS
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 categorycode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 delay1
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 letter1
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 debarred1
+
+ data_type: 'varchar'
+ default_value: 0
+ is_nullable: 1
+ size: 1
+
+=head2 delay2
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 debarred2
+
+ data_type: 'varchar'
+ default_value: 0
+ is_nullable: 1
+ size: 1
+
+=head2 letter2
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 delay3
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 letter3
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 debarred3
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "categorycode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "delay1",
+ { data_type => "integer", is_nullable => 1 },
+ "letter1",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "debarred1",
+ { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
+ "delay2",
+ { data_type => "integer", is_nullable => 1 },
+ "debarred2",
+ { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 },
+ "letter2",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "delay3",
+ { data_type => "integer", is_nullable => 1 },
+ "letter3",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "debarred3",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("branchcode", "categorycode");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+T3rLwxGA8EmTYnW2sbxQA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Patroncard;
+
+# 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::Patroncard
+
+=cut
+
+__PACKAGE__->table("patroncards");
+
+=head1 ACCESSORS
+
+=head2 cardid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 batch_id
+
+ data_type: 'varchar'
+ default_value: 1
+ is_nullable: 0
+ size: 10
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "cardid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "batch_id",
+ { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__PACKAGE__->set_primary_key("cardid");
+
+=head1 RELATIONS
+
+=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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/bNxn2Ca/bwRUjZjkoYBg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Patronimage;
+
+# 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::Patronimage
+
+=cut
+
+__PACKAGE__->table("patronimage");
+
+=head1 ACCESSORS
+
+=head2 cardnumber
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 16
+
+=head2 mimetype
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 15
+
+=head2 imagefile
+
+ data_type: 'mediumblob'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "cardnumber",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 16 },
+ "mimetype",
+ { data_type => "varchar", is_nullable => 0, size => 15 },
+ "imagefile",
+ { data_type => "mediumblob", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("cardnumber");
+
+=head1 RELATIONS
+
+=head2 cardnumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "cardnumber",
+ "Koha::Schema::Result::Borrower",
+ { cardnumber => "cardnumber" },
+ { 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:uUZssek71kRNmlil85374w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::PendingOfflineOperation;
+
+# 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::PendingOfflineOperation
+
+=cut
+
+__PACKAGE__->table("pending_offline_operations");
+
+=head1 ACCESSORS
+
+=head2 operationid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 userid
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 30
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 action
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 10
+
+=head2 barcode
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 20
+
+=head2 cardnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=cut
+
+__PACKAGE__->add_columns(
+ "operationid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "userid",
+ { data_type => "varchar", is_nullable => 0, size => 30 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "action",
+ { data_type => "varchar", is_nullable => 0, size => 10 },
+ "barcode",
+ { data_type => "varchar", is_nullable => 0, size => 20 },
+ "cardnumber",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Permission;
+
+# 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::Permission
+
+=cut
+
+__PACKAGE__->table("permissions");
+
+=head1 ACCESSORS
+
+=head2 module_bit
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 code
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 64
+
+=head2 description
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "module_bit",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "code",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 },
+ "description",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+);
+__PACKAGE__->set_primary_key("module_bit", "code");
+
+=head1 RELATIONS
+
+=head2 module_bit
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Userflag>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "module_bit",
+ "Koha::Schema::Result::Userflag",
+ { bit => "module_bit" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 user_permissions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::UserPermission>
+
+=cut
+
+__PACKAGE__->has_many(
+ "user_permissions",
+ "Koha::Schema::Result::UserPermission",
+ {
+ "foreign.code" => "self.code",
+ "foreign.module_bit" => "self.module_bit",
+ },
+ { 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:7SlWDbIpDYaLcMUnNAH0tA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Printer;
+
+# 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::Printer
+
+=cut
+
+__PACKAGE__->table("printers");
+
+=head1 ACCESSORS
+
+=head2 printername
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 40
+
+=head2 printqueue
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 printtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "printername",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
+ "printqueue",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "printtype",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+);
+__PACKAGE__->set_primary_key("printername");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p7tep/srWDawkdyyilJbOw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::PrintersProfile;
+
+# 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::PrintersProfile
+
+=cut
+
+__PACKAGE__->table("printers_profile");
+
+=head1 ACCESSORS
+
+=head2 profile_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 printer_name
+
+ data_type: 'varchar'
+ default_value: 'Default Printer'
+ is_nullable: 0
+ size: 40
+
+=head2 template_id
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 paper_bin
+
+ data_type: 'varchar'
+ default_value: 'Bypass'
+ is_nullable: 0
+ size: 20
+
+=head2 offset_horz
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 offset_vert
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 creep_horz
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 creep_vert
+
+ data_type: 'float'
+ default_value: 0
+ is_nullable: 0
+
+=head2 units
+
+ data_type: 'char'
+ default_value: 'POINT'
+ is_nullable: 0
+ size: 20
+
+=head2 creator
+
+ data_type: 'char'
+ default_value: 'Labels'
+ is_nullable: 0
+ size: 15
+
+=cut
+
+__PACKAGE__->add_columns(
+ "profile_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "printer_name",
+ {
+ data_type => "varchar",
+ default_value => "Default Printer",
+ is_nullable => 0,
+ size => 40,
+ },
+ "template_id",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "paper_bin",
+ {
+ data_type => "varchar",
+ default_value => "Bypass",
+ is_nullable => 0,
+ size => 20,
+ },
+ "offset_horz",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "offset_vert",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "creep_horz",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "creep_vert",
+ { data_type => "float", default_value => 0, is_nullable => 0 },
+ "units",
+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
+ "creator",
+ {
+ data_type => "char",
+ default_value => "Labels",
+ is_nullable => 0,
+ size => 15,
+ },
+);
+__PACKAGE__->set_primary_key("profile_id");
+__PACKAGE__->add_unique_constraint(
+ "printername",
+ ["printer_name", "template_id", "paper_bin", "creator"],
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1hyMy9lC23Te5l2gW++DVA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Quote;
+
+# 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::Quote
+
+=cut
+
+__PACKAGE__->table("quotes");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 source
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 text
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 timestamp
+
+ data_type: 'datetime'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "source",
+ { data_type => "text", is_nullable => 1 },
+ "text",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "timestamp",
+ { data_type => "datetime", is_nullable => 0 },
+);
+__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:hvVwAMhaq9dIxuEMbWPNZA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Rating;
+
+# 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::Rating
+
+=cut
+
+__PACKAGE__->table("ratings");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 rating_value
+
+ data_type: 'tinyint'
+ is_nullable: 0
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "rating_value",
+ { data_type => "tinyint", is_nullable => 0 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__PACKAGE__->set_primary_key("borrowernumber", "biblionumber");
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "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:oLsBtL2RwbArN1s9DYlrow
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::RepeatableHoliday;
+
+# 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::RepeatableHoliday
+
+=cut
+
+__PACKAGE__->table("repeatable_holidays");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 weekday
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 day
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 month
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 title
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 50
+
+=head2 description
+
+ data_type: 'text'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "weekday",
+ { data_type => "smallint", is_nullable => 1 },
+ "day",
+ { data_type => "smallint", is_nullable => 1 },
+ "month",
+ { data_type => "smallint", is_nullable => 1 },
+ "title",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
+ "description",
+ { data_type => "text", is_nullable => 0 },
+);
+__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:9CaAbUmcE7O8TT5NZivX1Q
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ReportsDictionary;
+
+# 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::ReportsDictionary
+
+=cut
+
+__PACKAGE__->table("reports_dictionary");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 description
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 date_created
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 date_modified
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 saved_sql
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 report_area
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 6
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "name",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "description",
+ { data_type => "text", is_nullable => 1 },
+ "date_created",
+ { data_type => "datetime", is_nullable => 1 },
+ "date_modified",
+ { data_type => "datetime", is_nullable => 1 },
+ "saved_sql",
+ { data_type => "text", is_nullable => 1 },
+ "report_area",
+ { data_type => "varchar", is_nullable => 1, size => 6 },
+);
+__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:Ko3D4HyI5Uspi17YOtowbQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Reserve;
+
+# 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::Reserve
+
+=cut
+
+__PACKAGE__->table("reserves");
+
+=head1 ACCESSORS
+
+=head2 reserve_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 reservedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 constrainttype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 10
+
+=head2 notificationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 reminderdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 cancellationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 reservenotes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 priority
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 found
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 waitingdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 expirationdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 lowestpriority
+
+ data_type: 'tinyint'
+ is_nullable: 0
+
+=head2 suspend
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 suspend_until
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "reserve_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "reservedate",
+ { data_type => "date", is_nullable => 1 },
+ "biblionumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "constrainttype",
+ { data_type => "varchar", is_nullable => 1, size => 1 },
+ "branchcode",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+ "notificationdate",
+ { data_type => "date", is_nullable => 1 },
+ "reminderdate",
+ { data_type => "date", is_nullable => 1 },
+ "cancellationdate",
+ { data_type => "date", is_nullable => 1 },
+ "reservenotes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "priority",
+ { data_type => "smallint", is_nullable => 1 },
+ "found",
+ { data_type => "varchar", is_nullable => 1, size => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "waitingdate",
+ { data_type => "date", is_nullable => 1 },
+ "expirationdate",
+ { data_type => "date", is_nullable => 1 },
+ "lowestpriority",
+ { data_type => "tinyint", is_nullable => 0 },
+ "suspend",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "suspend_until",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("reserve_id");
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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" },
+ { 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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8kr13IjL7oHVHRXQzTReA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Reserveconstraint;
+
+# 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::Reserveconstraint
+
+=cut
+
+__PACKAGE__->table("reserveconstraints");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 reservedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 biblioitemnumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 timestamp
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "reservedate",
+ { data_type => "date", is_nullable => 1 },
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "biblioitemnumber",
+ { data_type => "integer", is_nullable => 1 },
+ "timestamp",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ 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:yniuV8y2QVTDUjDCz/Y3Sg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Review;
+
+# 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::Review
+
+=cut
+
+__PACKAGE__->table("reviews");
+
+=head1 ACCESSORS
+
+=head2 reviewid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 review
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 approved
+
+ data_type: 'tinyint'
+ is_nullable: 1
+
+=head2 datereviewed
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "reviewid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "review",
+ { data_type => "text", is_nullable => 1 },
+ "approved",
+ { data_type => "tinyint", is_nullable => 1 },
+ "datereviewed",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("reviewid");
+
+=head1 RELATIONS
+
+=head2 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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:Wh7pS4fMj7YtJDl6GJ94lA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Roadtype;
+
+# 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::Roadtype
+
+=cut
+
+__PACKAGE__->table("roadtype");
+
+=head1 ACCESSORS
+
+=head2 roadtypeid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 road_type
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=cut
+
+__PACKAGE__->add_columns(
+ "roadtypeid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "road_type",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+);
+__PACKAGE__->set_primary_key("roadtypeid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wy1V1m2xfTm4hD+FLRHh/g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::SavedReport;
+
+# 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::SavedReport
+
+=cut
+
+__PACKAGE__->table("saved_reports");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 report_id
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 report
+
+ data_type: 'longtext'
+ is_nullable: 1
+
+=head2 date_run
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "report_id",
+ { data_type => "integer", is_nullable => 1 },
+ "report",
+ { data_type => "longtext", is_nullable => 1 },
+ "date_run",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__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:sChe1C7Uh2kfpYP40UItJQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::SavedSql;
+
+# 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::SavedSql
+
+=cut
+
+__PACKAGE__->table("saved_sql");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 date_created
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 last_modified
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 savedsql
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 last_run
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 report_name
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 type
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 notes
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 cache_expiry
+
+ data_type: 'integer'
+ default_value: 300
+ is_nullable: 0
+
+=head2 public
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 report_area
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 6
+
+=head2 report_group
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 report_subgroup
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_nullable => 1 },
+ "date_created",
+ { data_type => "datetime", is_nullable => 1 },
+ "last_modified",
+ { data_type => "datetime", is_nullable => 1 },
+ "savedsql",
+ { data_type => "text", is_nullable => 1 },
+ "last_run",
+ { data_type => "datetime", is_nullable => 1 },
+ "report_name",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "type",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "notes",
+ { data_type => "text", is_nullable => 1 },
+ "cache_expiry",
+ { data_type => "integer", default_value => 300, is_nullable => 0 },
+ "public",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "report_area",
+ { data_type => "varchar", is_nullable => 1, size => 6 },
+ "report_group",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "report_subgroup",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+);
+__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:1R30mLFqauqtbEo86gnInw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::SearchHistory;
+
+# 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::SearchHistory
+
+=cut
+
+__PACKAGE__->table("search_history");
+
+=head1 ACCESSORS
+
+=head2 userid
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 sessionid
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 32
+
+=head2 query_desc
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 query_cgi
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 total
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 time
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "userid",
+ { data_type => "integer", is_nullable => 0 },
+ "sessionid",
+ { data_type => "varchar", is_nullable => 0, size => 32 },
+ "query_desc",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "query_cgi",
+ { data_type => "text", is_nullable => 0 },
+ "total",
+ { data_type => "integer", is_nullable => 0 },
+ "time",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ 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:drsMVfTISlgQofUC0W7btg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Serial;
+
+# 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::Serial
+
+=cut
+
+__PACKAGE__->table("serial");
+
+=head1 ACCESSORS
+
+=head2 serialid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 subscriptionid
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 serialseq
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 status
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 planneddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 notes
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 publisheddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 itemnumber
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 claimdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 routingnotes
+
+ data_type: 'text'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "serialid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "subscriptionid",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "serialseq",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "status",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "planneddate",
+ { data_type => "date", is_nullable => 1 },
+ "notes",
+ { 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",
+ { data_type => "text", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("serialid");
+
+=head1 RELATIONS
+
+=head2 serialitems
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Serialitem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "serialitems",
+ "Koha::Schema::Result::Serialitem",
+ { "foreign.serialid" => "self.serialid" },
+ { 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:PqzibMlED9bg0uOONSBnmg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Serialitem;
+
+# 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::Serialitem
+
+=cut
+
+__PACKAGE__->table("serialitems");
+
+=head1 ACCESSORS
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 serialid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "itemnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "serialid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]);
+
+=head1 RELATIONS
+
+=head2 serialid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Serial>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "serialid",
+ "Koha::Schema::Result::Serial",
+ { serialid => "serialid" },
+ { 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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A1aGwJJeHrbyhAAtZkFl7g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::ServicesThrottle;
+
+# 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::ServicesThrottle
+
+=cut
+
+__PACKAGE__->table("services_throttle");
+
+=head1 ACCESSORS
+
+=head2 service_type
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 service_count
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 45
+
+=cut
+
+__PACKAGE__->add_columns(
+ "service_type",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "service_count",
+ { data_type => "varchar", is_nullable => 1, size => 45 },
+);
+__PACKAGE__->set_primary_key("service_type");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7zRTP55443DiLZKCWNjYug
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Session;
+
+# 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::Session
+
+=cut
+
+__PACKAGE__->table("sessions");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 32
+
+=head2 a_session
+
+ data_type: 'text'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "varchar", is_nullable => 0, size => 32 },
+ "a_session",
+ { data_type => "text", is_nullable => 0 },
+);
+__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:WGXVdUE5P5R+omVu4a+t/g
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::SocialData;
+
+# 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::SocialData
+
+=cut
+
+__PACKAGE__->table("social_data");
+
+=head1 ACCESSORS
+
+=head2 isbn
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 30
+
+=head2 num_critics
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 num_critics_pro
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 num_quotations
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 num_videos
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 score_avg
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [5,2]
+
+=head2 num_scores
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "isbn",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
+ "num_critics",
+ { data_type => "integer", is_nullable => 1 },
+ "num_critics_pro",
+ { data_type => "integer", is_nullable => 1 },
+ "num_quotations",
+ { data_type => "integer", is_nullable => 1 },
+ "num_videos",
+ { data_type => "integer", is_nullable => 1 },
+ "score_avg",
+ { data_type => "decimal", is_nullable => 1, size => [5, 2] },
+ "num_scores",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("isbn");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jj5Z4o+iItaaMj9+9ZptTg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::SpecialHoliday;
+
+# 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::SpecialHoliday
+
+=cut
+
+__PACKAGE__->table("special_holidays");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 day
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 month
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 year
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 isexception
+
+ data_type: 'smallint'
+ default_value: 1
+ is_nullable: 0
+
+=head2 title
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 50
+
+=head2 description
+
+ data_type: 'text'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "day",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "month",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "year",
+ { data_type => "smallint", default_value => 0, is_nullable => 0 },
+ "isexception",
+ { data_type => "smallint", default_value => 1, is_nullable => 0 },
+ "title",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
+ "description",
+ { data_type => "text", is_nullable => 0 },
+);
+__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:IhSBoiyihNmEgIVcGbwZRg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Statistic;
+
+# 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::Statistic
+
+=cut
+
+__PACKAGE__->table("statistics");
+
+=head1 ACCESSORS
+
+=head2 datetime
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 branch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 proccode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 4
+
+=head2 value
+
+ data_type: 'double precision'
+ is_nullable: 1
+ size: [16,4]
+
+=head2 type
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=head2 other
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 usercode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 associatedborrower
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 ccode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=cut
+
+__PACKAGE__->add_columns(
+ "datetime",
+ { data_type => "datetime", is_nullable => 1 },
+ "branch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "proccode",
+ { data_type => "varchar", is_nullable => 1, size => 4 },
+ "value",
+ { data_type => "double precision", is_nullable => 1, size => [16, 4] },
+ "type",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+ "other",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "usercode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "itemnumber",
+ { data_type => "integer", is_nullable => 1 },
+ "itemtype",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "borrowernumber",
+ { data_type => "integer", is_nullable => 1 },
+ "associatedborrower",
+ { data_type => "integer", is_nullable => 1 },
+ "ccode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JYb2c/mWBks4WwV/WDm5RA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Stopword;
+
+# 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::Stopword
+
+=cut
+
+__PACKAGE__->table("stopwords");
+
+=head1 ACCESSORS
+
+=head2 word
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=cut
+
+__PACKAGE__->add_columns(
+ "word",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0iOCRqsG2oTw6Djq2O/6+w
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Subscription;
+
+# 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::Subscription
+
+=cut
+
+__PACKAGE__->table("subscription");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 subscriptionid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 librarian
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 1
+ size: 100
+
+=head2 startdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 aqbooksellerid
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 cost
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 aqbudgetid
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 weeklength
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 monthlength
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 numberlength
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 periodicity
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 dow
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 1
+ size: 100
+
+=head2 numberingmethod
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 1
+ size: 100
+
+=head2 notes
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 status
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 100
+
+=head2 add1
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 every1
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 whenmorethan1
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 setto1
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 lastvalue1
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 add2
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 every2
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 whenmorethan2
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 setto2
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 lastvalue2
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 add3
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 every3
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 innerloop1
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 innerloop2
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 innerloop3
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 whenmorethan3
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 1
+
+=head2 setto3
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 lastvalue3
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 issuesatonce
+
+ data_type: 'tinyint'
+ default_value: 1
+ is_nullable: 0
+
+=head2 firstacquidate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 manualhistory
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 irregularity
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 letter
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 numberpattern
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 distributedto
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 internalnotes
+
+ data_type: 'longtext'
+ is_nullable: 1
+
+=head2 callnumber
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 location
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 1
+ size: 80
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 hemisphere
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 lastbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 serialsadditems
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=head2 staffdisplaycount
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 opacdisplaycount
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 graceperiod
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 enddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "subscriptionid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "librarian",
+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
+ "startdate",
+ { data_type => "date", is_nullable => 1 },
+ "aqbooksellerid",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "cost",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "aqbudgetid",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "weeklength",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "monthlength",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "numberlength",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "periodicity",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "dow",
+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
+ "numberingmethod",
+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
+ "notes",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "status",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
+ "add1",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "every1",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "whenmorethan1",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "setto1",
+ { data_type => "integer", is_nullable => 1 },
+ "lastvalue1",
+ { data_type => "integer", is_nullable => 1 },
+ "add2",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "every2",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "whenmorethan2",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "setto2",
+ { data_type => "integer", is_nullable => 1 },
+ "lastvalue2",
+ { data_type => "integer", is_nullable => 1 },
+ "add3",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "every3",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "innerloop1",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "innerloop2",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "innerloop3",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "whenmorethan3",
+ { data_type => "integer", default_value => 0, is_nullable => 1 },
+ "setto3",
+ { data_type => "integer", is_nullable => 1 },
+ "lastvalue3",
+ { data_type => "integer", is_nullable => 1 },
+ "issuesatonce",
+ { data_type => "tinyint", default_value => 1, is_nullable => 0 },
+ "firstacquidate",
+ { data_type => "date", is_nullable => 1 },
+ "manualhistory",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "irregularity",
+ { data_type => "text", is_nullable => 1 },
+ "letter",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "numberpattern",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "distributedto",
+ { data_type => "text", is_nullable => 1 },
+ "internalnotes",
+ { data_type => "longtext", is_nullable => 1 },
+ "callnumber",
+ { data_type => "text", is_nullable => 1 },
+ "location",
+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
+ "branchcode",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "hemisphere",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "lastbranch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "serialsadditems",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+ "staffdisplaycount",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "opacdisplaycount",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "graceperiod",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "enddate",
+ { data_type => "date", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("subscriptionid");
+
+=head1 RELATIONS
+
+=head2 subscriptionroutinglists
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
+
+=cut
+
+__PACKAGE__->has_many(
+ "subscriptionroutinglists",
+ "Koha::Schema::Result::Subscriptionroutinglist",
+ { "foreign.subscriptionid" => "self.subscriptionid" },
+ { 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:V94nwW1uwvdVX634/QPe6A
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Subscriptionhistory;
+
+# 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::Subscriptionhistory
+
+=cut
+
+__PACKAGE__->table("subscriptionhistory");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 subscriptionid
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 histstartdate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 histenddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 missinglist
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=head2 recievedlist
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=head2 opacnote
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 150
+
+=head2 librariannote
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 150
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "subscriptionid",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "histstartdate",
+ { data_type => "date", is_nullable => 1 },
+ "histenddate",
+ { data_type => "date", is_nullable => 1 },
+ "missinglist",
+ { data_type => "longtext", is_nullable => 0 },
+ "recievedlist",
+ { data_type => "longtext", is_nullable => 0 },
+ "opacnote",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
+ "librariannote",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
+);
+__PACKAGE__->set_primary_key("subscriptionid");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sAkoymtV5cqWuY1fJi/UXg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Subscriptionroutinglist;
+
+# 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::Subscriptionroutinglist
+
+=cut
+
+__PACKAGE__->table("subscriptionroutinglist");
+
+=head1 ACCESSORS
+
+=head2 routingid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 ranking
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 subscriptionid
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "routingid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "ranking",
+ { data_type => "integer", is_nullable => 1 },
+ "subscriptionid",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("routingid");
+__PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 subscriptionid
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Subscription>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "subscriptionid",
+ "Koha::Schema::Result::Subscription",
+ { subscriptionid => "subscriptionid" },
+ { 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:qzF+UEtZnlyDm5KBWgAODw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Suggestion;
+
+# 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::Suggestion
+
+=cut
+
+__PACKAGE__->table("suggestions");
+
+=head1 ACCESSORS
+
+=head2 suggestionid
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 suggestedby
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 suggesteddate
+
+ data_type: 'date'
+ default_value: '0000-00-00'
+ is_nullable: 0
+
+=head2 managedby
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 manageddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 acceptedby
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 accepteddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 rejectedby
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 rejecteddate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 status
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 10
+
+=head2 note
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 author
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 title
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 copyrightdate
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 publishercode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 date
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 volumedesc
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 publicationyear
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 place
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 isbn
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 mailoverseeing
+
+ data_type: 'smallint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 reason
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 patronreason
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 budgetid
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 branchcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 collectiontitle
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 itemtype
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 quantity
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 currency
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 3
+
+=head2 price
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 total
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=cut
+
+__PACKAGE__->add_columns(
+ "suggestionid",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "suggestedby",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "suggesteddate",
+ { data_type => "date", default_value => "0000-00-00", is_nullable => 0 },
+ "managedby",
+ { data_type => "integer", is_nullable => 1 },
+ "manageddate",
+ { data_type => "date", is_nullable => 1 },
+ "acceptedby",
+ { data_type => "integer", is_nullable => 1 },
+ "accepteddate",
+ { data_type => "date", is_nullable => 1 },
+ "rejectedby",
+ { data_type => "integer", is_nullable => 1 },
+ "rejecteddate",
+ { data_type => "date", is_nullable => 1 },
+ "status",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "note",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "author",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "title",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "copyrightdate",
+ { data_type => "smallint", is_nullable => 1 },
+ "publishercode",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "date",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "volumedesc",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "publicationyear",
+ { data_type => "smallint", default_value => 0, is_nullable => 1 },
+ "place",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "isbn",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "mailoverseeing",
+ { data_type => "smallint", default_value => 0, is_nullable => 1 },
+ "biblionumber",
+ { data_type => "integer", is_nullable => 1 },
+ "reason",
+ { data_type => "text", is_nullable => 1 },
+ "patronreason",
+ { data_type => "text", is_nullable => 1 },
+ "budgetid",
+ { data_type => "integer", is_nullable => 1 },
+ "branchcode",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "collectiontitle",
+ { data_type => "text", is_nullable => 1 },
+ "itemtype",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "quantity",
+ { data_type => "smallint", is_nullable => 1 },
+ "currency",
+ { data_type => "varchar", is_nullable => 1, size => 3 },
+ "price",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "total",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+);
+__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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Systempreference;
+
+# 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::Systempreference
+
+=cut
+
+__PACKAGE__->table("systempreferences");
+
+=head1 ACCESSORS
+
+=head2 variable
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 50
+
+=head2 value
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 options
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 explanation
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 type
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=cut
+
+__PACKAGE__->add_columns(
+ "variable",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
+ "value",
+ { data_type => "text", is_nullable => 1 },
+ "options",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "explanation",
+ { data_type => "text", is_nullable => 1 },
+ "type",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+);
+__PACKAGE__->set_primary_key("variable");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qx8G91nKoJnDCDAMLg0ZUg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Tag;
+
+# 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::Tag
+
+=cut
+
+__PACKAGE__->table("tags");
+
+=head1 ACCESSORS
+
+=head2 entry
+
+ data_type: 'varchar'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 255
+
+=head2 weight
+
+ data_type: 'bigint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "entry",
+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
+ "weight",
+ { data_type => "bigint", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("entry");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c4CkWGECpxog9RqQrxw1Gg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::TagAll;
+
+# 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::TagAll
+
+=cut
+
+__PACKAGE__->table("tags_all");
+
+=head1 ACCESSORS
+
+=head2 tag_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 term
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 language
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 date_created
+
+ data_type: 'datetime'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "tag_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "term",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "language",
+ { data_type => "integer", is_nullable => 1 },
+ "date_created",
+ { data_type => "datetime", is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("tag_id");
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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 @ 2012-09-02 08:44:15
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xdc0YzmHsXuuuUWfa1aRpg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::TagsApproval;
+
+# 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::TagsApproval
+
+=cut
+
+__PACKAGE__->table("tags_approval");
+
+=head1 ACCESSORS
+
+=head2 term
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=head2 approved
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 date_approved
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=head2 approved_by
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 weight_total
+
+ data_type: 'integer'
+ default_value: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "term",
+ { data_type => "varchar", is_nullable => 0, size => 255 },
+ "approved",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "date_approved",
+ { data_type => "datetime", is_nullable => 1 },
+ "approved_by",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "weight_total",
+ { data_type => "integer", default_value => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("term");
+
+=head1 RELATIONS
+
+=head2 approved_by
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "approved_by",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "approved_by" },
+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 tags_indexes
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::TagsIndex>
+
+=cut
+
+__PACKAGE__->has_many(
+ "tags_indexes",
+ "Koha::Schema::Result::TagsIndex",
+ { "foreign.term" => "self.term" },
+ { 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:0C4z7rRUg2mcdmdrUOGcYw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::TagsIndex;
+
+# 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::TagsIndex
+
+=cut
+
+__PACKAGE__->table("tags_index");
+
+=head1 ACCESSORS
+
+=head2 term
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 255
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 weight
+
+ data_type: 'integer'
+ default_value: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "term",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "weight",
+ { data_type => "integer", default_value => 1, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("term", "biblionumber");
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 term
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::TagsApproval>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "term",
+ "Koha::Schema::Result::TagsApproval",
+ { term => "term" },
+ { 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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::TmpHoldsqueue;
+
+# 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::TmpHoldsqueue
+
+=cut
+
+__PACKAGE__->table("tmp_holdsqueue");
+
+=head1 ACCESSORS
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 itemnumber
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 barcode
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 20
+
+=head2 surname
+
+ data_type: 'mediumtext'
+ is_nullable: 0
+
+=head2 firstname
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 phone
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 cardnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=head2 reservedate
+
+ data_type: 'date'
+ is_nullable: 1
+
+=head2 title
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 itemcallnumber
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 holdingbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 pickbranch
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 notes
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 item_level_request
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "biblionumber",
+ { data_type => "integer", is_nullable => 1 },
+ "itemnumber",
+ { data_type => "integer", is_nullable => 1 },
+ "barcode",
+ { data_type => "varchar", is_nullable => 1, size => 20 },
+ "surname",
+ { data_type => "mediumtext", is_nullable => 0 },
+ "firstname",
+ { data_type => "text", is_nullable => 1 },
+ "phone",
+ { data_type => "text", is_nullable => 1 },
+ "borrowernumber",
+ { data_type => "integer", is_nullable => 0 },
+ "cardnumber",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+ "reservedate",
+ { data_type => "date", is_nullable => 1 },
+ "title",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "itemcallnumber",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "holdingbranch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "pickbranch",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "notes",
+ { data_type => "text", is_nullable => 1 },
+ "item_level_request",
+ { data_type => "tinyint", default_value => 0, 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:uzRfXFE7Kjkoh5H5e1akEw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::TransportCost;
+
+# 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::TransportCost
+
+=cut
+
+__PACKAGE__->table("transport_cost");
+
+=head1 ACCESSORS
+
+=head2 frombranch
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 tobranch
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 0
+ size: 10
+
+=head2 cost
+
+ data_type: 'decimal'
+ is_nullable: 0
+ size: [6,2]
+
+=head2 disable_transfer
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "frombranch",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "tobranch",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
+ "cost",
+ { data_type => "decimal", is_nullable => 0, size => [6, 2] },
+ "disable_transfer",
+ { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+);
+__PACKAGE__->set_primary_key("frombranch", "tobranch");
+
+=head1 RELATIONS
+
+=head2 frombranch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "frombranch",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "frombranch" },
+ { on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+=head2 tobranch
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Branch>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "tobranch",
+ "Koha::Schema::Result::Branch",
+ { branchcode => "tobranch" },
+ { 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:xaYbVRwPFyhljmGybBzTqA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::UserPermission;
+
+# 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::UserPermission
+
+=cut
+
+__PACKAGE__->table("user_permissions");
+
+=head1 ACCESSORS
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 module_bit
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 code
+
+ data_type: 'varchar'
+ is_foreign_key: 1
+ is_nullable: 1
+ size: 64
+
+=cut
+
+__PACKAGE__->add_columns(
+ "borrowernumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "module_bit",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "code",
+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 },
+);
+
+=head1 RELATIONS
+
+=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" },
+);
+
+=head2 permission
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Permission>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "permission",
+ "Koha::Schema::Result::Permission",
+ { code => "code", module_bit => "module_bit" },
+ { 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:uj0+AqPSrddrRPjAEbeDUA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Userflag;
+
+# 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::Userflag
+
+=cut
+
+__PACKAGE__->table("userflags");
+
+=head1 ACCESSORS
+
+=head2 bit
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 flag
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 30
+
+=head2 flagdesc
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 defaulton
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "bit",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "flag",
+ { data_type => "varchar", is_nullable => 1, size => 30 },
+ "flagdesc",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "defaulton",
+ { data_type => "integer", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("bit");
+
+=head1 RELATIONS
+
+=head2 permissions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Permission>
+
+=cut
+
+__PACKAGE__->has_many(
+ "permissions",
+ "Koha::Schema::Result::Permission",
+ { "foreign.module_bit" => "self.bit" },
+ { 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:7eKK9jZ+GryvazfRyKOIBw
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Virtualshelfcontent;
+
+# 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::Virtualshelfcontent
+
+=cut
+
+__PACKAGE__->table("virtualshelfcontents");
+
+=head1 ACCESSORS
+
+=head2 shelfnumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ default_value: 0
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 flags
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 dateadded
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "shelfnumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "biblionumber",
+ {
+ data_type => "integer",
+ default_value => 0,
+ is_foreign_key => 1,
+ is_nullable => 0,
+ },
+ "flags",
+ { data_type => "integer", is_nullable => 1 },
+ "dateadded",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+);
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { 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" },
+ { 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
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Virtualshelfshare;
+
+# 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::Virtualshelfshare
+
+=cut
+
+__PACKAGE__->table("virtualshelfshares");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 shelfnumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 borrowernumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 invitekey
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 10
+
+=head2 sharedate
+
+ data_type: 'datetime'
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "shelfnumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "borrowernumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "invitekey",
+ { data_type => "varchar", is_nullable => 1, size => 10 },
+ "sharedate",
+ { data_type => "datetime", is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("id");
+
+=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 borrowernumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "borrowernumber",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "borrowernumber" },
+ { 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:wbmtFrbzS+jaFaiZRZ0uwg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Virtualshelve;
+
+# 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::Virtualshelve
+
+=cut
+
+__PACKAGE__->table("virtualshelves");
+
+=head1 ACCESSORS
+
+=head2 shelfnumber
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 shelfname
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 owner
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 1
+
+=head2 category
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 1
+
+=head2 sortfield
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 16
+
+=head2 lastmodified
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=head2 allow_add
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=head2 allow_delete_own
+
+ data_type: 'tinyint'
+ default_value: 1
+ is_nullable: 1
+
+=head2 allow_delete_other
+
+ data_type: 'tinyint'
+ default_value: 0
+ is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+ "shelfnumber",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "shelfname",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "owner",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
+ "category",
+ { data_type => "varchar", is_nullable => 1, size => 1 },
+ "sortfield",
+ { data_type => "varchar", is_nullable => 1, size => 16 },
+ "lastmodified",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+ "allow_add",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "allow_delete_own",
+ { data_type => "tinyint", default_value => 1, is_nullable => 1 },
+ "allow_delete_other",
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+);
+__PACKAGE__->set_primary_key("shelfnumber");
+
+=head1 RELATIONS
+
+=head2 virtualshelfcontents
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelfcontent>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelfcontents",
+ "Koha::Schema::Result::Virtualshelfcontent",
+ { "foreign.shelfnumber" => "self.shelfnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 virtualshelfshares
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Virtualshelfshare>
+
+=cut
+
+__PACKAGE__->has_many(
+ "virtualshelfshares",
+ "Koha::Schema::Result::Virtualshelfshare",
+ { "foreign.shelfnumber" => "self.shelfnumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 owner
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Borrower>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "owner",
+ "Koha::Schema::Result::Borrower",
+ { borrowernumber => "owner" },
+ { 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:GitYLGGw2F/bqc511p2oTg
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Z3950server;
+
+# 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::Z3950server
+
+=cut
+
+__PACKAGE__->table("z3950servers");
+
+=head1 ACCESSORS
+
+=head2 host
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 port
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 db
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 userid
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 password
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 255
+
+=head2 name
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 checked
+
+ data_type: 'smallint'
+ is_nullable: 1
+
+=head2 rank
+
+ data_type: 'integer'
+ is_nullable: 1
+
+=head2 syntax
+
+ data_type: 'varchar'
+ is_nullable: 1
+ size: 80
+
+=head2 timeout
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 icon
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 position
+
+ data_type: 'enum'
+ default_value: 'primary'
+ extra: {list => ["primary","secondary",""]}
+ is_nullable: 0
+
+=head2 type
+
+ data_type: 'enum'
+ default_value: 'zed'
+ extra: {list => ["zed","opensearch"]}
+ is_nullable: 0
+
+=head2 encoding
+
+ data_type: 'text'
+ is_nullable: 1
+
+=head2 description
+
+ data_type: 'text'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "host",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "port",
+ { data_type => "integer", is_nullable => 1 },
+ "db",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "userid",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "password",
+ { data_type => "varchar", is_nullable => 1, size => 255 },
+ "name",
+ { data_type => "mediumtext", is_nullable => 1 },
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "checked",
+ { data_type => "smallint", is_nullable => 1 },
+ "rank",
+ { data_type => "integer", is_nullable => 1 },
+ "syntax",
+ { data_type => "varchar", is_nullable => 1, size => 80 },
+ "timeout",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "icon",
+ { data_type => "text", is_nullable => 1 },
+ "position",
+ {
+ data_type => "enum",
+ default_value => "primary",
+ extra => { list => ["primary", "secondary", ""] },
+ is_nullable => 0,
+ },
+ "type",
+ {
+ data_type => "enum",
+ default_value => "zed",
+ extra => { list => ["zed", "opensearch"] },
+ is_nullable => 0,
+ },
+ "encoding",
+ { data_type => "text", is_nullable => 1 },
+ "description",
+ { data_type => "text", is_nullable => 0 },
+);
+__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:3D8BWcZZVQlK8zrPw4GTtQ
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
--- /dev/null
+package Koha::Schema::Result::Zebraqueue;
+
+# 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::Zebraqueue
+
+=cut
+
+__PACKAGE__->table("zebraqueue");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblio_auth_number
+
+ data_type: 'bigint'
+ default_value: 0
+ extra: {unsigned => 1}
+ is_nullable: 0
+
+=head2 operation
+
+ data_type: 'char'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=head2 server
+
+ data_type: 'char'
+ default_value: (empty string)
+ is_nullable: 0
+ size: 20
+
+=head2 done
+
+ data_type: 'integer'
+ default_value: 0
+ is_nullable: 0
+
+=head2 time
+
+ data_type: 'timestamp'
+ default_value: current_timestamp
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblio_auth_number",
+ {
+ data_type => "bigint",
+ default_value => 0,
+ extra => { unsigned => 1 },
+ is_nullable => 0,
+ },
+ "operation",
+ { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
+ "server",
+ { data_type => "char", default_value => "", is_nullable => 0, size => 20 },
+ "done",
+ { data_type => "integer", default_value => 0, is_nullable => 0 },
+ "time",
+ {
+ data_type => "timestamp",
+ default_value => \"current_timestamp",
+ is_nullable => 0,
+ },
+);
+__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:WrwJr7Op+i6ck0EwiBADCA
+
+
+# You can replace this text with custom content, and it will be preserved on regeneration
+1;
libdbd-mysql-perl,
libdbd-sqlite2-perl,
libdbi-perl,
+ libdbix-class-schema-loader-perl,
libdigest-sha-perl | perl,
libemail-date-perl,
libfile-path-perl | perl-modules,
libdbd-mysql-perl install
libdbd-sqlite2-perl install
libdbi-perl install
+libdbix-class-schema-loader-perl install
libemail-date-perl install
libgcrypt11 install
libgcrypt11-dev install
--- /dev/null
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use C4::Context;
+use DBIx::Class::Schema::Loader qw/ make_schema_at /;
+use Getopt::Long;
+
+my $path = "./";
+GetOptions(
+ "path=s" => \$path,
+ );
+my $context = new C4::Context;
+my $db_driver;
+if ($context->config("db_scheme")){
+ $db_driver=C4::Context->db_scheme2dbi($context->config("db_scheme"));
+}else{
+ $db_driver="mysql";
+}
+
+
+my $db_name = $context->config("database");
+my $db_host = $context->config("hostname");
+my $db_port = $context->config("port") || '';
+my $db_user = $context->config("user");
+my $db_passwd = $context->config("pass");
+
+make_schema_at("Koha::Schema", {debug => 1, dump_directory => $path}, ["DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",$db_user, $db_passwd ]);
--- /dev/null
+#!/usr/bin/perl
+use strict;
+use warnings;
+use DBI;
+use Test::More tests => 1;
+use Test::MockModule;
+
+BEGIN {
+ use_ok('C4::Context');
+}