MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / PriceFactor.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::PriceFactor;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('price_factors');
10
11 __PACKAGE__->meta->columns(
12   id          => { type => 'integer', not_null => 1, sequence => 'id' },
13   description => { type => 'text' },
14   factor      => { type => 'numeric', precision => 5, scale => 15 },
15   sortkey     => { type => 'integer' },
16 );
17
18 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
19
20 __PACKAGE__->meta->relationships(
21   invoice => {
22     class      => 'SL::DB::InvoiceItem',
23     column_map => { id => 'price_factor_id' },
24     type       => 'one to many',
25   },
26
27   orderitems => {
28     class      => 'SL::DB::OrderItem',
29     column_map => { id => 'price_factor_id' },
30     type       => 'one to many',
31   },
32
33   parts => {
34     class      => 'SL::DB::Part',
35     column_map => { id => 'price_factor_id' },
36     type       => 'one to many',
37   },
38 );
39
40 # __PACKAGE__->meta->initialize;
41
42 1;
43 ;