Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4b7f17c8

Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt

  • ID 4b7f17c8d92bff2e9f495d476a650dc3897c3097
  • Vorgänger 1fd3b737
  • Nachfolger a87694dc

DB und MetaSetup für Letter Tabellen

Unterschiede anzeigen:

SL/DB/Letter.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::Letter;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::Letter;
9

  
10
__PACKAGE__->meta->initialize;
11

  
12
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
13
__PACKAGE__->meta->make_manager_class;
14

  
15
1;
SL/DB/LetterDraft.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::LetterDraft;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::LetterDraft;
9

  
10
__PACKAGE__->meta->initialize;
11

  
12
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
13
__PACKAGE__->meta->make_manager_class;
14

  
15
1;
SL/DB/MetaSetup/Letter.pm
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::Letter;
4

  
5
use strict;
6

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

  
9
__PACKAGE__->meta->table('letter');
10

  
11
__PACKAGE__->meta->columns(
12
  id                => { type => 'integer', not_null => 1, sequence => 'id' },
13
  vc_id             => { type => 'integer', not_null => 1 },
14
  rcv_name          => { type => 'text' },
15
  rcv_contact       => { type => 'text' },
16
  rcv_address       => { type => 'text' },
17
  rcv_countrycode   => { type => 'text' },
18
  rcv_zipcode       => { type => 'text' },
19
  rcv_city          => { type => 'text' },
20
  letternumber      => { type => 'text' },
21
  jobnumber         => { type => 'text' },
22
  text_created_for  => { type => 'text' },
23
  date              => { type => 'text' },
24
  subject           => { type => 'text' },
25
  greeting          => { type => 'text' },
26
  body              => { type => 'text' },
27
  close             => { type => 'text' },
28
  company_name      => { type => 'text' },
29
  employee_id       => { type => 'integer' },
30
  employee_position => { type => 'text' },
31
  salesman_id       => { type => 'integer' },
32
  salesman_position => { type => 'text' },
33
  itime             => { type => 'timestamp', default => 'now()' },
34
  mtime             => { type => 'timestamp' },
35
  rcv_country       => { type => 'text' },
36
  page_created_for  => { type => 'text' },
37
  cp_id             => { type => 'integer' },
38
);
39

  
40
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
41

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

  
44
__PACKAGE__->meta->foreign_keys(
45
  employee => {
46
    class       => 'SL::DB::Employee',
47
    key_columns => { employee_id => 'id' },
48
  },
49

  
50
  salesman => {
51
    class       => 'SL::DB::Employee',
52
    key_columns => { salesman_id => 'id' },
53
  },
54
);
55

  
56
# __PACKAGE__->meta->initialize;
57

  
58
1;
59
;
SL/DB/MetaSetup/LetterDraft.pm
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::LetterDraft;
4

  
5
use strict;
6

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

  
9
__PACKAGE__->meta->table('letter_draft');
10

  
11
__PACKAGE__->meta->columns(
12
  body              => { type => 'text' },
13
  close             => { type => 'text' },
14
  company_name      => { type => 'text' },
15
  cp_id             => { type => 'integer' },
16
  date              => { type => 'date' },
17
  employee_id       => { type => 'integer' },
18
  employee_position => { type => 'text' },
19
  greeting          => { type => 'text' },
20
  id                => { type => 'integer', not_null => 1, sequence => 'id' },
21
  intnotes          => { type => 'text' },
22
  itime             => { type => 'timestamp', default => 'now()' },
23
  jobnumber         => { type => 'text' },
24
  letternumber      => { type => 'text' },
25
  mtime             => { type => 'timestamp' },
26
  page_created_for  => { type => 'text' },
27
  rcv_address       => { type => 'text' },
28
  rcv_city          => { type => 'text' },
29
  rcv_contact       => { type => 'text' },
30
  rcv_country       => { type => 'text' },
31
  rcv_countrycode   => { type => 'text' },
32
  rcv_name          => { type => 'text' },
33
  rcv_zipcode       => { type => 'text' },
34
  reference         => { type => 'text' },
35
  salesman_id       => { type => 'integer' },
36
  salesman_position => { type => 'text' },
37
  subject           => { type => 'text' },
38
  text_created_for  => { type => 'text' },
39
  vc_id             => { type => 'integer', not_null => 1 },
40
);
41

  
42
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
43

  
44
__PACKAGE__->meta->allow_inline_column_values(1);
45

  
46
__PACKAGE__->meta->foreign_keys(
47
  contact => {
48
    class       => 'SL::DB::Contact',
49
    key_columns => { cp_id => 'cp_id' },
50
  },
51

  
52
  employee => {
53
    class       => 'SL::DB::Employee',
54
    key_columns => { employee_id => 'id' },
55
  },
56

  
57
  salesman => {
58
    class       => 'SL::DB::Employee',
59
    key_columns => { salesman_id => 'id' },
60
  },
61
);
62

  
63
1;
64
;

Auch abrufbar als: Unified diff