]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/ReclamationItem.pm
date error in mapping
[mfinanz.git] / SL / DB / MetaSetup / ReclamationItem.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::ReclamationItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('reclamation_items');
10
11 __PACKAGE__->meta->columns(
12   active_discount_source => { type => 'text', default => '', not_null => 1 },
13   active_price_source    => { type => 'text', default => '', not_null => 1 },
14   base_qty               => { type => 'float', precision => 4, scale => 4 },
15   description            => { type => 'text' },
16   discount               => { type => 'float', precision => 4, scale => 4 },
17   id                     => { type => 'serial', not_null => 1 },
18   itime                  => { type => 'timestamp', default => 'now()' },
19   lastcost               => { type => 'numeric', precision => 15, scale => 5 },
20   longdescription        => { type => 'text' },
21   mtime                  => { type => 'timestamp' },
22   parts_id               => { type => 'integer', not_null => 1 },
23   position               => { type => 'integer', not_null => 1 },
24   price_factor           => { type => 'numeric', default => 1, precision => 15, scale => 5 },
25   price_factor_id        => { type => 'integer' },
26   pricegroup_id          => { type => 'integer' },
27   project_id             => { type => 'integer' },
28   qty                    => { type => 'float', precision => 4, scale => 4 },
29   reason_description_ext => { type => 'text' },
30   reason_description_int => { type => 'text' },
31   reason_id              => { type => 'integer', not_null => 1 },
32   reclamation_id         => { type => 'integer', not_null => 1 },
33   reqdate                => { type => 'date' },
34   sellprice              => { type => 'numeric', precision => 15, scale => 5 },
35   serialnumber           => { type => 'text' },
36   unit                   => { type => 'varchar', length => 20 },
37 );
38
39 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
40
41 __PACKAGE__->meta->allow_inline_column_values(1);
42
43 __PACKAGE__->meta->foreign_keys(
44   part => {
45     class       => 'SL::DB::Part',
46     key_columns => { parts_id => 'id' },
47   },
48
49   price_factor_obj => {
50     class       => 'SL::DB::PriceFactor',
51     key_columns => { price_factor_id => 'id' },
52   },
53
54   pricegroup => {
55     class       => 'SL::DB::Pricegroup',
56     key_columns => { pricegroup_id => 'id' },
57   },
58
59   project => {
60     class       => 'SL::DB::Project',
61     key_columns => { project_id => 'id' },
62   },
63
64   reason => {
65     class       => 'SL::DB::ReclamationReason',
66     key_columns => { reason_id => 'id' },
67   },
68
69   reclamation => {
70     class       => 'SL::DB::Reclamation',
71     key_columns => { reclamation_id => 'id' },
72   },
73
74   unit_obj => {
75     class       => 'SL::DB::Unit',
76     key_columns => { unit => 'name' },
77   },
78 );
79
80 1;
81 ;