From 55db8f1bbea951ef9d8da697e323fdcc19028212 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Mon, 11 Jun 2012 15:43:24 +0200 Subject: [PATCH] DBIx::Class 1st step: the schema This DBIx::Class schema has been generated using perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:.Koha -e 'make_schema_at("temp::Schema", { debug => 1 }, [ "dbi:mysql:dbname=Koha","LOGIN", "PASSWORD" ])' After my 1st tests, I encountered the following problem DBIx::Class::Carp::__ANON__(): "might_have/has_one" must not be on columns with is_nullable set to true (temp::Schema::Result::Borrower/cardnumber). This might indicate an incorrect use of those relationship helpers instead of belongs_to. at /usr/share/perl5/DBIx/Class/Relationship/HasOne.pm line 96 by setting cardnumber to non-nullable I've switched the cardnumber to non-nullable in Borrower.pm http://bugs.koha-community.org/show_bug.cgi?id=8309 --- Koha/Schema.pm | 19 + Koha/Schema/Result/Accountline.pm | 198 +++++ Koha/Schema/Result/Accountoffset.pm | 102 +++ Koha/Schema/Result/ActionLog.pm | 92 ++ Koha/Schema/Result/Alert.pm | 68 ++ Koha/Schema/Result/Aqbasket.pm | 197 +++++ Koha/Schema/Result/Aqbasketgroup.pm | 128 +++ Koha/Schema/Result/Aqbookseller.pm | 370 ++++++++ Koha/Schema/Result/Aqbudget.pm | 191 ++++ Koha/Schema/Result/Aqbudgetperiod.pm | 104 +++ Koha/Schema/Result/AqbudgetsPlanning.pm | 106 +++ Koha/Schema/Result/Aqcontract.pm | 113 +++ Koha/Schema/Result/Aqorder.pm | 352 ++++++++ Koha/Schema/Result/Aqorderdelivery.pm | 71 ++ Koha/Schema/Result/AqordersItem.pm | 62 ++ Koha/Schema/Result/AuthHeader.pm | 109 +++ Koha/Schema/Result/AuthSubfieldStructure.pm | 167 ++++ Koha/Schema/Result/AuthTagStructure.pm | 118 +++ Koha/Schema/Result/AuthType.pm | 85 ++ Koha/Schema/Result/AuthorisedValue.pm | 84 ++ Koha/Schema/Result/Biblio.pm | 311 +++++++ Koha/Schema/Result/BiblioFramework.pm | 52 ++ Koha/Schema/Result/Biblioimage.pm | 89 ++ Koha/Schema/Result/Biblioitem.pm | 329 +++++++ Koha/Schema/Result/Borrower.pm | 917 ++++++++++++++++++++ Koha/Schema/Result/BorrowerAttribute.pm | 98 +++ Koha/Schema/Result/BorrowerAttributeType.pm | 140 +++ Koha/Schema/Result/BorrowerMessagePreference.pm | 168 ++++ .../Result/BorrowerMessageTransportPreference.pm | 98 +++ Koha/Schema/Result/Branch.pm | 347 ++++++++ Koha/Schema/Result/BranchBorrowerCircRule.pm | 91 ++ Koha/Schema/Result/BranchItemRule.pm | 99 +++ Koha/Schema/Result/BranchTransferLimit.pm | 74 ++ Koha/Schema/Result/Branchcategory.pm | 83 ++ Koha/Schema/Result/Branchrelation.pm | 98 +++ Koha/Schema/Result/Branchtransfer.pm | 157 ++++ Koha/Schema/Result/Browser.pm | 70 ++ Koha/Schema/Result/Category.pm | 203 +++++ Koha/Schema/Result/City.pm | 75 ++ Koha/Schema/Result/ClassSortRule.pm | 76 ++ Koha/Schema/Result/ClassSource.pm | 91 ++ Koha/Schema/Result/Collection.pm | 66 ++ Koha/Schema/Result/CollectionTracking.pm | 58 ++ Koha/Schema/Result/CreatorBatch.pm | 167 ++++ Koha/Schema/Result/CreatorImage.pm | 64 ++ Koha/Schema/Result/CreatorLayout.pm | 173 ++++ Koha/Schema/Result/CreatorTemplate.pm | 196 +++++ Koha/Schema/Result/Currency.pm | 112 +++ Koha/Schema/Result/DefaultBorrowerCircRule.pm | 67 ++ Koha/Schema/Result/DefaultBranchCircRule.pm | 82 ++ Koha/Schema/Result/DefaultBranchItemRule.pm | 75 ++ Koha/Schema/Result/DefaultCircRule.pm | 70 ++ Koha/Schema/Result/Deletedbiblio.pm | 129 +++ Koha/Schema/Result/Deletedbiblioitem.pm | 291 +++++++ Koha/Schema/Result/Deletedborrower.pm | 539 ++++++++++++ Koha/Schema/Result/Deleteditem.pm | 349 ++++++++ Koha/Schema/Result/Ethnicity.pm | 51 ++ Koha/Schema/Result/ExportFormat.pm | 96 ++ Koha/Schema/Result/Fieldmapping.pm | 75 ++ Koha/Schema/Result/HoldFillTarget.pm | 142 +++ Koha/Schema/Result/ImportBatch.pm | 213 +++++ Koha/Schema/Result/ImportBiblio.pm | 121 +++ Koha/Schema/Result/ImportItem.pm | 110 +++ Koha/Schema/Result/ImportRecord.pm | 248 ++++++ Koha/Schema/Result/ImportRecordMatches.pm | 73 ++ Koha/Schema/Result/Issue.pm | 184 ++++ Koha/Schema/Result/Issuingrule.pm | 188 ++++ Koha/Schema/Result/Item.pm | 542 ++++++++++++ .../Result/ItemCirculationAlertPreference.pm | 74 ++ Koha/Schema/Result/Itemtype.pm | 112 +++ Koha/Schema/Result/LanguageDescription.pm | 74 ++ Koha/Schema/Result/LanguageRfc4646ToIso639.pm | 58 ++ Koha/Schema/Result/LanguageScriptBidi.pm | 49 ++ Koha/Schema/Result/LanguageScriptMapping.pm | 49 ++ Koha/Schema/Result/LanguageSubtagRegistry.pm | 74 ++ Koha/Schema/Result/Letter.pm | 115 +++ Koha/Schema/Result/MarcMatcher.pm | 129 +++ Koha/Schema/Result/MarcSubfieldStructure.pm | 179 ++++ Koha/Schema/Result/MarcTagStructure.pm | 94 ++ Koha/Schema/Result/Matchcheck.pm | 113 +++ Koha/Schema/Result/MatcherMatchpoint.pm | 81 ++ Koha/Schema/Result/Matchpoint.pm | 144 +++ Koha/Schema/Result/MatchpointComponent.pm | 132 +++ Koha/Schema/Result/MatchpointComponentNorm.pm | 81 ++ Koha/Schema/Result/Message.pm | 86 ++ Koha/Schema/Result/MessageAttribute.pm | 92 ++ Koha/Schema/Result/MessageQueue.pm | 173 ++++ Koha/Schema/Result/MessageTransport.pm | 158 ++++ Koha/Schema/Result/MessageTransportType.pm | 95 ++ Koha/Schema/Result/NeedMergeAuthority.pm | 57 ++ Koha/Schema/Result/Notify.pm | 90 ++ Koha/Schema/Result/Nozebra.pm | 64 ++ Koha/Schema/Result/OaiSet.pm | 106 +++ Koha/Schema/Result/OaiSetsBiblio.pm | 82 ++ Koha/Schema/Result/OaiSetsDescription.pm | 66 ++ Koha/Schema/Result/OaiSetsMapping.pm | 82 ++ Koha/Schema/Result/OldIssue.pm | 184 ++++ Koha/Schema/Result/OldReserve.pm | 254 ++++++ Koha/Schema/Result/OpacNews.pm | 103 +++ Koha/Schema/Result/Overduerule.pm | 123 +++ Koha/Schema/Result/Patroncard.pm | 90 ++ Koha/Schema/Result/Patronimage.pm | 75 ++ Koha/Schema/Result/PendingOfflineOperation.pm | 96 ++ Koha/Schema/Result/Permission.pm | 100 +++ Koha/Schema/Result/Printer.pm | 59 ++ Koha/Schema/Result/PrintersProfile.pm | 137 +++ Koha/Schema/Result/Quote.pm | 68 ++ Koha/Schema/Result/Rating.pm | 103 +++ Koha/Schema/Result/RepeatableHoliday.pm | 88 ++ Koha/Schema/Result/ReportsDictionary.pm | 95 ++ Koha/Schema/Result/Reserve.pm | 278 ++++++ Koha/Schema/Result/Reserveconstraint.pm | 78 ++ Koha/Schema/Result/Review.pm | 126 +++ Koha/Schema/Result/Roadtype.pm | 51 ++ Koha/Schema/Result/SavedReport.pm | 68 ++ Koha/Schema/Result/SavedSql.pm | 131 +++ Koha/Schema/Result/SearchHistory.pm | 85 ++ Koha/Schema/Result/Serial.pm | 139 +++ Koha/Schema/Result/Serialitem.pm | 82 ++ Koha/Schema/Result/ServicesThrottle.pm | 51 ++ Koha/Schema/Result/Session.pm | 49 ++ Koha/Schema/Result/SocialData.pm | 86 ++ Koha/Schema/Result/SpecialHoliday.pm | 99 +++ Koha/Schema/Result/Statistic.pm | 121 +++ Koha/Schema/Result/Stopword.pm | 41 + Koha/Schema/Result/Subscription.pm | 454 ++++++++++ Koha/Schema/Result/Subscriptionhistory.pm | 98 +++ Koha/Schema/Result/Subscriptionroutinglist.pm | 98 +++ Koha/Schema/Result/Suggestion.pm | 292 +++++++ Koha/Schema/Result/Systempreference.pm | 72 ++ Koha/Schema/Result/Tag.pm | 51 ++ Koha/Schema/Result/TagAll.pm | 117 +++ Koha/Schema/Result/TagsApproval.pm | 115 +++ Koha/Schema/Result/TagsIndex.pm | 91 ++ Koha/Schema/Result/TmpHoldsqueue.pm | 145 ++++ Koha/Schema/Result/UserPermission.pm | 107 +++ Koha/Schema/Result/Userflag.pm | 82 ++ Koha/Schema/Result/Virtualshelfcontent.pm | 142 +++ Koha/Schema/Result/Virtualshelfshare.pm | 115 +++ Koha/Schema/Result/Virtualshelve.pm | 164 ++++ Koha/Schema/Result/Z3950server.pm | 167 ++++ Koha/Schema/Result/Zebraqueue.pm | 96 ++ 142 files changed, 19058 insertions(+) create mode 100644 Koha/Schema.pm create mode 100644 Koha/Schema/Result/Accountline.pm create mode 100644 Koha/Schema/Result/Accountoffset.pm create mode 100644 Koha/Schema/Result/ActionLog.pm create mode 100644 Koha/Schema/Result/Alert.pm create mode 100644 Koha/Schema/Result/Aqbasket.pm create mode 100644 Koha/Schema/Result/Aqbasketgroup.pm create mode 100644 Koha/Schema/Result/Aqbookseller.pm create mode 100644 Koha/Schema/Result/Aqbudget.pm create mode 100644 Koha/Schema/Result/Aqbudgetperiod.pm create mode 100644 Koha/Schema/Result/AqbudgetsPlanning.pm create mode 100644 Koha/Schema/Result/Aqcontract.pm create mode 100644 Koha/Schema/Result/Aqorder.pm create mode 100644 Koha/Schema/Result/Aqorderdelivery.pm create mode 100644 Koha/Schema/Result/AqordersItem.pm create mode 100644 Koha/Schema/Result/AuthHeader.pm create mode 100644 Koha/Schema/Result/AuthSubfieldStructure.pm create mode 100644 Koha/Schema/Result/AuthTagStructure.pm create mode 100644 Koha/Schema/Result/AuthType.pm create mode 100644 Koha/Schema/Result/AuthorisedValue.pm create mode 100644 Koha/Schema/Result/Biblio.pm create mode 100644 Koha/Schema/Result/BiblioFramework.pm create mode 100644 Koha/Schema/Result/Biblioimage.pm create mode 100644 Koha/Schema/Result/Biblioitem.pm create mode 100644 Koha/Schema/Result/Borrower.pm create mode 100644 Koha/Schema/Result/BorrowerAttribute.pm create mode 100644 Koha/Schema/Result/BorrowerAttributeType.pm create mode 100644 Koha/Schema/Result/BorrowerMessagePreference.pm create mode 100644 Koha/Schema/Result/BorrowerMessageTransportPreference.pm create mode 100644 Koha/Schema/Result/Branch.pm create mode 100644 Koha/Schema/Result/BranchBorrowerCircRule.pm create mode 100644 Koha/Schema/Result/BranchItemRule.pm create mode 100644 Koha/Schema/Result/BranchTransferLimit.pm create mode 100644 Koha/Schema/Result/Branchcategory.pm create mode 100644 Koha/Schema/Result/Branchrelation.pm create mode 100644 Koha/Schema/Result/Branchtransfer.pm create mode 100644 Koha/Schema/Result/Browser.pm create mode 100644 Koha/Schema/Result/Category.pm create mode 100644 Koha/Schema/Result/City.pm create mode 100644 Koha/Schema/Result/ClassSortRule.pm create mode 100644 Koha/Schema/Result/ClassSource.pm create mode 100644 Koha/Schema/Result/Collection.pm create mode 100644 Koha/Schema/Result/CollectionTracking.pm create mode 100644 Koha/Schema/Result/CreatorBatch.pm create mode 100644 Koha/Schema/Result/CreatorImage.pm create mode 100644 Koha/Schema/Result/CreatorLayout.pm create mode 100644 Koha/Schema/Result/CreatorTemplate.pm create mode 100644 Koha/Schema/Result/Currency.pm create mode 100644 Koha/Schema/Result/DefaultBorrowerCircRule.pm create mode 100644 Koha/Schema/Result/DefaultBranchCircRule.pm create mode 100644 Koha/Schema/Result/DefaultBranchItemRule.pm create mode 100644 Koha/Schema/Result/DefaultCircRule.pm create mode 100644 Koha/Schema/Result/Deletedbiblio.pm create mode 100644 Koha/Schema/Result/Deletedbiblioitem.pm create mode 100644 Koha/Schema/Result/Deletedborrower.pm create mode 100644 Koha/Schema/Result/Deleteditem.pm create mode 100644 Koha/Schema/Result/Ethnicity.pm create mode 100644 Koha/Schema/Result/ExportFormat.pm create mode 100644 Koha/Schema/Result/Fieldmapping.pm create mode 100644 Koha/Schema/Result/HoldFillTarget.pm create mode 100644 Koha/Schema/Result/ImportBatch.pm create mode 100644 Koha/Schema/Result/ImportBiblio.pm create mode 100644 Koha/Schema/Result/ImportItem.pm create mode 100644 Koha/Schema/Result/ImportRecord.pm create mode 100644 Koha/Schema/Result/ImportRecordMatches.pm create mode 100644 Koha/Schema/Result/Issue.pm create mode 100644 Koha/Schema/Result/Issuingrule.pm create mode 100644 Koha/Schema/Result/Item.pm create mode 100644 Koha/Schema/Result/ItemCirculationAlertPreference.pm create mode 100644 Koha/Schema/Result/Itemtype.pm create mode 100644 Koha/Schema/Result/LanguageDescription.pm create mode 100644 Koha/Schema/Result/LanguageRfc4646ToIso639.pm create mode 100644 Koha/Schema/Result/LanguageScriptBidi.pm create mode 100644 Koha/Schema/Result/LanguageScriptMapping.pm create mode 100644 Koha/Schema/Result/LanguageSubtagRegistry.pm create mode 100644 Koha/Schema/Result/Letter.pm create mode 100644 Koha/Schema/Result/MarcMatcher.pm create mode 100644 Koha/Schema/Result/MarcSubfieldStructure.pm create mode 100644 Koha/Schema/Result/MarcTagStructure.pm create mode 100644 Koha/Schema/Result/Matchcheck.pm create mode 100644 Koha/Schema/Result/MatcherMatchpoint.pm create mode 100644 Koha/Schema/Result/Matchpoint.pm create mode 100644 Koha/Schema/Result/MatchpointComponent.pm create mode 100644 Koha/Schema/Result/MatchpointComponentNorm.pm create mode 100644 Koha/Schema/Result/Message.pm create mode 100644 Koha/Schema/Result/MessageAttribute.pm create mode 100644 Koha/Schema/Result/MessageQueue.pm create mode 100644 Koha/Schema/Result/MessageTransport.pm create mode 100644 Koha/Schema/Result/MessageTransportType.pm create mode 100644 Koha/Schema/Result/NeedMergeAuthority.pm create mode 100644 Koha/Schema/Result/Notify.pm create mode 100644 Koha/Schema/Result/Nozebra.pm create mode 100644 Koha/Schema/Result/OaiSet.pm create mode 100644 Koha/Schema/Result/OaiSetsBiblio.pm create mode 100644 Koha/Schema/Result/OaiSetsDescription.pm create mode 100644 Koha/Schema/Result/OaiSetsMapping.pm create mode 100644 Koha/Schema/Result/OldIssue.pm create mode 100644 Koha/Schema/Result/OldReserve.pm create mode 100644 Koha/Schema/Result/OpacNews.pm create mode 100644 Koha/Schema/Result/Overduerule.pm create mode 100644 Koha/Schema/Result/Patroncard.pm create mode 100644 Koha/Schema/Result/Patronimage.pm create mode 100644 Koha/Schema/Result/PendingOfflineOperation.pm create mode 100644 Koha/Schema/Result/Permission.pm create mode 100644 Koha/Schema/Result/Printer.pm create mode 100644 Koha/Schema/Result/PrintersProfile.pm create mode 100644 Koha/Schema/Result/Quote.pm create mode 100644 Koha/Schema/Result/Rating.pm create mode 100644 Koha/Schema/Result/RepeatableHoliday.pm create mode 100644 Koha/Schema/Result/ReportsDictionary.pm create mode 100644 Koha/Schema/Result/Reserve.pm create mode 100644 Koha/Schema/Result/Reserveconstraint.pm create mode 100644 Koha/Schema/Result/Review.pm create mode 100644 Koha/Schema/Result/Roadtype.pm create mode 100644 Koha/Schema/Result/SavedReport.pm create mode 100644 Koha/Schema/Result/SavedSql.pm create mode 100644 Koha/Schema/Result/SearchHistory.pm create mode 100644 Koha/Schema/Result/Serial.pm create mode 100644 Koha/Schema/Result/Serialitem.pm create mode 100644 Koha/Schema/Result/ServicesThrottle.pm create mode 100644 Koha/Schema/Result/Session.pm create mode 100644 Koha/Schema/Result/SocialData.pm create mode 100644 Koha/Schema/Result/SpecialHoliday.pm create mode 100644 Koha/Schema/Result/Statistic.pm create mode 100644 Koha/Schema/Result/Stopword.pm create mode 100644 Koha/Schema/Result/Subscription.pm create mode 100644 Koha/Schema/Result/Subscriptionhistory.pm create mode 100644 Koha/Schema/Result/Subscriptionroutinglist.pm create mode 100644 Koha/Schema/Result/Suggestion.pm create mode 100644 Koha/Schema/Result/Systempreference.pm create mode 100644 Koha/Schema/Result/Tag.pm create mode 100644 Koha/Schema/Result/TagAll.pm create mode 100644 Koha/Schema/Result/TagsApproval.pm create mode 100644 Koha/Schema/Result/TagsIndex.pm create mode 100644 Koha/Schema/Result/TmpHoldsqueue.pm create mode 100644 Koha/Schema/Result/UserPermission.pm create mode 100644 Koha/Schema/Result/Userflag.pm create mode 100644 Koha/Schema/Result/Virtualshelfcontent.pm create mode 100644 Koha/Schema/Result/Virtualshelfshare.pm create mode 100644 Koha/Schema/Result/Virtualshelve.pm create mode 100644 Koha/Schema/Result/Z3950server.pm create mode 100644 Koha/Schema/Result/Zebraqueue.pm diff --git a/Koha/Schema.pm b/Koha/Schema.pm new file mode 100644 index 0000000..f05d49d --- /dev/null +++ b/Koha/Schema.pm @@ -0,0 +1,19 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnEo5uak3omhVidSM9e0hA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Accountline.pm b/Koha/Schema/Result/Accountline.pm new file mode 100644 index 0000000..38bf44b --- /dev/null +++ b/Koha/Schema/Result/Accountline.pm @@ -0,0 +1,198 @@ +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 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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( + "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", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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 }, +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jqQpSc1VG/nyCPFvXbu+gA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Accountoffset.pm b/Koha/Schema/Result/Accountoffset.pm new file mode 100644 index 0000000..77c8785 --- /dev/null +++ b/Koha/Schema/Result/Accountoffset.pm @@ -0,0 +1,102 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G+cGjWAlvQH5hFpNAsCG9Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ActionLog.pm b/Koha/Schema/Result/ActionLog.pm new file mode 100644 index 0000000..b786d73 --- /dev/null +++ b/Koha/Schema/Result/ActionLog.pm @@ -0,0 +1,92 @@ +package Koha::Schema::Result::ActionLog; + +# 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::ActionLog + +=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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7PmpmQvq6QVLOBi9BwT9zQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Alert.pm b/Koha/Schema/Result/Alert.pm new file mode 100644 index 0000000..a952d06 --- /dev/null +++ b/Koha/Schema/Result/Alert.pm @@ -0,0 +1,68 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNG04rccMPliVzGtEp1U2Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqbasket.pm b/Koha/Schema/Result/Aqbasket.pm new file mode 100644 index 0000000..57ae887 --- /dev/null +++ b/Koha/Schema/Result/Aqbasket.pm @@ -0,0 +1,197 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 closedate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "closedate", + { data_type => "date", datetime_undef_if_invalid => 1, 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 + +=cut + +__PACKAGE__->belongs_to( + "booksellerid", + "Koha::Schema::Result::Aqbookseller", + { id => "booksellerid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 contractnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "contractnumber", + "Koha::Schema::Result::Aqcontract", + { contractnumber => "contractnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 basketgroupid + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "basketgroupid", + "Koha::Schema::Result::Aqbasketgroup", + { id => "basketgroupid" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 aqorders + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R51wLBQpgEY8HY7EPKTKbw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqbasketgroup.pm b/Koha/Schema/Result/Aqbasketgroup.pm new file mode 100644 index 0000000..dec579a --- /dev/null +++ b/Koha/Schema/Result/Aqbasketgroup.pm @@ -0,0 +1,128 @@ +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 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 + +=head2 billingplace + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +=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 }, + "deliveryplace", + { data_type => "varchar", is_nullable => 1, size => 10 }, + "freedeliveryplace", + { data_type => "text", is_nullable => 1 }, + "deliverycomment", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "billingplace", + { data_type => "varchar", is_nullable => 1, size => 10 }, +); +__PACKAGE__->set_primary_key("id"); + +=head1 RELATIONS + +=head2 aqbaskets + +Type: has_many + +Related object: L + +=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 + +=cut + +__PACKAGE__->belongs_to( + "booksellerid", + "Koha::Schema::Result::Aqbookseller", + { id => "booksellerid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/5t1N+pGqeCGxx/Gu238g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqbookseller.pm b/Koha/Schema/Result/Aqbookseller.pm new file mode 100644 index 0000000..d4a6360 --- /dev/null +++ b/Koha/Schema/Result/Aqbookseller.pm @@ -0,0 +1,370 @@ +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 + +=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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "listprice", + "Koha::Schema::Result::Currency", + { currency => "listprice" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 invoiceprice + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "invoiceprice", + "Koha::Schema::Result::Currency", + { currency => "invoiceprice" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 aqcontracts + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "aqcontracts", + "Koha::Schema::Result::Aqcontract", + { "foreign.booksellerid" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s+opipVlKSoo2C9BgyawKg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqbudget.pm b/Koha/Schema/Result/Aqbudget.pm new file mode 100644 index 0000000..dee3aec --- /dev/null +++ b/Koha/Schema/Result/Aqbudget.pm @@ -0,0 +1,191 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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 aqbudgets_plannings + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "aqbudgets_plannings", + "Koha::Schema::Result::AqbudgetsPlanning", + { "foreign.budget_id" => "self.budget_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dST1lOrmj5MaM53IZy6y0A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqbudgetperiod.pm b/Koha/Schema/Result/Aqbudgetperiod.pm new file mode 100644 index 0000000..1fdaf12 --- /dev/null +++ b/Koha/Schema/Result/Aqbudgetperiod.pm @@ -0,0 +1,104 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +=head2 budget_period_enddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 0 }, + "budget_period_enddate", + { data_type => "date", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+3NIJVFKifGOdVI/9gUPiQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AqbudgetsPlanning.pm b/Koha/Schema/Result/AqbudgetsPlanning.pm new file mode 100644 index 0000000..9b57cf1 --- /dev/null +++ b/Koha/Schema/Result/AqbudgetsPlanning.pm @@ -0,0 +1,106 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "budget", + "Koha::Schema::Result::Aqbudget", + { budget_id => "budget_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0x7H3DbVID4cri7yaWR4A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqcontract.pm b/Koha/Schema/Result/Aqcontract.pm new file mode 100644 index 0000000..cfec83e --- /dev/null +++ b/Koha/Schema/Result/Aqcontract.pm @@ -0,0 +1,113 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 contractenddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "contractenddate", + { data_type => "date", datetime_undef_if_invalid => 1, 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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "booksellerid", + "Koha::Schema::Result::Aqbookseller", + { id => "booksellerid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DdH2isS1x7eZkfBOXIZX1Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm new file mode 100644 index 0000000..0ad2316 --- /dev/null +++ b/Koha/Schema/Result/Aqorder.pm @@ -0,0 +1,352 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 booksellerinvoicenumber + + data_type: 'mediumtext' + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "booksellerinvoicenumber", + { data_type => "mediumtext", 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", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("ordernumber"); + +=head1 RELATIONS + +=head2 basketno + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "basketno", + "Koha::Schema::Result::Aqbasket", + { basketno => "basketno" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VIkztGNsWZMnzXv6cguVzg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Aqorderdelivery.pm b/Koha/Schema/Result/Aqorderdelivery.pm new file mode 100644 index 0000000..968a59c --- /dev/null +++ b/Koha/Schema/Result/Aqorderdelivery.pm @@ -0,0 +1,71 @@ +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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6c70+6opG1v7MmljmkbJ7A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AqordersItem.pm b/Koha/Schema/Result/AqordersItem.pm new file mode 100644 index 0000000..0a011d2 --- /dev/null +++ b/Koha/Schema/Result/AqordersItem.pm @@ -0,0 +1,62 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("itemnumber"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EMr7QXyQjEOGkgy8xJLswA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AuthHeader.pm b/Koha/Schema/Result/AuthHeader.pm new file mode 100644 index 0000000..66b24d6 --- /dev/null +++ b/Koha/Schema/Result/AuthHeader.pm @@ -0,0 +1,109 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 datemodified + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "datemodified", + { data_type => "date", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VgQlVqcGUEZTdkf/1nv12w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AuthSubfieldStructure.pm b/Koha/Schema/Result/AuthSubfieldStructure.pm new file mode 100644 index 0000000..1b070aa --- /dev/null +++ b/Koha/Schema/Result/AuthSubfieldStructure.pm @@ -0,0 +1,167 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sDl1g0h3lF/fImWyIZgMwA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AuthTagStructure.pm b/Koha/Schema/Result/AuthTagStructure.pm new file mode 100644 index 0000000..1c2f021 --- /dev/null +++ b/Koha/Schema/Result/AuthTagStructure.pm @@ -0,0 +1,118 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "authtypecode", + "Koha::Schema::Result::AuthType", + { authtypecode => "authtypecode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HFoSqnaYRoolLi10vfDPRA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AuthType.pm b/Koha/Schema/Result/AuthType.pm new file mode 100644 index 0000000..3271459 --- /dev/null +++ b/Koha/Schema/Result/AuthType.pm @@ -0,0 +1,85 @@ +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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PLv/PLL2X93fWR4Dp05vwg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/AuthorisedValue.pm b/Koha/Schema/Result/AuthorisedValue.pm new file mode 100644 index 0000000..e1bbab4 --- /dev/null +++ b/Koha/Schema/Result/AuthorisedValue.pm @@ -0,0 +1,84 @@ +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: 10 + +=head2 authorised_value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 80 + +=head2 lib + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +=head2 lib_opac + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +=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 => 10 }, + "authorised_value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 }, + "lib", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "lib_opac", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "imageurl", + { data_type => "varchar", is_nullable => 1, size => 200 }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1r0p20RohYvb94ol1U+5RA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm new file mode 100644 index 0000000..e8fa2a9 --- /dev/null +++ b/Koha/Schema/Result/Biblio.pm @@ -0,0 +1,311 @@ +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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 datecreated + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "datecreated", + { data_type => "date", datetime_undef_if_invalid => 1, 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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8mwoJB6JN06OVaGLT6kxMg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm new file mode 100644 index 0000000..6971056 --- /dev/null +++ b/Koha/Schema/Result/BiblioFramework.pm @@ -0,0 +1,52 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qSpQMijGkVr0bIcMgsMPoA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Biblioimage.pm b/Koha/Schema/Result/Biblioimage.pm new file mode 100644 index 0000000..fe01f03 --- /dev/null +++ b/Koha/Schema/Result/Biblioimage.pm @@ -0,0 +1,89 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JH4YKHk+PVlqPv2YJ5zgMg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Biblioitem.pm b/Koha/Schema/Result/Biblioitem.pm new file mode 100644 index 0000000..14a896c --- /dev/null +++ b/Koha/Schema/Result/Biblioitem.pm @@ -0,0 +1,329 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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 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", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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 }, + "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 + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 items + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2gSb+rNYpaSUJBAOMA2Kmw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm new file mode 100644 index 0000000..ddf1656 --- /dev/null +++ b/Koha/Schema/Result/Borrower.pm @@ -0,0 +1,917 @@ +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: 'text' + is_nullable: 1 + +=head2 zipcode + + data_type: 'varchar' + is_nullable: 1 + size: 25 + +=head2 country + + data_type: 'text' + is_nullable: 1 + +=head2 email + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 phone + + data_type: 'text' + is_nullable: 1 + +=head2 mobile + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 fax + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 emailpro + + data_type: 'text' + is_nullable: 1 + +=head2 phonepro + + data_type: 'text' + is_nullable: 1 + +=head2 b_streetnumber + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +=head2 b_streettype + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 b_address + + data_type: 'varchar' + is_nullable: 1 + size: 100 + +=head2 b_address2 + + data_type: 'text' + is_nullable: 1 + +=head2 b_city + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 b_state + + data_type: 'text' + is_nullable: 1 + +=head2 b_zipcode + + data_type: 'varchar' + is_nullable: 1 + size: 25 + +=head2 b_country + + data_type: 'text' + is_nullable: 1 + +=head2 b_email + + data_type: 'text' + is_nullable: 1 + +=head2 b_phone + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 dateofbirth + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 dateexpiry + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 gonenoaddress + + data_type: 'tinyint' + is_nullable: 1 + +=head2 lost + + data_type: 'tinyint' + is_nullable: 1 + +=head2 debarred + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 debarredcomment + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 contactname + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 contactfirstname + + data_type: 'text' + is_nullable: 1 + +=head2 contacttitle + + data_type: 'text' + is_nullable: 1 + +=head2 guarantorid + + data_type: 'integer' + is_nullable: 1 + +=head2 borrowernotes + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 relationship + + data_type: 'varchar' + is_nullable: 1 + size: 100 + +=head2 ethnicity + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 ethnotes + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 sex + + data_type: 'varchar' + is_nullable: 1 + size: 1 + +=head2 password + + data_type: 'varchar' + is_nullable: 1 + size: 30 + +=head2 flags + + data_type: 'integer' + is_nullable: 1 + +=head2 userid + + data_type: 'varchar' + is_nullable: 1 + size: 75 + +=head2 opacnote + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 contactnote + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 sort1 + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +=head2 sort2 + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +=head2 altcontactfirstname + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 altcontactsurname + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 altcontactaddress1 + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 altcontactaddress2 + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 altcontactaddress3 + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +=head2 altcontactstate + + data_type: 'text' + is_nullable: 1 + +=head2 altcontactzipcode + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 altcontactcountry + + data_type: 'text' + is_nullable: 1 + +=head2 altcontactphone + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 smsalertnumber + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 privacy + + data_type: 'integer' + 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 => 0, 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 => "text", is_nullable => 1 }, + "zipcode", + { data_type => "varchar", is_nullable => 1, size => 25 }, + "country", + { data_type => "text", is_nullable => 1 }, + "email", + { data_type => "mediumtext", is_nullable => 1 }, + "phone", + { data_type => "text", is_nullable => 1 }, + "mobile", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "fax", + { data_type => "mediumtext", is_nullable => 1 }, + "emailpro", + { data_type => "text", is_nullable => 1 }, + "phonepro", + { data_type => "text", is_nullable => 1 }, + "b_streetnumber", + { data_type => "varchar", is_nullable => 1, size => 10 }, + "b_streettype", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "b_address", + { data_type => "varchar", is_nullable => 1, size => 100 }, + "b_address2", + { data_type => "text", is_nullable => 1 }, + "b_city", + { data_type => "mediumtext", is_nullable => 1 }, + "b_state", + { data_type => "text", is_nullable => 1 }, + "b_zipcode", + { data_type => "varchar", is_nullable => 1, size => 25 }, + "b_country", + { data_type => "text", is_nullable => 1 }, + "b_email", + { data_type => "text", is_nullable => 1 }, + "b_phone", + { data_type => "mediumtext", is_nullable => 1 }, + "dateofbirth", + { data_type => "date", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "dateexpiry", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "gonenoaddress", + { data_type => "tinyint", is_nullable => 1 }, + "lost", + { data_type => "tinyint", is_nullable => 1 }, + "debarred", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "debarredcomment", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "contactname", + { data_type => "mediumtext", is_nullable => 1 }, + "contactfirstname", + { data_type => "text", is_nullable => 1 }, + "contacttitle", + { data_type => "text", is_nullable => 1 }, + "guarantorid", + { data_type => "integer", is_nullable => 1 }, + "borrowernotes", + { data_type => "mediumtext", is_nullable => 1 }, + "relationship", + { data_type => "varchar", is_nullable => 1, size => 100 }, + "ethnicity", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "ethnotes", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "sex", + { data_type => "varchar", is_nullable => 1, size => 1 }, + "password", + { data_type => "varchar", is_nullable => 1, size => 30 }, + "flags", + { data_type => "integer", is_nullable => 1 }, + "userid", + { data_type => "varchar", is_nullable => 1, size => 75 }, + "opacnote", + { data_type => "mediumtext", is_nullable => 1 }, + "contactnote", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "sort1", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "sort2", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "altcontactfirstname", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "altcontactsurname", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "altcontactaddress1", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "altcontactaddress2", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "altcontactaddress3", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "altcontactstate", + { data_type => "text", is_nullable => 1 }, + "altcontactzipcode", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "altcontactcountry", + { data_type => "text", is_nullable => 1 }, + "altcontactphone", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "smsalertnumber", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "privacy", + { data_type => "integer", 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 + +=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 + +=cut + +__PACKAGE__->has_many( + "accountoffsets", + "Koha::Schema::Result::Accountoffset", + { "foreign.borrowernumber" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 borrower_attributes + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "borrower_attributes", + "Koha::Schema::Result::BorrowerAttribute", + { "foreign.borrowernumber" => "self.borrowernumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 borrower_message_preferences + +Type: has_many + +Related object: L + +=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 + +=cut + +__PACKAGE__->belongs_to( + "categorycode", + "Koha::Schema::Result::Category", + { categorycode => "categorycode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 branchcode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 creator_batches + +Type: has_many + +Related object: L + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnpGsgSH2Urh7W8mw0rmbg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BorrowerAttribute.pm b/Koha/Schema/Result/BorrowerAttribute.pm new file mode 100644 index 0000000..ccd6786 --- /dev/null +++ b/Koha/Schema/Result/BorrowerAttribute.pm @@ -0,0 +1,98 @@ +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: 64 + +=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 => 64 }, + "password", + { data_type => "varchar", is_nullable => 1, size => 64 }, +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 code + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "code", + "Koha::Schema::Result::BorrowerAttributeType", + { code => "code" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OGMTWD9We/bSwLwVKPvETQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm new file mode 100644 index 0000000..b4c389a --- /dev/null +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -0,0 +1,140 @@ +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_nullable: 1 + size: 1 + +=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_nullable => 1, size => 1 }, + "class", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, +); +__PACKAGE__->set_primary_key("code"); + +=head1 RELATIONS + +=head2 borrower_attributes + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t3vJ3yXmF+p4pyD3IGTR2g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BorrowerMessagePreference.pm b/Koha/Schema/Result/BorrowerMessagePreference.pm new file mode 100644 index 0000000..d6e44c2 --- /dev/null +++ b/Koha/Schema/Result/BorrowerMessagePreference.pm @@ -0,0 +1,168 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 message_attribute + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "message_attribute", + "Koha::Schema::Result::MessageAttribute", + { message_attribute_id => "message_attribute_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 categorycode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "categorycode", + "Koha::Schema::Result::Category", + { categorycode => "categorycode" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 borrower_message_transport_preferences + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u8kkw3PH8Iuyd7uvGDEBhA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm new file mode 100644 index 0000000..018b66b --- /dev/null +++ b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm @@ -0,0 +1,98 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "borrower_message_preference", + "Koha::Schema::Result::BorrowerMessagePreference", + { + borrower_message_preference_id => "borrower_message_preference_id", + }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 message_transport_type + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "message_transport_type", + "Koha::Schema::Result::MessageTransportType", + { message_transport_type => "message_transport_type" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJIYQjIF+zQCcSxTI8BscQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm new file mode 100644 index 0000000..3e2a433 --- /dev/null +++ b/Koha/Schema/Result/Branch.pm @@ -0,0 +1,347 @@ +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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=cut + +__PACKAGE__->has_many( + "reserves", + "Koha::Schema::Result::Reserve", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i0t3GuT8Ymn6gwYmbxYHIg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BranchBorrowerCircRule.pm b/Koha/Schema/Result/BranchBorrowerCircRule.pm new file mode 100644 index 0000000..7a0802f --- /dev/null +++ b/Koha/Schema/Result/BranchBorrowerCircRule.pm @@ -0,0 +1,91 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "categorycode", + "Koha::Schema::Result::Category", + { categorycode => "categorycode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 branchcode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eAiSJPIdy8C0uxQibx3imA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BranchItemRule.pm b/Koha/Schema/Result/BranchItemRule.pm new file mode 100644 index 0000000..cbf08f0 --- /dev/null +++ b/Koha/Schema/Result/BranchItemRule.pm @@ -0,0 +1,99 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "itemtype", + "Koha::Schema::Result::Itemtype", + { itemtype => "itemtype" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 branchcode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UMVlaEQYteo47bAXvWnVlQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/BranchTransferLimit.pm b/Koha/Schema/Result/BranchTransferLimit.pm new file mode 100644 index 0000000..7f9282d --- /dev/null +++ b/Koha/Schema/Result/BranchTransferLimit.pm @@ -0,0 +1,74 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jyY4TpTysvvao1L0lHCiiA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Branchcategory.pm b/Koha/Schema/Result/Branchcategory.pm new file mode 100644 index 0000000..569168c --- /dev/null +++ b/Koha/Schema/Result/Branchcategory.pm @@ -0,0 +1,83 @@ +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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qZa6Epw1mka7OXoGafzLbQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Branchrelation.pm b/Koha/Schema/Result/Branchrelation.pm new file mode 100644 index 0000000..1dae169 --- /dev/null +++ b/Koha/Schema/Result/Branchrelation.pm @@ -0,0 +1,98 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 categorycode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "categorycode", + "Koha::Schema::Result::Branchcategory", + { categorycode => "categorycode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CgXr3GwlrCAot8LiI12Vwg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm new file mode 100644 index 0000000..8a6c0cb --- /dev/null +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -0,0 +1,157 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "frombranch", + { + data_type => "varchar", + default_value => "", + is_foreign_key => 1, + is_nullable => 0, + size => 10, + }, + "datearrived", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + 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 + +=cut + +__PACKAGE__->belongs_to( + "frombranch", + "Koha::Schema::Result::Branch", + { branchcode => "frombranch" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 tobranch + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "tobranch", + "Koha::Schema::Result::Branch", + { branchcode => "tobranch" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fMI1gd8LPBehc9rwlUsNFQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Browser.pm b/Koha/Schema/Result/Browser.pm new file mode 100644 index 0000000..0fe2c2b --- /dev/null +++ b/Koha/Schema/Result/Browser.pm @@ -0,0 +1,70 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gZ/lT6WNpvSxUShrVD46Dw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm new file mode 100644 index 0000000..ed4cac2 --- /dev/null +++ b/Koha/Schema/Result/Category.pm @@ -0,0 +1,203 @@ +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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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_message_preferences + +Type: has_many + +Related object: L + +=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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McP3lna3lHiDUJe6c+XUGA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/City.pm b/Koha/Schema/Result/City.pm new file mode 100644 index 0000000..987c8bb --- /dev/null +++ b/Koha/Schema/Result/City.pm @@ -0,0 +1,75 @@ +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_country + + data_type: 'varchar' + is_nullable: 1 + size: 100 + +=head2 city_zipcode + + data_type: 'varchar' + is_nullable: 1 + size: 20 + +=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_country", + { data_type => "varchar", is_nullable => 1, size => 100 }, + "city_zipcode", + { data_type => "varchar", is_nullable => 1, size => 20 }, +); +__PACKAGE__->set_primary_key("cityid"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:93Zxm2bQE+hPJVMHfuRjrQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ClassSortRule.pm b/Koha/Schema/Result/ClassSortRule.pm new file mode 100644 index 0000000..ae52921 --- /dev/null +++ b/Koha/Schema/Result/ClassSortRule.pm @@ -0,0 +1,76 @@ +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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LR1wpnk8rroFe2pct4mcqw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ClassSource.pm b/Koha/Schema/Result/ClassSource.pm new file mode 100644 index 0000000..350f0c6 --- /dev/null +++ b/Koha/Schema/Result/ClassSource.pm @@ -0,0 +1,91 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "class_sort_rule", + "Koha::Schema::Result::ClassSortRule", + { class_sort_rule => "class_sort_rule" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:urTNC2EAB2Tij8vr3ew2yw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Collection.pm b/Koha/Schema/Result/Collection.pm new file mode 100644 index 0000000..3484bb0 --- /dev/null +++ b/Koha/Schema/Result/Collection.pm @@ -0,0 +1,66 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G4LM5S09ctzSful+plyiHw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/CollectionTracking.pm b/Koha/Schema/Result/CollectionTracking.pm new file mode 100644 index 0000000..029f425 --- /dev/null +++ b/Koha/Schema/Result/CollectionTracking.pm @@ -0,0 +1,58 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BKIto4bt+iJZ0dUHFJVspg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/CreatorBatch.pm b/Koha/Schema/Result/CreatorBatch.pm new file mode 100644 index 0000000..794e4de --- /dev/null +++ b/Koha/Schema/Result/CreatorBatch.pm @@ -0,0 +1,167 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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 + +=cut + +__PACKAGE__->belongs_to( + "borrower_number", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrower_number" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 branch_code + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "branch_code", + "Koha::Schema::Result::Branch", + { branchcode => "branch_code" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 item_number + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "item_number", + "Koha::Schema::Result::Item", + { itemnumber => "item_number" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b20a7mRdqBjfDHChM2aUnA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/CreatorImage.pm b/Koha/Schema/Result/CreatorImage.pm new file mode 100644 index 0000000..9dda312 --- /dev/null +++ b/Koha/Schema/Result/CreatorImage.pm @@ -0,0 +1,64 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZQUQ6s/Z7+V5VF9WfnFRmg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/CreatorLayout.pm b/Koha/Schema/Result/CreatorLayout.pm new file mode 100644 index 0000000..087e75d --- /dev/null +++ b/Koha/Schema/Result/CreatorLayout.pm @@ -0,0 +1,173 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Sm5a34Hc+t8LurAzhzm1hw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/CreatorTemplate.pm b/Koha/Schema/Result/CreatorTemplate.pm new file mode 100644 index 0000000..520823f --- /dev/null +++ b/Koha/Schema/Result/CreatorTemplate.pm @@ -0,0 +1,196 @@ +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_Kohalates"); + +=head1 ACCESSORS + +=head2 Kohalate_id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 profile_id + + data_type: 'integer' + is_nullable: 1 + +=head2 Kohalate_code + + data_type: 'char' + default_value: 'DEFAULT TEMPLATE' + is_nullable: 0 + size: 100 + +=head2 Kohalate_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( + "Kohalate_id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "profile_id", + { data_type => "integer", is_nullable => 1 }, + "Kohalate_code", + { + data_type => "char", + default_value => "DEFAULT TEMPLATE", + is_nullable => 0, + size => 100, + }, + "Kohalate_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("Kohalate_id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LvzZJtxXR7oS5/X9LmXMhg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm new file mode 100644 index 0000000..d4fc3d6 --- /dev/null +++ b/Koha/Schema/Result/Currency.pm @@ -0,0 +1,112 @@ +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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 rate + + data_type: 'float' + is_nullable: 1 + size: [7,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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "rate", + { data_type => "float", is_nullable => 1, size => [7, 5] }, + "active", + { data_type => "tinyint", is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("currency"); + +=head1 RELATIONS + +=head2 aqbooksellers_listprices + +Type: has_many + +Related object: L + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SXqXLEl9QZKt/k4sEV2ACA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/DefaultBorrowerCircRule.pm b/Koha/Schema/Result/DefaultBorrowerCircRule.pm new file mode 100644 index 0000000..f0d535c --- /dev/null +++ b/Koha/Schema/Result/DefaultBorrowerCircRule.pm @@ -0,0 +1,67 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "categorycode", + "Koha::Schema::Result::Category", + { categorycode => "categorycode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqJpbh9PwIbI+ZFln01uyQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/DefaultBranchCircRule.pm b/Koha/Schema/Result/DefaultBranchCircRule.pm new file mode 100644 index 0000000..c63e7f4 --- /dev/null +++ b/Koha/Schema/Result/DefaultBranchCircRule.pm @@ -0,0 +1,82 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:frW3GCB/KNsQWzxD8gwE5w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/DefaultBranchItemRule.pm b/Koha/Schema/Result/DefaultBranchItemRule.pm new file mode 100644 index 0000000..72641ec --- /dev/null +++ b/Koha/Schema/Result/DefaultBranchItemRule.pm @@ -0,0 +1,75 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "itemtype", + "Koha::Schema::Result::Itemtype", + { itemtype => "itemtype" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DROuFM1Dwe32gJfzKP39Rg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/DefaultCircRule.pm b/Koha/Schema/Result/DefaultCircRule.pm new file mode 100644 index 0000000..83ad3f3 --- /dev/null +++ b/Koha/Schema/Result/DefaultCircRule.pm @@ -0,0 +1,70 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DOs1J32zzQu+FsjO8zqZpA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm new file mode 100644 index 0000000..df1e413 --- /dev/null +++ b/Koha/Schema/Result/Deletedbiblio.pm @@ -0,0 +1,129 @@ +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' + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 datecreated + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "datecreated", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 }, + "abstract", + { data_type => "mediumtext", is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("biblionumber"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/QU1a9T1ljqeWy1nPqVEw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Deletedbiblioitem.pm b/Koha/Schema/Result/Deletedbiblioitem.pm new file mode 100644 index 0000000..5cbe1a6 --- /dev/null +++ b/Koha/Schema/Result/Deletedbiblioitem.pm @@ -0,0 +1,291 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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 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", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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 }, + "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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6iwiHPZSUhnG8UXc3ClX+A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm new file mode 100644 index 0000000..219a898 --- /dev/null +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -0,0 +1,539 @@ +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: 'text' + is_nullable: 1 + +=head2 zipcode + + data_type: 'varchar' + is_nullable: 1 + size: 25 + +=head2 country + + data_type: 'text' + is_nullable: 1 + +=head2 email + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 phone + + data_type: 'text' + is_nullable: 1 + +=head2 mobile + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 fax + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 emailpro + + data_type: 'text' + is_nullable: 1 + +=head2 phonepro + + data_type: 'text' + is_nullable: 1 + +=head2 b_streetnumber + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +=head2 b_streettype + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 b_address + + data_type: 'varchar' + is_nullable: 1 + size: 100 + +=head2 b_address2 + + data_type: 'text' + is_nullable: 1 + +=head2 b_city + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 b_state + + data_type: 'text' + is_nullable: 1 + +=head2 b_zipcode + + data_type: 'varchar' + is_nullable: 1 + size: 25 + +=head2 b_country + + data_type: 'text' + is_nullable: 1 + +=head2 b_email + + data_type: 'text' + is_nullable: 1 + +=head2 b_phone + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 dateofbirth + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=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 dateenrolled + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 dateexpiry + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 gonenoaddress + + data_type: 'tinyint' + is_nullable: 1 + +=head2 lost + + data_type: 'tinyint' + is_nullable: 1 + +=head2 debarred + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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: 'text' + is_nullable: 1 + +=head2 altcontactzipcode + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 altcontactcountry + + data_type: 'text' + is_nullable: 1 + +=head2 altcontactphone + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 smsalertnumber + + data_type: 'varchar' + is_nullable: 1 + size: 50 + +=head2 privacy + + data_type: 'integer' + default_value: 1 + is_nullable: 0 + +=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 => "text", is_nullable => 1 }, + "zipcode", + { data_type => "varchar", is_nullable => 1, size => 25 }, + "country", + { data_type => "text", is_nullable => 1 }, + "email", + { data_type => "mediumtext", is_nullable => 1 }, + "phone", + { data_type => "text", is_nullable => 1 }, + "mobile", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "fax", + { data_type => "mediumtext", is_nullable => 1 }, + "emailpro", + { data_type => "text", is_nullable => 1 }, + "phonepro", + { data_type => "text", is_nullable => 1 }, + "b_streetnumber", + { data_type => "varchar", is_nullable => 1, size => 10 }, + "b_streettype", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "b_address", + { data_type => "varchar", is_nullable => 1, size => 100 }, + "b_address2", + { data_type => "text", is_nullable => 1 }, + "b_city", + { data_type => "mediumtext", is_nullable => 1 }, + "b_state", + { data_type => "text", is_nullable => 1 }, + "b_zipcode", + { data_type => "varchar", is_nullable => 1, size => 25 }, + "b_country", + { data_type => "text", is_nullable => 1 }, + "b_email", + { data_type => "text", is_nullable => 1 }, + "b_phone", + { data_type => "mediumtext", is_nullable => 1 }, + "dateofbirth", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "branchcode", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, + "categorycode", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, + "dateenrolled", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "dateexpiry", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "gonenoaddress", + { data_type => "tinyint", is_nullable => 1 }, + "lost", + { data_type => "tinyint", is_nullable => 1 }, + "debarred", + { data_type => "date", datetime_undef_if_invalid => 1, 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 => "text", is_nullable => 1 }, + "altcontactzipcode", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "altcontactcountry", + { data_type => "text", is_nullable => 1 }, + "altcontactphone", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "smsalertnumber", + { data_type => "varchar", is_nullable => 1, size => 50 }, + "privacy", + { data_type => "integer", default_value => 1, is_nullable => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9T4RixqazyuA2GTQ35DFoA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm new file mode 100644 index 0000000..e5e167d --- /dev/null +++ b/Koha/Schema/Result/Deleteditem.pm @@ -0,0 +1,349 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 datelastborrowed + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 datelastseen + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "datelastborrowed", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "datelastseen", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fpbGL8KM9E/8DQlB7zyt3A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Ethnicity.pm b/Koha/Schema/Result/Ethnicity.pm new file mode 100644 index 0000000..f563552 --- /dev/null +++ b/Koha/Schema/Result/Ethnicity.pm @@ -0,0 +1,51 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JgUabuSmipIoXwODxK3k5w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ExportFormat.pm b/Koha/Schema/Result/ExportFormat.pm new file mode 100644 index 0000000..aeaaa66 --- /dev/null +++ b/Koha/Schema/Result/ExportFormat.pm @@ -0,0 +1,96 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+Cw41HZ6KpJ+LEKb+Pv8kg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Fieldmapping.pm b/Koha/Schema/Result/Fieldmapping.pm new file mode 100644 index 0000000..d77c400 --- /dev/null +++ b/Koha/Schema/Result/Fieldmapping.pm @@ -0,0 +1,75 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RmUV5FinlrPMd/Kj43u8wA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/HoldFillTarget.pm b/Koha/Schema/Result/HoldFillTarget.pm new file mode 100644 index 0000000..44ea6ab --- /dev/null +++ b/Koha/Schema/Result/HoldFillTarget.pm @@ -0,0 +1,142 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 source_branchcode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "source_branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "source_branchcode" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I581AHLqEeq7uY+MReecNA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ImportBatch.pm b/Koha/Schema/Result/ImportBatch.pm new file mode 100644 index 0000000..582f10d --- /dev/null +++ b/Koha/Schema/Result/ImportBatch.pm @@ -0,0 +1,213 @@ +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 Kohalate_id + + data_type: 'integer' + is_nullable: 1 + +=head2 branchcode + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +=head2 num_biblios + + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 overlay_action + + data_type: 'enum' + default_value: 'create_new' + extra: {list => ["replace","create_new","use_Kohalate","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 + +=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 }, + "Kohalate_id", + { data_type => "integer", is_nullable => 1 }, + "branchcode", + { data_type => "varchar", is_nullable => 1, size => 10 }, + "num_biblios", + { 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "overlay_action", + { + data_type => "enum", + default_value => "create_new", + extra => { list => ["replace", "create_new", "use_Kohalate", "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 }, +); +__PACKAGE__->set_primary_key("import_batch_id"); + +=head1 RELATIONS + +=head2 import_records + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GAuiLHQU2mXQsbAzfgGRww + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ImportBiblio.pm b/Koha/Schema/Result/ImportBiblio.pm new file mode 100644 index 0000000..ea4445d --- /dev/null +++ b/Koha/Schema/Result/ImportBiblio.pm @@ -0,0 +1,121 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "import_record", + "Koha::Schema::Result::ImportRecord", + { import_record_id => "import_record_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4OJlvjqXThiabdn1C8V5eA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ImportItem.pm b/Koha/Schema/Result/ImportItem.pm new file mode 100644 index 0000000..76adb57 --- /dev/null +++ b/Koha/Schema/Result/ImportItem.pm @@ -0,0 +1,110 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "import_record", + "Koha::Schema::Result::ImportRecord", + { import_record_id => "import_record_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qeU1GRuzO0vKYexAWTZubg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ImportRecord.pm b/Koha/Schema/Result/ImportRecord.pm new file mode 100644 index 0000000..eb1fe65 --- /dev/null +++ b/Koha/Schema/Result/ImportRecord.pm @@ -0,0 +1,248 @@ +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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 import_date + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "import_date", + { data_type => "date", datetime_undef_if_invalid => 1, 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_biblios + +Type: has_many + +Related object: L + +=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 + +=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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "import_batch", + "Koha::Schema::Result::ImportBatch", + { import_batch_id => "import_batch_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tV0QuZ/ZL2W4yt/RUjJPLw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ImportRecordMatches.pm b/Koha/Schema/Result/ImportRecordMatches.pm new file mode 100644 index 0000000..439e8e2 --- /dev/null +++ b/Koha/Schema/Result/ImportRecordMatches.pm @@ -0,0 +1,73 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "import_record", + "Koha::Schema::Result::ImportRecord", + { import_record_id => "import_record_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bh4RaUSRCXaWR5uLUVU1XA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm new file mode 100644 index 0000000..f4f012c --- /dev/null +++ b/Koha/Schema/Result/Issue.pm @@ -0,0 +1,184 @@ +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: 1 + +=head2 itemnumber + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 date_due + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 lastreneweddate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 issuedate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "lastreneweddate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "return", + { data_type => "varchar", is_nullable => 1, size => 4 }, + "renewals", + { data_type => "tinyint", is_nullable => 1 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "issuedate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jBd5qIa6ldBf1v4j5Dr3LQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Issuingrule.pm b/Koha/Schema/Result/Issuingrule.pm new file mode 100644 index 0000000..7a735c0 --- /dev/null +++ b/Koha/Schema/Result/Issuingrule.pm @@ -0,0 +1,188 @@ +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' + datetime_undef_if_invalid: 1 + 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 + +=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", datetime_undef_if_invalid => 1, 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 }, +); +__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m++iGEZn62Gvvl34+AT1lg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm new file mode 100644 index 0000000..eb5a18c --- /dev/null +++ b/Koha/Schema/Result/Item.pm @@ -0,0 +1,542 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 datelastborrowed + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 datelastseen + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "datelastborrowed", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "datelastseen", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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", datetime_undef_if_invalid => 1, 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 + +=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 + +=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 + +=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 + +=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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "biblioitemnumber", + "Koha::Schema::Result::Biblioitem", + { biblioitemnumber => "biblioitemnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 homebranch + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "homebranch", + "Koha::Schema::Result::Branch", + { branchcode => "homebranch" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 holdingbranch + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "holdingbranch", + "Koha::Schema::Result::Branch", + { branchcode => "holdingbranch" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 old_issues + +Type: has_many + +Related object: L + +=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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tE2onWzRsN1yQqDYUZA7Cg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ItemCirculationAlertPreference.pm b/Koha/Schema/Result/ItemCirculationAlertPreference.pm new file mode 100644 index 0000000..7c1695a --- /dev/null +++ b/Koha/Schema/Result/ItemCirculationAlertPreference.pm @@ -0,0 +1,74 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wj2RCmzkFQ+2fc1QXAVdpw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm new file mode 100644 index 0000000..5c026f9 --- /dev/null +++ b/Koha/Schema/Result/Itemtype.pm @@ -0,0 +1,112 @@ +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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Web4rsWX3zjDrSezAXAV7w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/LanguageDescription.pm b/Koha/Schema/Result/LanguageDescription.pm new file mode 100644 index 0000000..423945a --- /dev/null +++ b/Koha/Schema/Result/LanguageDescription.pm @@ -0,0 +1,74 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RVDl2q3rwZolv/iHRzf9jg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/LanguageRfc4646ToIso639.pm b/Koha/Schema/Result/LanguageRfc4646ToIso639.pm new file mode 100644 index 0000000..c0f7850 --- /dev/null +++ b/Koha/Schema/Result/LanguageRfc4646ToIso639.pm @@ -0,0 +1,58 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uqgbcPTrNLWILGP2XTxtfA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/LanguageScriptBidi.pm b/Koha/Schema/Result/LanguageScriptBidi.pm new file mode 100644 index 0000000..3f30f74 --- /dev/null +++ b/Koha/Schema/Result/LanguageScriptBidi.pm @@ -0,0 +1,49 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3mBI5n7rrQr1Rcr1A2YFaw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/LanguageScriptMapping.pm b/Koha/Schema/Result/LanguageScriptMapping.pm new file mode 100644 index 0000000..8851782 --- /dev/null +++ b/Koha/Schema/Result/LanguageScriptMapping.pm @@ -0,0 +1,49 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/cj+tVTmZebZ70qFtbe/A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/LanguageSubtagRegistry.pm b/Koha/Schema/Result/LanguageSubtagRegistry.pm new file mode 100644 index 0000000..98b65f2 --- /dev/null +++ b/Koha/Schema/Result/LanguageSubtagRegistry.pm @@ -0,0 +1,74 @@ +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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y0Z6y58MqvtFB41sVYEiCw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm new file mode 100644 index 0000000..38a8c72 --- /dev/null +++ b/Koha/Schema/Result/Letter.pm @@ -0,0 +1,115 @@ +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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U90WA5lGvbBPqjbEYAIhHg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MarcMatcher.pm b/Koha/Schema/Result/MarcMatcher.pm new file mode 100644 index 0000000..22620cf --- /dev/null +++ b/Koha/Schema/Result/MarcMatcher.pm @@ -0,0 +1,129 @@ +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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gYZbgVeSC0VU4gvfA8SmMA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MarcSubfieldStructure.pm b/Koha/Schema/Result/MarcSubfieldStructure.pm new file mode 100644 index 0000000..0eea435 --- /dev/null +++ b/Koha/Schema/Result/MarcSubfieldStructure.pm @@ -0,0 +1,179 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dptA2fphZR+VmitOLJNqMA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MarcTagStructure.pm b/Koha/Schema/Result/MarcTagStructure.pm new file mode 100644 index 0000000..11e1fc9 --- /dev/null +++ b/Koha/Schema/Result/MarcTagStructure.pm @@ -0,0 +1,94 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lng5E7zc2vmAbCr6Nu3enQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Matchcheck.pm b/Koha/Schema/Result/Matchcheck.pm new file mode 100644 index 0000000..092c1c7 --- /dev/null +++ b/Koha/Schema/Result/Matchcheck.pm @@ -0,0 +1,113 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "matcher", + "Koha::Schema::Result::MarcMatcher", + { matcher_id => "matcher_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 source_matchpoint + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "source_matchpoint", + "Koha::Schema::Result::Matchpoint", + { matchpoint_id => "source_matchpoint_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 target_matchpoint + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "target_matchpoint", + "Koha::Schema::Result::Matchpoint", + { matchpoint_id => "target_matchpoint_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tp2KtodNiAzeSAPqeNFM4g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MatcherMatchpoint.pm b/Koha/Schema/Result/MatcherMatchpoint.pm new file mode 100644 index 0000000..af5b8d6 --- /dev/null +++ b/Koha/Schema/Result/MatcherMatchpoint.pm @@ -0,0 +1,81 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "matcher", + "Koha::Schema::Result::MarcMatcher", + { matcher_id => "matcher_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 matchpoint + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "matchpoint", + "Koha::Schema::Result::Matchpoint", + { matchpoint_id => "matchpoint_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iYwFUyksk/kIHmvT6mxWLQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Matchpoint.pm b/Koha/Schema/Result/Matchpoint.pm new file mode 100644 index 0000000..1804c2c --- /dev/null +++ b/Koha/Schema/Result/Matchpoint.pm @@ -0,0 +1,144 @@ +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 + +=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 + +=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 + +=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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "matcher", + "Koha::Schema::Result::MarcMatcher", + { matcher_id => "matcher_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bMxLiGhpiVbqOciCkcDHWg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MatchpointComponent.pm b/Koha/Schema/Result/MatchpointComponent.pm new file mode 100644 index 0000000..ee88281 --- /dev/null +++ b/Koha/Schema/Result/MatchpointComponent.pm @@ -0,0 +1,132 @@ +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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "matchpoint", + "Koha::Schema::Result::Matchpoint", + { matchpoint_id => "matchpoint_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5wBVWJqU7W1kj6QnZ+1F8g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MatchpointComponentNorm.pm b/Koha/Schema/Result/MatchpointComponentNorm.pm new file mode 100644 index 0000000..876fddd --- /dev/null +++ b/Koha/Schema/Result/MatchpointComponentNorm.pm @@ -0,0 +1,81 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "matchpoint_component", + "Koha::Schema::Result::MatchpointComponent", + { matchpoint_component_id => "matchpoint_component_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CTVHBQeGssk1UXvJcKtv9w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Message.pm b/Koha/Schema/Result/Message.pm new file mode 100644 index 0000000..0968385 --- /dev/null +++ b/Koha/Schema/Result/Message.pm @@ -0,0 +1,86 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("message_id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2fV14ixoblFkERpfqtALJg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MessageAttribute.pm b/Koha/Schema/Result/MessageAttribute.pm new file mode 100644 index 0000000..d226ee4 --- /dev/null +++ b/Koha/Schema/Result/MessageAttribute.pm @@ -0,0 +1,92 @@ +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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n9qt9ewU6Ip0UDbR1LUxIg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MessageQueue.pm b/Koha/Schema/Result/MessageQueue.pm new file mode 100644 index 0000000..860337f --- /dev/null +++ b/Koha/Schema/Result/MessageQueue.pm @@ -0,0 +1,173 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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 + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 message_transport_type + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "message_transport_type", + "Koha::Schema::Result::MessageTransportType", + { message_transport_type => "message_transport_type" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kejB6QUcGZfk9yDWBl6itQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MessageTransport.pm b/Koha/Schema/Result/MessageTransport.pm new file mode 100644 index 0000000..d06d8145 --- /dev/null +++ b/Koha/Schema/Result/MessageTransport.pm @@ -0,0 +1,158 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "message_attribute", + "Koha::Schema::Result::MessageAttribute", + { message_attribute_id => "message_attribute_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 message_transport_type + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "message_transport_type", + "Koha::Schema::Result::MessageTransportType", + { message_transport_type => "message_transport_type" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 letter + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "letter", + "Koha::Schema::Result::Letter", + { + branchcode => "branchcode", + code => "letter_code", + module => "letter_module", + }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xqW+6zFz0bX2olSUppJb3g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/MessageTransportType.pm b/Koha/Schema/Result/MessageTransportType.pm new file mode 100644 index 0000000..6dcf4b6 --- /dev/null +++ b/Koha/Schema/Result/MessageTransportType.pm @@ -0,0 +1,95 @@ +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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RYjZ7mngvesXBnCIz6bjEg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/NeedMergeAuthority.pm b/Koha/Schema/Result/NeedMergeAuthority.pm new file mode 100644 index 0000000..2ea2248 --- /dev/null +++ b/Koha/Schema/Result/NeedMergeAuthority.pm @@ -0,0 +1,57 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ssUomXv2n88op/6sqAOKJA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Notify.pm b/Koha/Schema/Result/Notify.pm new file mode 100644 index 0000000..ee4c9fc --- /dev/null +++ b/Koha/Schema/Result/Notify.pm @@ -0,0 +1,90 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 notify_send_date + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "notify_send_date", + { data_type => "date", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4OsVAI8NrVSGnQ4smOhQlw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Nozebra.pm b/Koha/Schema/Result/Nozebra.pm new file mode 100644 index 0000000..82de7b7 --- /dev/null +++ b/Koha/Schema/Result/Nozebra.pm @@ -0,0 +1,64 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kTVpVVpPSYQ6X9rPSN8GPA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OaiSet.pm b/Koha/Schema/Result/OaiSet.pm new file mode 100644 index 0000000..8a55344 --- /dev/null +++ b/Koha/Schema/Result/OaiSet.pm @@ -0,0 +1,106 @@ +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 + +=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 + +=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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UnOWTaBLIvEolHMaxp4JWg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OaiSetsBiblio.pm b/Koha/Schema/Result/OaiSetsBiblio.pm new file mode 100644 index 0000000..03cae24 --- /dev/null +++ b/Koha/Schema/Result/OaiSetsBiblio.pm @@ -0,0 +1,82 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 set + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "set", + "Koha::Schema::Result::OaiSet", + { id => "set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S1FSdGQJX4U9tfIAZucCIQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OaiSetsDescription.pm b/Koha/Schema/Result/OaiSetsDescription.pm new file mode 100644 index 0000000..a7ed9dc --- /dev/null +++ b/Koha/Schema/Result/OaiSetsDescription.pm @@ -0,0 +1,66 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "set", + "Koha::Schema::Result::OaiSet", + { id => "set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JbDudH5UenZEKhQxYnDRgg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OaiSetsMapping.pm b/Koha/Schema/Result/OaiSetsMapping.pm new file mode 100644 index 0000000..964bfdd --- /dev/null +++ b/Koha/Schema/Result/OaiSetsMapping.pm @@ -0,0 +1,82 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "set", + "Koha::Schema::Result::OaiSet", + { id => "set_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n4qI7EQymjL8+XFtlcP9FQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm new file mode 100644 index 0000000..e2ef2ae --- /dev/null +++ b/Koha/Schema/Result/OldIssue.pm @@ -0,0 +1,184 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 lastreneweddate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 issuedate + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "lastreneweddate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "return", + { data_type => "varchar", is_nullable => 1, size => 4 }, + "renewals", + { data_type => "tinyint", is_nullable => 1 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "issuedate", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GUqssVtKjL59cmiotm9coQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm new file mode 100644 index 0000000..9714730 --- /dev/null +++ b/Koha/Schema/Result/OldReserve.pm @@ -0,0 +1,254 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 reminderdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 cancellationdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 itemnumber + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 waitingdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 expirationdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "reminderdate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "cancellationdate", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "itemnumber", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "waitingdate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "expirationdate", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key("reserve_id"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F4uNnzNnrF9u6Y/+aymgMQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/OpacNews.pm b/Koha/Schema/Result/OpacNews.pm new file mode 100644 index 0000000..3779895 --- /dev/null +++ b/Koha/Schema/Result/OpacNews.pm @@ -0,0 +1,103 @@ +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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 expirationdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "expirationdate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "number", + { data_type => "integer", is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("idnew"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xqfqOrjPcMVfkPBbMoLQTg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Overduerule.pm b/Koha/Schema/Result/Overduerule.pm new file mode 100644 index 0000000..35a43e6 --- /dev/null +++ b/Koha/Schema/Result/Overduerule.pm @@ -0,0 +1,123 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lPQx6Po24p7Hfj1XWWpPjg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Patroncard.pm b/Koha/Schema/Result/Patroncard.pm new file mode 100644 index 0000000..2f8d5b2 --- /dev/null +++ b/Koha/Schema/Result/Patroncard.pm @@ -0,0 +1,90 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("cardid"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A22+EWhPJQ+sdfso7qWdjA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Patronimage.pm b/Koha/Schema/Result/Patronimage.pm new file mode 100644 index 0000000..b9044d9 --- /dev/null +++ b/Koha/Schema/Result/Patronimage.pm @@ -0,0 +1,75 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "cardnumber", + "Koha::Schema::Result::Borrower", + { cardnumber => "cardnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pP4rzrk8SGbeuTyN7FE72Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/PendingOfflineOperation.pm b/Koha/Schema/Result/PendingOfflineOperation.pm new file mode 100644 index 0000000..2d1ee05 --- /dev/null +++ b/Koha/Schema/Result/PendingOfflineOperation.pm @@ -0,0 +1,96 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K+4ksw+AoNYQmuKJYURZ6g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Permission.pm b/Koha/Schema/Result/Permission.pm new file mode 100644 index 0000000..44e7ed4 --- /dev/null +++ b/Koha/Schema/Result/Permission.pm @@ -0,0 +1,100 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "module_bit", + "Koha::Schema::Result::Userflag", + { bit => "module_bit" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 user_permissions + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GrCjAEVwF/MWuG1v1AB6Uw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Printer.pm b/Koha/Schema/Result/Printer.pm new file mode 100644 index 0000000..f42b975 --- /dev/null +++ b/Koha/Schema/Result/Printer.pm @@ -0,0 +1,59 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdJN8Uh6wdIz1hpasUro3w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/PrintersProfile.pm b/Koha/Schema/Result/PrintersProfile.pm new file mode 100644 index 0000000..c7cee45 --- /dev/null +++ b/Koha/Schema/Result/PrintersProfile.pm @@ -0,0 +1,137 @@ +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 Kohalate_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, + }, + "Kohalate_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", "Kohalate_id", "paper_bin", "creator"], +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qreJ4vvVhkVfvLmV6HtEVw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Quote.pm b/Koha/Schema/Result/Quote.pm new file mode 100644 index 0000000..7b525d5 --- /dev/null +++ b/Koha/Schema/Result/Quote.pm @@ -0,0 +1,68 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oUsIAXrcOeV4vefDw52LDA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Rating.pm b/Koha/Schema/Result/Rating.pm new file mode 100644 index 0000000..1cb3bf0 --- /dev/null +++ b/Koha/Schema/Result/Rating.pm @@ -0,0 +1,103 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("borrowernumber", "biblionumber"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EW6YoBUEz9zzhbfKdpti4Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/RepeatableHoliday.pm b/Koha/Schema/Result/RepeatableHoliday.pm new file mode 100644 index 0000000..d91f599 --- /dev/null +++ b/Koha/Schema/Result/RepeatableHoliday.pm @@ -0,0 +1,88 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:97mzlxhFNWqvag1helFmqg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ReportsDictionary.pm b/Koha/Schema/Result/ReportsDictionary.pm new file mode 100644 index 0000000..067805d --- /dev/null +++ b/Koha/Schema/Result/ReportsDictionary.pm @@ -0,0 +1,95 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 date_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 saved_sql + + data_type: 'text' + is_nullable: 1 + +=head2 area + + data_type: 'integer' + is_nullable: 1 + +=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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "date_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "saved_sql", + { data_type => "text", is_nullable => 1 }, + "area", + { data_type => "integer", is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DoHPXnWdY6CvBFW3z7hUVQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm new file mode 100644 index 0000000..5cad3c4 --- /dev/null +++ b/Koha/Schema/Result/Reserve.pm @@ -0,0 +1,278 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 reminderdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 cancellationdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 itemnumber + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +=head2 waitingdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 expirationdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "reminderdate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "cancellationdate", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "itemnumber", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "waitingdate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "expirationdate", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key("reserve_id"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 branchcode + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "branchcode", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CmTX9CmD+4foyLsBusrIZQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Reserveconstraint.pm b/Koha/Schema/Result/Reserveconstraint.pm new file mode 100644 index 0000000..752a510 --- /dev/null +++ b/Koha/Schema/Result/Reserveconstraint.pm @@ -0,0 +1,78 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "biblionumber", + { data_type => "integer", default_value => 0, is_nullable => 0 }, + "biblioitemnumber", + { data_type => "integer", is_nullable => 1 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AiOq1MioZ5ihnOCWXeQ64g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Review.pm b/Koha/Schema/Result/Review.pm new file mode 100644 index 0000000..7ae7b8d --- /dev/null +++ b/Koha/Schema/Result/Review.pm @@ -0,0 +1,126 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key("reviewid"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g265D3ibOtXJkn987UYiMQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Roadtype.pm b/Koha/Schema/Result/Roadtype.pm new file mode 100644 index 0000000..c8a3213 --- /dev/null +++ b/Koha/Schema/Result/Roadtype.pm @@ -0,0 +1,51 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1e7ZbT9C0jJ4wiOwIv7+0A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/SavedReport.pm b/Koha/Schema/Result/SavedReport.pm new file mode 100644 index 0000000..989dff7 --- /dev/null +++ b/Koha/Schema/Result/SavedReport.pm @@ -0,0 +1,68 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pUvQBI3IeMcbmKs01y6KSQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/SavedSql.pm b/Koha/Schema/Result/SavedSql.pm new file mode 100644 index 0000000..2484d86 --- /dev/null +++ b/Koha/Schema/Result/SavedSql.pm @@ -0,0 +1,131 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 last_modified + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 savedsql + + data_type: 'text' + is_nullable: 1 + +=head2 last_run + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + 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 + +=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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "last_modified", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "savedsql", + { data_type => "text", is_nullable => 1 }, + "last_run", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + 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 }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o2TYPotjew8axVaQD7ouNQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/SearchHistory.pm b/Koha/Schema/Result/SearchHistory.pm new file mode 100644 index 0000000..cdfdf5e --- /dev/null +++ b/Koha/Schema/Result/SearchHistory.pm @@ -0,0 +1,85 @@ +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: 'varchar' + is_nullable: 0 + size: 255 + +=head2 total + + data_type: 'integer' + is_nullable: 0 + +=head2 time + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + 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 => "varchar", is_nullable => 0, size => 255 }, + "total", + { data_type => "integer", is_nullable => 0 }, + "time", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aGVWzlJre3f9esvYkHpglA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Serial.pm b/Koha/Schema/Result/Serial.pm new file mode 100644 index 0000000..42ff6d1 --- /dev/null +++ b/Koha/Schema/Result/Serial.pm @@ -0,0 +1,139 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 notes + + data_type: 'text' + is_nullable: 1 + +=head2 publisheddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 itemnumber + + data_type: 'text' + is_nullable: 1 + +=head2 claimdate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "notes", + { data_type => "text", is_nullable => 1 }, + "publisheddate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "itemnumber", + { data_type => "text", is_nullable => 1 }, + "claimdate", + { data_type => "date", datetime_undef_if_invalid => 1, 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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2FboN1dkwN9UCpuoEzkwiQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Serialitem.pm b/Koha/Schema/Result/Serialitem.pm new file mode 100644 index 0000000..aa1470d --- /dev/null +++ b/Koha/Schema/Result/Serialitem.pm @@ -0,0 +1,82 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "serialid", + "Koha::Schema::Result::Serial", + { serialid => "serialid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 itemnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "itemnumber", + "Koha::Schema::Result::Item", + { itemnumber => "itemnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sa6RxCKdk2YlwHhLYSlHeQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/ServicesThrottle.pm b/Koha/Schema/Result/ServicesThrottle.pm new file mode 100644 index 0000000..5276f03 --- /dev/null +++ b/Koha/Schema/Result/ServicesThrottle.pm @@ -0,0 +1,51 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HJbG3IV7/qAS5mtoMApIxA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Session.pm b/Koha/Schema/Result/Session.pm new file mode 100644 index 0000000..4a65570 --- /dev/null +++ b/Koha/Schema/Result/Session.pm @@ -0,0 +1,49 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:12dstPzya/O9nRoT7ePIVQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/SocialData.pm b/Koha/Schema/Result/SocialData.pm new file mode 100644 index 0000000..47603dd --- /dev/null +++ b/Koha/Schema/Result/SocialData.pm @@ -0,0 +1,86 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NhLiXsKt98U3kJObufoTPg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/SpecialHoliday.pm b/Koha/Schema/Result/SpecialHoliday.pm new file mode 100644 index 0000000..25b3aaf --- /dev/null +++ b/Koha/Schema/Result/SpecialHoliday.pm @@ -0,0 +1,99 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XzRAXh8KB0lArGpdhsOCjA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Statistic.pm b/Koha/Schema/Result/Statistic.pm new file mode 100644 index 0000000..eedf99e --- /dev/null +++ b/Koha/Schema/Result/Statistic.pm @@ -0,0 +1,121 @@ +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' + datetime_undef_if_invalid: 1 + 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 + +=cut + +__PACKAGE__->add_columns( + "datetime", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + 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 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wK9dO7I8TE1ua7UvbMQ6pQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Stopword.pm b/Koha/Schema/Result/Stopword.pm new file mode 100644 index 0000000..da7c6e9 --- /dev/null +++ b/Koha/Schema/Result/Stopword.pm @@ -0,0 +1,41 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yb+fcVgzulzEBVLccsJ3HA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Subscription.pm b/Koha/Schema/Result/Subscription.pm new file mode 100644 index 0000000..92ca9be --- /dev/null +++ b/Koha/Schema/Result/Subscription.pm @@ -0,0 +1,454 @@ +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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, +); +__PACKAGE__->set_primary_key("subscriptionid"); + +=head1 RELATIONS + +=head2 subscriptionroutinglists + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pXa+CXVm26QnyZb30YRFTw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Subscriptionhistory.pm b/Koha/Schema/Result/Subscriptionhistory.pm new file mode 100644 index 0000000..6da2393 --- /dev/null +++ b/Koha/Schema/Result/Subscriptionhistory.pm @@ -0,0 +1,98 @@ +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' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 histenddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "histenddate", + { data_type => "date", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kzh9PMlyAa9UM/KwDuhBPA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Subscriptionroutinglist.pm b/Koha/Schema/Result/Subscriptionroutinglist.pm new file mode 100644 index 0000000..04959cb --- /dev/null +++ b/Koha/Schema/Result/Subscriptionroutinglist.pm @@ -0,0 +1,98 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 subscriptionid + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "subscriptionid", + "Koha::Schema::Result::Subscription", + { subscriptionid => "subscriptionid" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ht7iEYtWn5KljhfffijXXA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Suggestion.pm b/Koha/Schema/Result/Suggestion.pm new file mode 100644 index 0000000..a2ce66a --- /dev/null +++ b/Koha/Schema/Result/Suggestion.pm @@ -0,0 +1,292 @@ +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' + datetime_undef_if_invalid: 1 + default_value: '0000-00-00' + is_nullable: 0 + +=head2 managedby + + data_type: 'integer' + is_nullable: 1 + +=head2 manageddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 acceptedby + + data_type: 'integer' + is_nullable: 1 + +=head2 accepteddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 rejectedby + + data_type: 'integer' + is_nullable: 1 + +=head2 rejecteddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + 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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => "0000-00-00", + is_nullable => 0, + }, + "managedby", + { data_type => "integer", is_nullable => 1 }, + "manageddate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "acceptedby", + { data_type => "integer", is_nullable => 1 }, + "accepteddate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "rejectedby", + { data_type => "integer", is_nullable => 1 }, + "rejecteddate", + { data_type => "date", datetime_undef_if_invalid => 1, 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", + datetime_undef_if_invalid => 1, + 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TB8wAz0nUt9cesy9DHJ+qg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Systempreference.pm b/Koha/Schema/Result/Systempreference.pm new file mode 100644 index 0000000..6dacb47 --- /dev/null +++ b/Koha/Schema/Result/Systempreference.pm @@ -0,0 +1,72 @@ +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::systempreferences + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rru2fTAfeZyu7cVNn0Wo8A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Tag.pm b/Koha/Schema/Result/Tag.pm new file mode 100644 index 0000000..355e5e8 --- /dev/null +++ b/Koha/Schema/Result/Tag.pm @@ -0,0 +1,51 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cUkr8YhxsGXERugW785qHQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/TagAll.pm b/Koha/Schema/Result/TagAll.pm new file mode 100644 index 0000000..afe8750 --- /dev/null +++ b/Koha/Schema/Result/TagAll.pm @@ -0,0 +1,117 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("tag_id"); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3c/wXxKTK8UGWXZMOCfoA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/TagsApproval.pm b/Koha/Schema/Result/TagsApproval.pm new file mode 100644 index 0000000..555c4b7 --- /dev/null +++ b/Koha/Schema/Result/TagsApproval.pm @@ -0,0 +1,115 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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 + +=cut + +__PACKAGE__->belongs_to( + "approved_by", + "Koha::Schema::Result::Borrower", + { borrowernumber => "approved_by" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + +=head2 tags_indexes + +Type: has_many + +Related object: L + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tZcWehHP7d59BXU7ifwzdQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/TagsIndex.pm b/Koha/Schema/Result/TagsIndex.pm new file mode 100644 index 0000000..d7993a6 --- /dev/null +++ b/Koha/Schema/Result/TagsIndex.pm @@ -0,0 +1,91 @@ +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 term + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "term", + "Koha::Schema::Result::TagsApproval", + { term => "term" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SqWsC9PYGKjn6Z/FU4DXCg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/TmpHoldsqueue.pm b/Koha/Schema/Result/TmpHoldsqueue.pm new file mode 100644 index 0000000..9cf6fd2 --- /dev/null +++ b/Koha/Schema/Result/TmpHoldsqueue.pm @@ -0,0 +1,145 @@ +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' + datetime_undef_if_invalid: 1 + 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", datetime_undef_if_invalid => 1, 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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SZ4vl2+HDy/d2+m+EZvkw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/UserPermission.pm b/Koha/Schema/Result/UserPermission.pm new file mode 100644 index 0000000..a0d1bc8 --- /dev/null +++ b/Koha/Schema/Result/UserPermission.pm @@ -0,0 +1,107 @@ +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 + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 permission + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "permission", + "Koha::Schema::Result::Permission", + { code => "code", module_bit => "module_bit" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KIr4VJNs0oSkOPQJDtVihg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Userflag.pm b/Koha/Schema/Result/Userflag.pm new file mode 100644 index 0000000..a2c9b39 --- /dev/null +++ b/Koha/Schema/Result/Userflag.pm @@ -0,0 +1,82 @@ +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 + +=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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jwveYk4qt7FT37lLzx2i+w + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Virtualshelfcontent.pm b/Koha/Schema/Result/Virtualshelfcontent.pm new file mode 100644 index 0000000..0ea0c8f --- /dev/null +++ b/Koha/Schema/Result/Virtualshelfcontent.pm @@ -0,0 +1,142 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "borrowernumber", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, +); + +=head1 RELATIONS + +=head2 shelfnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "shelfnumber", + "Koha::Schema::Result::Virtualshelve", + { shelfnumber => "shelfnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ggKcS8IjwImd+QOoXhLA8A + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Virtualshelfshare.pm b/Koha/Schema/Result/Virtualshelfshare.pm new file mode 100644 index 0000000..3254422 --- /dev/null +++ b/Koha/Schema/Result/Virtualshelfshare.pm @@ -0,0 +1,115 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key("id"); + +=head1 RELATIONS + +=head2 shelfnumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "shelfnumber", + "Koha::Schema::Result::Virtualshelve", + { shelfnumber => "shelfnumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FwbZsfDRGRdmlqin3RXfDg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm new file mode 100644 index 0000000..6f90137 --- /dev/null +++ b/Koha/Schema/Result/Virtualshelve.pm @@ -0,0 +1,164 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + 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 + +=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 + +=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 + +=cut + +__PACKAGE__->belongs_to( + "owner", + "Koha::Schema::Result::Borrower", + { borrowernumber => "owner" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vfquVQgLUkYUTY8fmeviXA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Z3950server.pm b/Koha/Schema/Result/Z3950server.pm new file mode 100644 index 0000000..5adb642 --- /dev/null +++ b/Koha/Schema/Result/Z3950server.pm @@ -0,0 +1,167 @@ +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.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EwtBo1aIqlIqmBVL3Xlacg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Zebraqueue.pm b/Koha/Schema/Result/Zebraqueue.pm new file mode 100644 index 0000000..3f1c499 --- /dev/null +++ b/Koha/Schema/Result/Zebraqueue.pm @@ -0,0 +1,96 @@ +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' + datetime_undef_if_invalid: 1 + 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", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, +); +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5plTy9bbFFnCBvR6wNcFMQ + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 1.7.9.5