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

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

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

  
12
  columns => [
13
    cp_id          => { type => 'integer', not_null => 1, sequence => 'id' },
14
    cp_cv_id       => { type => 'integer' },
15
    cp_title       => { type => 'varchar', length => 75 },
16
    cp_givenname   => { type => 'varchar', length => 75 },
17
    cp_name        => { type => 'varchar', length => 75 },
18
    cp_email       => { type => 'text' },
19
    cp_phone1      => { type => 'varchar', length => 75 },
20
    cp_phone2      => { type => 'varchar', length => 75 },
21
    itime          => { type => 'timestamp', default => 'now()' },
22
    mtime          => { type => 'timestamp' },
23
    cp_fax         => { type => 'text' },
24
    cp_mobile1     => { type => 'text' },
25
    cp_mobile2     => { type => 'text' },
26
    cp_satphone    => { type => 'text' },
27
    cp_satfax      => { type => 'text' },
28
    cp_project     => { type => 'text' },
29
    cp_privatphone => { type => 'text' },
30
    cp_privatemail => { type => 'text' },
31
    cp_abteilung   => { type => 'text' },
32
    cp_gender      => { type => 'character', length => 1 },
33
    cp_street      => { type => 'text' },
34
    cp_zipcode     => { type => 'text' },
35
    cp_city        => { type => 'text' },
36
    cp_birthday    => { type => 'date' },
37
    cp_position    => { type => 'varchar', length => 75 },
38
  ],
39

  
40
  primary_key_columns => [ 'cp_id' ],
41

  
42
  allow_inline_column_values => 1,
9
__PACKAGE__->meta->table('contacts');
10

  
11
__PACKAGE__->meta->columns(
12
  cp_id          => { type => 'integer', not_null => 1, sequence => 'id' },
13
  cp_cv_id       => { type => 'integer' },
14
  cp_title       => { type => 'varchar', length => 75 },
15
  cp_givenname   => { type => 'varchar', length => 75 },
16
  cp_name        => { type => 'varchar', length => 75 },
17
  cp_email       => { type => 'text' },
18
  cp_phone1      => { type => 'varchar', length => 75 },
19
  cp_phone2      => { type => 'varchar', length => 75 },
20
  itime          => { type => 'timestamp', default => 'now()' },
21
  mtime          => { type => 'timestamp' },
22
  cp_fax         => { type => 'text' },
23
  cp_mobile1     => { type => 'text' },
24
  cp_mobile2     => { type => 'text' },
25
  cp_satphone    => { type => 'text' },
26
  cp_satfax      => { type => 'text' },
27
  cp_project     => { type => 'text' },
28
  cp_privatphone => { type => 'text' },
29
  cp_privatemail => { type => 'text' },
30
  cp_abteilung   => { type => 'text' },
31
  cp_gender      => { type => 'character', length => 1 },
32
  cp_street      => { type => 'text' },
33
  cp_zipcode     => { type => 'text' },
34
  cp_city        => { type => 'text' },
35
  cp_birthday    => { type => 'date' },
36
  cp_position    => { type => 'varchar', length => 75 },
43 37
);
44 38

  
39
__PACKAGE__->meta->primary_key_columns([ 'cp_id' ]);
40

  
41
__PACKAGE__->meta->allow_inline_column_values(1);
42

  
43
# __PACKAGE__->meta->initialize;
44

  
45 45
1;
46 46
;

Auch abrufbar als: Unified diff