"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/Koha/Schema/Result/AuthTagStructure.pm" (23 Feb 2021, 2465 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AuthTagStructure.pm" see the Fossies "Dox" file reference documentation.

    1 use utf8;
    2 package Koha::Schema::Result::AuthTagStructure;
    3 
    4 # Created by DBIx::Class::Schema::Loader
    5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
    6 
    7 =head1 NAME
    8 
    9 Koha::Schema::Result::AuthTagStructure
   10 
   11 =cut
   12 
   13 use strict;
   14 use warnings;
   15 
   16 use base 'DBIx::Class::Core';
   17 
   18 =head1 TABLE: C<auth_tag_structure>
   19 
   20 =cut
   21 
   22 __PACKAGE__->table("auth_tag_structure");
   23 
   24 =head1 ACCESSORS
   25 
   26 =head2 authtypecode
   27 
   28   data_type: 'varchar'
   29   default_value: (empty string)
   30   is_foreign_key: 1
   31   is_nullable: 0
   32   size: 10
   33 
   34 =head2 tagfield
   35 
   36   data_type: 'varchar'
   37   default_value: (empty string)
   38   is_nullable: 0
   39   size: 3
   40 
   41 =head2 liblibrarian
   42 
   43   data_type: 'varchar'
   44   default_value: (empty string)
   45   is_nullable: 0
   46   size: 255
   47 
   48 =head2 libopac
   49 
   50   data_type: 'varchar'
   51   default_value: (empty string)
   52   is_nullable: 0
   53   size: 255
   54 
   55 =head2 repeatable
   56 
   57   data_type: 'tinyint'
   58   default_value: 0
   59   is_nullable: 0
   60 
   61 =head2 mandatory
   62 
   63   data_type: 'tinyint'
   64   default_value: 0
   65   is_nullable: 0
   66 
   67 =head2 authorised_value
   68 
   69   data_type: 'varchar'
   70   is_nullable: 1
   71   size: 10
   72 
   73 =cut
   74 
   75 __PACKAGE__->add_columns(
   76   "authtypecode",
   77   {
   78     data_type => "varchar",
   79     default_value => "",
   80     is_foreign_key => 1,
   81     is_nullable => 0,
   82     size => 10,
   83   },
   84   "tagfield",
   85   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
   86   "liblibrarian",
   87   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
   88   "libopac",
   89   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
   90   "repeatable",
   91   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   92   "mandatory",
   93   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   94   "authorised_value",
   95   { data_type => "varchar", is_nullable => 1, size => 10 },
   96 );
   97 
   98 =head1 PRIMARY KEY
   99 
  100 =over 4
  101 
  102 =item * L</authtypecode>
  103 
  104 =item * L</tagfield>
  105 
  106 =back
  107 
  108 =cut
  109 
  110 __PACKAGE__->set_primary_key("authtypecode", "tagfield");
  111 
  112 =head1 RELATIONS
  113 
  114 =head2 authtypecode
  115 
  116 Type: belongs_to
  117 
  118 Related object: L<Koha::Schema::Result::AuthType>
  119 
  120 =cut
  121 
  122 __PACKAGE__->belongs_to(
  123   "authtypecode",
  124   "Koha::Schema::Result::AuthType",
  125   { authtypecode => "authtypecode" },
  126   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
  127 );
  128 
  129 
  130 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
  131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ulaQnDuxrwYgCKJ/Qygaw
  132 
  133 sub koha_object_class {
  134     'Koha::Authority::Tag';
  135 }
  136 sub koha_objects_class {
  137     'Koha::Authority::Tags';
  138 }
  139 
  140 1;