| 
      
            Line 0
          
      
      
        Link Here
      
     | 
  
          
            
              | 0 | 
              -   | 
              1 | 
              use utf8;  | 
            
            
               | 
               | 
              2 | 
              package Koha::Schema::Result::LibraryHour;  | 
            
            
              | 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::LibraryHour  | 
            
            
              | 10 | 
               | 
            
            
              | 11 | 
              =cut  | 
            
            
              | 12 | 
               | 
            
            
              | 13 | 
              use strict;  | 
            
            
              | 14 | 
              use warnings;  | 
            
            
              | 15 | 
               | 
            
            
              | 16 | 
              use base 'DBIx::Class::Core';  | 
            
            
              | 17 | 
               | 
            
            
              | 18 | 
              =head1 TABLE: C<library_hours>  | 
            
            
              | 19 | 
               | 
            
            
              | 20 | 
              =cut  | 
            
            
              | 21 | 
               | 
            
            
              | 22 | 
              __PACKAGE__->table("library_hours"); | 
            
            
              | 23 | 
               | 
            
            
              | 24 | 
              =head1 ACCESSORS  | 
            
            
              | 25 | 
               | 
            
            
              | 26 | 
              =head2 library_id  | 
            
            
              | 27 | 
               | 
            
            
              | 28 | 
                data_type: 'varchar'  | 
            
            
              | 29 | 
                is_foreign_key: 1  | 
            
            
              | 30 | 
                is_nullable: 0  | 
            
            
              | 31 | 
                size: 10  | 
            
            
              | 32 | 
               | 
            
            
              | 33 | 
              =head2 day  | 
            
            
              | 34 | 
               | 
            
            
              | 35 | 
                data_type: 'enum'  | 
            
            
              | 36 | 
                default_value: 0  | 
            
            
              | 37 | 
                extra: {list => [0,1,2,3,4,5,6]} | 
            
            
              | 38 | 
                is_nullable: 0  | 
            
            
              | 39 | 
               | 
            
            
              | 40 | 
              =head2 open_time  | 
            
            
              | 41 | 
               | 
            
            
              | 42 | 
                data_type: 'time'  | 
            
            
              | 43 | 
                is_nullable: 1  | 
            
            
              | 44 | 
               | 
            
            
              | 45 | 
              =head2 close_time  | 
            
            
              | 46 | 
               | 
            
            
              | 47 | 
                data_type: 'time'  | 
            
            
              | 48 | 
                is_nullable: 1  | 
            
            
              | 49 | 
               | 
            
            
              | 50 | 
              =cut  | 
            
            
              | 51 | 
               | 
            
            
              | 52 | 
              __PACKAGE__->add_columns(  | 
            
            
              | 53 | 
                "library_id",  | 
            
            
              | 54 | 
                { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | 
            
            
              | 55 | 
                "day",  | 
            
            
              | 56 | 
                { | 
            
            
              | 57 | 
                  data_type => "enum",  | 
            
            
              | 58 | 
                  default_value => 0,  | 
            
            
              | 59 | 
                  extra => { list => [0 .. 6] }, | 
            
            
              | 60 | 
                  is_nullable => 0,  | 
            
            
              | 61 | 
                },  | 
            
            
              | 62 | 
                "open_time",  | 
            
            
              | 63 | 
                { data_type => "time", is_nullable => 1 }, | 
            
            
              | 64 | 
                "close_time",  | 
            
            
              | 65 | 
                { data_type => "time", is_nullable => 1 }, | 
            
            
              | 66 | 
              );  | 
            
            
              | 67 | 
               | 
            
            
              | 68 | 
              =head1 PRIMARY KEY  | 
            
            
              | 69 | 
               | 
            
            
              | 70 | 
              =over 4  | 
            
            
              | 71 | 
               | 
            
            
              | 72 | 
              =item * L</library_id>  | 
            
            
              | 73 | 
               | 
            
            
              | 74 | 
              =item * L</day>  | 
            
            
              | 75 | 
               | 
            
            
              | 76 | 
              =back  | 
            
            
              | 77 | 
               | 
            
            
              | 78 | 
              =cut  | 
            
            
              | 79 | 
               | 
            
            
              | 80 | 
              __PACKAGE__->set_primary_key("library_id", "day"); | 
            
            
              | 81 | 
               | 
            
            
              | 82 | 
              =head1 RELATIONS  | 
            
            
              | 83 | 
               | 
            
            
              | 84 | 
              =head2 library  | 
            
            
              | 85 | 
               | 
            
            
              | 86 | 
              Type: belongs_to  | 
            
            
              | 87 | 
               | 
            
            
              | 88 | 
              Related object: L<Koha::Schema::Result::Branch>  | 
            
            
              | 89 | 
               | 
            
            
              | 90 | 
              =cut  | 
            
            
              | 91 | 
               | 
            
            
              | 92 | 
              __PACKAGE__->belongs_to(  | 
            
            
              | 93 | 
                "library",  | 
            
            
              | 94 | 
                "Koha::Schema::Result::Branch",  | 
            
            
              | 95 | 
                { branchcode => "library_id" }, | 
            
            
              | 96 | 
                { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | 
            
            
              | 97 | 
              );  | 
            
            
              | 98 | 
               | 
            
            
              | 99 | 
               | 
            
            
              | 100 | 
              # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-09 04:50:00  | 
            
            
              | 101 | 
              # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+HaRcwTHecetQRA+fNytTw  | 
            
            
              | 102 | 
               | 
            
            
              | 103 | 
               | 
            
            
              | 104 | 
              # You can replace this text with custom code or comments, and it will be preserved on regeneration  | 
            
            
              | 105 | 
              1;  |