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/FollowUpAccess.pm
6 6

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

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

  
12
  columns => [
13
    who  => { type => 'integer', not_null => 1 },
14
    what => { type => 'integer', not_null => 1 },
15
    id   => { type => 'serial', not_null => 1 },
16
  ],
17

  
18
  primary_key_columns => [ 'id' ],
19

  
20
  foreign_keys => [
21
    employee => {
22
      class       => 'SL::DB::Employee',
23
      key_columns => { who => 'id' },
24
    },
25

  
26
    employee_obj => {
27
      class       => 'SL::DB::Employee',
28
      key_columns => { what => 'id' },
29
    },
30
  ],
9
__PACKAGE__->meta->table('follow_up_access');
10

  
11
__PACKAGE__->meta->columns(
12
  who  => { type => 'integer', not_null => 1 },
13
  what => { type => 'integer', not_null => 1 },
14
  id   => { type => 'serial', not_null => 1 },
15
);
16

  
17
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
18

  
19
__PACKAGE__->meta->foreign_keys(
20
  employee => {
21
    class       => 'SL::DB::Employee',
22
    key_columns => { who => 'id' },
23
  },
24

  
25
  employee_obj => {
26
    class       => 'SL::DB::Employee',
27
    key_columns => { what => 'id' },
28
  },
31 29
);
32 30

  
31
# __PACKAGE__->meta->initialize;
32

  
33 33
1;
34 34
;

Auch abrufbar als: Unified diff