Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/Shipto.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'shipto',
11

  
12
  columns => [
13
    trans_id           => { type => 'integer' },
14
    shiptoname         => { type => 'varchar', length => 75 },
15
    shiptodepartment_1 => { type => 'varchar', length => 75 },
16
    shiptodepartment_2 => { type => 'varchar', length => 75 },
17
    shiptostreet       => { type => 'varchar', length => 75 },
18
    shiptozipcode      => { type => 'varchar', length => 75 },
19
    shiptocity         => { type => 'varchar', length => 75 },
20
    shiptocountry      => { type => 'varchar', length => 75 },
21
    shiptocontact      => { type => 'varchar', length => 75 },
22
    shiptophone        => { type => 'varchar', length => 30 },
23
    shiptofax          => { type => 'varchar', length => 30 },
24
    shiptoemail        => { type => 'text' },
25
    itime              => { type => 'timestamp', default => 'now()' },
26
    mtime              => { type => 'timestamp' },
27
    module             => { type => 'text' },
28
    shipto_id          => { type => 'integer', not_null => 1, sequence => 'id' },
29
    shiptocp_gender    => { type => 'text' },
30
  ],
31

  
32
  primary_key_columns => [ 'shipto_id' ],
33

  
34
  allow_inline_column_values => 1,
9
__PACKAGE__->meta->table('shipto');
10

  
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' },
29
);
30

  
31
__PACKAGE__->meta->primary_key_columns([ 'shipto_id' ]);
32

  
33
__PACKAGE__->meta->allow_inline_column_values(1);
34

  
35
__PACKAGE__->meta->relationships(
36
  ar => {
37
    class      => 'SL::DB::Invoice',
38
    column_map => { shipto_id => 'shipto_id' },
39
    type       => 'one to many',
40
  },
41

  
42
  delivery_orders => {
43
    class      => 'SL::DB::DeliveryOrder',
44
    column_map => { shipto_id => 'shipto_id' },
45
    type       => 'one to many',
46
  },
47

  
48
  oe => {
49
    class      => 'SL::DB::Order',
50
    column_map => { shipto_id => 'shipto_id' },
51
    type       => 'one to many',
52
  },
35 53
);
36 54

  
55
# __PACKAGE__->meta->initialize;
56

  
37 57
1;
38 58
;

Auch abrufbar als: Unified diff