1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::Shipto;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('shipto');
11 __PACKAGE__->meta->columns(
12 trans_id => { type => 'integer' },
13 shiptoname => { type => 'varchar', length => 75 },
14 shiptodepartment_1 => { type => 'varchar', length => 75 },
15 shiptodepartment_2 => { type => 'varchar', length => 75 },
16 shiptostreet => { type => 'varchar', length => 75 },
17 shiptozipcode => { type => 'varchar', length => 75 },
18 shiptocity => { type => 'varchar', length => 75 },
19 shiptocountry => { type => 'varchar', length => 75 },
20 shiptocontact => { type => 'varchar', length => 75 },
21 shiptophone => { type => 'varchar', length => 30 },
22 shiptofax => { type => 'varchar', length => 30 },
23 shiptoemail => { type => 'text' },
24 itime => { type => 'timestamp', default => 'now()' },
25 mtime => { type => 'timestamp' },
26 module => { type => 'text' },
27 shipto_id => { type => 'integer', not_null => 1, sequence => 'id' },
28 shiptocp_gender => { type => 'text' },
31 __PACKAGE__->meta->primary_key_columns([ 'shipto_id' ]);
33 __PACKAGE__->meta->allow_inline_column_values(1);
35 __PACKAGE__->meta->relationships(
37 class => 'SL::DB::Invoice',
38 column_map => { shipto_id => 'shipto_id' },
39 type => 'one to many',
43 class => 'SL::DB::DeliveryOrder',
44 column_map => { shipto_id => 'shipto_id' },
45 type => 'one to many',
49 class => 'SL::DB::Order',
50 column_map => { shipto_id => 'shipto_id' },
51 type => 'one to many',
55 # __PACKAGE__->meta->initialize;