| 
      
            Line 0
          
      
      
        Link Here
      
     | 
  
          
            
              | 0 | 
              -   | 
              1 | 
              use utf8;  | 
            
            
               | 
               | 
              2 | 
              package Koha::Schema::Result::ImportSource;  | 
            
            
              | 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::ImportSource  | 
            
            
              | 10 | 
               | 
            
            
              | 11 | 
              =cut  | 
            
            
              | 12 | 
               | 
            
            
              | 13 | 
              use strict;  | 
            
            
              | 14 | 
              use warnings;  | 
            
            
              | 15 | 
               | 
            
            
              | 16 | 
              use base 'DBIx::Class::Core';  | 
            
            
              | 17 | 
               | 
            
            
              | 18 | 
              =head1 TABLE: C<import_source>  | 
            
            
              | 19 | 
               | 
            
            
              | 20 | 
              =cut  | 
            
            
              | 21 | 
               | 
            
            
              | 22 | 
              __PACKAGE__->table("import_source"); | 
            
            
              | 23 | 
               | 
            
            
              | 24 | 
              =head1 ACCESSORS  | 
            
            
              | 25 | 
               | 
            
            
              | 26 | 
              =head2 import_source_id  | 
            
            
              | 27 | 
               | 
            
            
              | 28 | 
                data_type: 'integer'  | 
            
            
              | 29 | 
                is_auto_increment: 1  | 
            
            
              | 30 | 
                is_nullable: 0  | 
            
            
              | 31 | 
               | 
            
            
              | 32 | 
              =head2 name  | 
            
            
              | 33 | 
               | 
            
            
              | 34 | 
                data_type: 'text'  | 
            
            
              | 35 | 
                is_nullable: 0  | 
            
            
              | 36 | 
               | 
            
            
              | 37 | 
              =head2 patron_id  | 
            
            
              | 38 | 
               | 
            
            
              | 39 | 
                data_type: 'integer'  | 
            
            
              | 40 | 
                is_foreign_key: 1  | 
            
            
              | 41 | 
                is_nullable: 0  | 
            
            
              | 42 | 
               | 
            
            
              | 43 | 
              =cut  | 
            
            
              | 44 | 
               | 
            
            
              | 45 | 
              __PACKAGE__->add_columns(  | 
            
            
              | 46 | 
                "import_source_id",  | 
            
            
              | 47 | 
                { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | 
            
            
              | 48 | 
                "name",  | 
            
            
              | 49 | 
                { data_type => "text", is_nullable => 0 }, | 
            
            
              | 50 | 
                "patron_id",  | 
            
            
              | 51 | 
                { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | 
            
            
              | 52 | 
              );  | 
            
            
              | 53 | 
               | 
            
            
              | 54 | 
              =head1 PRIMARY KEY  | 
            
            
              | 55 | 
               | 
            
            
              | 56 | 
              =over 4  | 
            
            
              | 57 | 
               | 
            
            
              | 58 | 
              =item * L</import_source_id>  | 
            
            
              | 59 | 
               | 
            
            
              | 60 | 
              =back  | 
            
            
              | 61 | 
               | 
            
            
              | 62 | 
              =cut  | 
            
            
              | 63 | 
               | 
            
            
              | 64 | 
              __PACKAGE__->set_primary_key("import_source_id"); | 
            
            
              | 65 | 
               | 
            
            
              | 66 | 
              =head1 RELATIONS  | 
            
            
              | 67 | 
               | 
            
            
              | 68 | 
              =head2 patron  | 
            
            
              | 69 | 
               | 
            
            
              | 70 | 
              Type: belongs_to  | 
            
            
              | 71 | 
               | 
            
            
              | 72 | 
              Related object: L<Koha::Schema::Result::Borrower>  | 
            
            
              | 73 | 
               | 
            
            
              | 74 | 
              =cut  | 
            
            
              | 75 | 
               | 
            
            
              | 76 | 
              __PACKAGE__->belongs_to(  | 
            
            
              | 77 | 
                "patron",  | 
            
            
              | 78 | 
                "Koha::Schema::Result::Borrower",  | 
            
            
              | 79 | 
                { borrowernumber => "patron_id" }, | 
            
            
              | 80 | 
                { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | 
            
            
              | 81 | 
              );  | 
            
            
              | 82 | 
               | 
            
            
              | 83 | 
               | 
            
            
              | 84 | 
              # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-02 19:57:13  | 
            
            
              | 85 | 
              # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oz4padFuRhd33AKaO5hRRQ  | 
            
            
              | 86 | 
               | 
            
            
              | 87 | 
               | 
            
            
              | 88 | 
              # You can replace this text with custom code or comments, and it will be preserved on regeneration  | 
            
            
              | 89 | 
              1;  |