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