Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Issuingrule.pm
index d3a315e..ecc549e 100644 (file)
@@ -65,28 +65,34 @@ __PACKAGE__->table("issuingrules");
   data_type: 'integer'
   is_nullable: 1
 
-=head2 firstremind
+=head2 maxsuspensiondays
 
   data_type: 'integer'
   is_nullable: 1
 
-=head2 chargeperiod
+=head2 suspension_chargeperiod
 
   data_type: 'integer'
+  default_value: 1
   is_nullable: 1
 
-=head2 accountsent
+=head2 firstremind
 
   data_type: 'integer'
   is_nullable: 1
 
-=head2 chargename
+=head2 chargeperiod
 
-  data_type: 'varchar'
+  data_type: 'integer'
   is_nullable: 1
-  size: 100
 
-=head2 maxissueqty
+=head2 chargeperiod_charge_at
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
+=head2 accountsent
 
   data_type: 'integer'
   is_nullable: 1
@@ -131,12 +137,40 @@ __PACKAGE__->table("issuingrules");
   data_type: 'integer'
   is_nullable: 1
 
+=head2 auto_renew
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 1
+
+=head2 no_auto_renewal_after
+
+  data_type: 'integer'
+  is_nullable: 1
+
+=head2 no_auto_renewal_after_hard_limit
+
+  data_type: 'date'
+  datetime_undef_if_invalid: 1
+  is_nullable: 1
+
 =head2 reservesallowed
 
   data_type: 'smallint'
   default_value: 0
   is_nullable: 0
 
+=head2 holds_per_record
+
+  data_type: 'smallint'
+  default_value: 1
+  is_nullable: 0
+
+=head2 holds_per_day
+
+  data_type: 'smallint'
+  is_nullable: 1
+
 =head2 branchcode
 
   data_type: 'varchar'
@@ -150,6 +184,38 @@ __PACKAGE__->table("issuingrules");
   is_nullable: 1
   size: [28,6]
 
+=head2 cap_fine_to_replacement_price
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
+=head2 onshelfholds
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
+=head2 opacitemholds
+
+  data_type: 'char'
+  default_value: 'N'
+  is_nullable: 0
+  size: 1
+
+=head2 article_requests
+
+  data_type: 'enum'
+  default_value: 'no'
+  extra: {list => ["no","yes","bib_only","item_only"]}
+  is_nullable: 0
+
+=head2 note
+
+  data_type: 'varchar'
+  is_nullable: 1
+  size: 100
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -167,16 +233,18 @@ __PACKAGE__->add_columns(
   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
   "finedays",
   { data_type => "integer", is_nullable => 1 },
+  "maxsuspensiondays",
+  { data_type => "integer", is_nullable => 1 },
+  "suspension_chargeperiod",
+  { data_type => "integer", default_value => 1, is_nullable => 1 },
   "firstremind",
   { data_type => "integer", is_nullable => 1 },
   "chargeperiod",
   { data_type => "integer", is_nullable => 1 },
+  "chargeperiod_charge_at",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   "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",
@@ -196,12 +264,37 @@ __PACKAGE__->add_columns(
   { data_type => "integer", is_nullable => 1 },
   "norenewalbefore",
   { data_type => "integer", is_nullable => 1 },
+  "auto_renew",
+  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
+  "no_auto_renewal_after",
+  { data_type => "integer", is_nullable => 1 },
+  "no_auto_renewal_after_hard_limit",
+  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "reservesallowed",
   { data_type => "smallint", default_value => 0, is_nullable => 0 },
+  "holds_per_record",
+  { data_type => "smallint", default_value => 1, is_nullable => 0 },
+  "holds_per_day",
+  { data_type => "smallint", is_nullable => 1 },
   "branchcode",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
   "overduefinescap",
   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+  "cap_fine_to_replacement_price",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+  "onshelfholds",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+  "opacitemholds",
+  { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
+  "article_requests",
+  {
+    data_type => "enum",
+    default_value => "no",
+    extra => { list => ["no", "yes", "bib_only", "item_only"] },
+    is_nullable => 0,
+  },
+  "note",
+  { data_type => "varchar", is_nullable => 1, size => 100 },
 );
 
 =head1 PRIMARY KEY
@@ -221,9 +314,14 @@ __PACKAGE__->add_columns(
 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-04-08 22:40:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PpvUF1Q7wDFQgZJ6QzueKw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-05 20:49:11
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6bPX0BRWWQZrWFun3GP86Q
 
+sub koha_object_class {
+    'Koha::IssuingRule';
+}
+sub koha_objects_class {
+    'Koha::IssuingRules';
+}
 
-# You can replace this text with custom content, and it will be preserved on regeneration
 1;