| Line 0
          
      
      
        Link Here | 
          
            
              | 0 | -  | 1 | use utf8; | 
            
              |  |  | 2 | package Koha::Schema::Result::VendorEdiAccount; | 
            
              | 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::VendorEdiAccount | 
            
              | 10 |  | 
            
              | 11 | =cut | 
            
              | 12 |  | 
            
              | 13 | use strict; | 
            
              | 14 | use warnings; | 
            
              | 15 |  | 
            
              | 16 | use base 'DBIx::Class::Core'; | 
            
              | 17 |  | 
            
              | 18 | =head1 TABLE: C<vendor_edi_accounts> | 
            
              | 19 |  | 
            
              | 20 | =cut | 
            
              | 21 |  | 
            
              | 22 | __PACKAGE__->table("vendor_edi_accounts"); | 
            
              | 23 |  | 
            
              | 24 | =head1 ACCESSORS | 
            
              | 25 |  | 
            
              | 26 | =head2 id | 
            
              | 27 |  | 
            
              | 28 |   data_type: 'integer' | 
            
              | 29 |   is_auto_increment: 1 | 
            
              | 30 |   is_nullable: 0 | 
            
              | 31 |  | 
            
              | 32 | =head2 description | 
            
              | 33 |  | 
            
              | 34 |   data_type: 'text' | 
            
              | 35 |   is_nullable: 0 | 
            
              | 36 |  | 
            
              | 37 | =head2 host | 
            
              | 38 |  | 
            
              | 39 |   data_type: 'varchar' | 
            
              | 40 |   is_nullable: 1 | 
            
              | 41 |   size: 40 | 
            
              | 42 |  | 
            
              | 43 | =head2 username | 
            
              | 44 |  | 
            
              | 45 |   data_type: 'varchar' | 
            
              | 46 |   is_nullable: 1 | 
            
              | 47 |   size: 40 | 
            
              | 48 |  | 
            
              | 49 | =head2 password | 
            
              | 50 |  | 
            
              | 51 |   data_type: 'varchar' | 
            
              | 52 |   is_nullable: 1 | 
            
              | 53 |   size: 40 | 
            
              | 54 |  | 
            
              | 55 | =head2 last_activity | 
            
              | 56 |  | 
            
              | 57 |   data_type: 'date' | 
            
              | 58 |   datetime_undef_if_invalid: 1 | 
            
              | 59 |   is_nullable: 1 | 
            
              | 60 |  | 
            
              | 61 | =head2 vendor_id | 
            
              | 62 |  | 
            
              | 63 |   data_type: 'integer' | 
            
              | 64 |   is_foreign_key: 1 | 
            
              | 65 |   is_nullable: 1 | 
            
              | 66 |  | 
            
              | 67 | =head2 download_directory | 
            
              | 68 |  | 
            
              | 69 |   data_type: 'text' | 
            
              | 70 |   is_nullable: 1 | 
            
              | 71 |  | 
            
              | 72 | =head2 upload_directory | 
            
              | 73 |  | 
            
              | 74 |   data_type: 'text' | 
            
              | 75 |   is_nullable: 1 | 
            
              | 76 |  | 
            
              | 77 | =head2 san | 
            
              | 78 |  | 
            
              | 79 |   data_type: 'varchar' | 
            
              | 80 |   is_nullable: 1 | 
            
              | 81 |   size: 20 | 
            
              | 82 |  | 
            
              | 83 | =head2 id_code_qualifier | 
            
              | 84 |  | 
            
              | 85 |   data_type: 'varchar' | 
            
              | 86 |   default_value: 14 | 
            
              | 87 |   is_nullable: 1 | 
            
              | 88 |   size: 3 | 
            
              | 89 |  | 
            
              | 90 | =head2 transport | 
            
              | 91 |  | 
            
              | 92 |   data_type: 'varchar' | 
            
              | 93 |   default_value: 'FTP' | 
            
              | 94 |   is_nullable: 1 | 
            
              | 95 |   size: 6 | 
            
              | 96 |  | 
            
              | 97 | =head2 quotes_enabled | 
            
              | 98 |  | 
            
              | 99 |   data_type: 'tinyint' | 
            
              | 100 |   default_value: 0 | 
            
              | 101 |   is_nullable: 0 | 
            
              | 102 |  | 
            
              | 103 | =head2 invoices_enabled | 
            
              | 104 |  | 
            
              | 105 |   data_type: 'tinyint' | 
            
              | 106 |   default_value: 0 | 
            
              | 107 |   is_nullable: 0 | 
            
              | 108 |  | 
            
              | 109 | =head2 orders_enabled | 
            
              | 110 |  | 
            
              | 111 |   data_type: 'tinyint' | 
            
              | 112 |   default_value: 0 | 
            
              | 113 |   is_nullable: 0 | 
            
              | 114 |  | 
            
              | 115 | =head2 shipment_budget | 
            
              | 116 |  | 
            
              | 117 |   data_type: 'integer' | 
            
              | 118 |   is_foreign_key: 1 | 
            
              | 119 |   is_nullable: 1 | 
            
              | 120 |  | 
            
              | 121 | =cut | 
            
              | 122 |  | 
            
              | 123 | __PACKAGE__->add_columns( | 
            
              | 124 |   "id", | 
            
              | 125 |   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | 
            
              | 126 |   "description", | 
            
              | 127 |   { data_type => "text", is_nullable => 0 }, | 
            
              | 128 |   "host", | 
            
              | 129 |   { data_type => "varchar", is_nullable => 1, size => 40 }, | 
            
              | 130 |   "username", | 
            
              | 131 |   { data_type => "varchar", is_nullable => 1, size => 40 }, | 
            
              | 132 |   "password", | 
            
              | 133 |   { data_type => "varchar", is_nullable => 1, size => 40 }, | 
            
              | 134 |   "last_activity", | 
            
              | 135 |   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | 
            
              | 136 |   "vendor_id", | 
            
              | 137 |   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | 
            
              | 138 |   "download_directory", | 
            
              | 139 |   { data_type => "text", is_nullable => 1 }, | 
            
              | 140 |   "upload_directory", | 
            
              | 141 |   { data_type => "text", is_nullable => 1 }, | 
            
              | 142 |   "san", | 
            
              | 143 |   { data_type => "varchar", is_nullable => 1, size => 20 }, | 
            
              | 144 |   "id_code_qualifier", | 
            
              | 145 |   { data_type => "varchar", default_value => 14, is_nullable => 1, size => 3 }, | 
            
              | 146 |   "transport", | 
            
              | 147 |   { data_type => "varchar", default_value => "FTP", is_nullable => 1, size => 6 }, | 
            
              | 148 |   "quotes_enabled", | 
            
              | 149 |   { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | 
            
              | 150 |   "invoices_enabled", | 
            
              | 151 |   { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | 
            
              | 152 |   "orders_enabled", | 
            
              | 153 |   { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | 
            
              | 154 |   "shipment_budget", | 
            
              | 155 |   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | 
            
              | 156 | ); | 
            
              | 157 |  | 
            
              | 158 | =head1 PRIMARY KEY | 
            
              | 159 |  | 
            
              | 160 | =over 4 | 
            
              | 161 |  | 
            
              | 162 | =item * L</id> | 
            
              | 163 |  | 
            
              | 164 | =back | 
            
              | 165 |  | 
            
              | 166 | =cut | 
            
              | 167 |  | 
            
              | 168 | __PACKAGE__->set_primary_key("id"); | 
            
              | 169 |  | 
            
              | 170 | =head1 RELATIONS | 
            
              | 171 |  | 
            
              | 172 | =head2 edifact_messages | 
            
              | 173 |  | 
            
              | 174 | Type: has_many | 
            
              | 175 |  | 
            
              | 176 | Related object: L<Koha::Schema::Result::EdifactMessage> | 
            
              | 177 |  | 
            
              | 178 | =cut | 
            
              | 179 |  | 
            
              | 180 | __PACKAGE__->has_many( | 
            
              | 181 |   "edifact_messages", | 
            
              | 182 |   "Koha::Schema::Result::EdifactMessage", | 
            
              | 183 |   { "foreign.edi_acct" => "self.id" }, | 
            
              | 184 |   { cascade_copy => 0, cascade_delete => 0 }, | 
            
              | 185 | ); | 
            
              | 186 |  | 
            
              | 187 | =head2 shipment_budget | 
            
              | 188 |  | 
            
              | 189 | Type: belongs_to | 
            
              | 190 |  | 
            
              | 191 | Related object: L<Koha::Schema::Result::Aqbudget> | 
            
              | 192 |  | 
            
              | 193 | =cut | 
            
              | 194 |  | 
            
              | 195 | __PACKAGE__->belongs_to( | 
            
              | 196 |   "shipment_budget", | 
            
              | 197 |   "Koha::Schema::Result::Aqbudget", | 
            
              | 198 |   { budget_id => "shipment_budget" }, | 
            
              | 199 |   { | 
            
              | 200 |     is_deferrable => 1, | 
            
              | 201 |     join_type     => "LEFT", | 
            
              | 202 |     on_delete     => "RESTRICT", | 
            
              | 203 |     on_update     => "RESTRICT", | 
            
              | 204 |   }, | 
            
              | 205 | ); | 
            
              | 206 |  | 
            
              | 207 | =head2 vendor | 
            
              | 208 |  | 
            
              | 209 | Type: belongs_to | 
            
              | 210 |  | 
            
              | 211 | Related object: L<Koha::Schema::Result::Aqbookseller> | 
            
              | 212 |  | 
            
              | 213 | =cut | 
            
              | 214 |  | 
            
              | 215 | __PACKAGE__->belongs_to( | 
            
              | 216 |   "vendor", | 
            
              | 217 |   "Koha::Schema::Result::Aqbookseller", | 
            
              | 218 |   { id => "vendor_id" }, | 
            
              | 219 |   { | 
            
              | 220 |     is_deferrable => 1, | 
            
              | 221 |     join_type     => "LEFT", | 
            
              | 222 |     on_delete     => "RESTRICT", | 
            
              | 223 |     on_update     => "RESTRICT", | 
            
              | 224 |   }, | 
            
              | 225 | ); | 
            
              | 226 |  | 
            
              | 227 |  | 
            
              | 228 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26 | 
            
              | 229 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xvt8c/scmKm1uRt3PbqIfQ | 
            
              | 230 |  | 
            
              | 231 |  | 
            
              | 232 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | 
            
              | 233 | 1; |