ae7d21aab1f8aca10a3db702c5e20db476629857
[kivitendo-erp.git] / SL / DB / MetaSetup / ShopOrderItem.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::ShopOrderItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('shop_order_items');
10
11 __PACKAGE__->meta->columns(
12   active_price_source => { type => 'text' },
13   description         => { type => 'text' },
14   id                  => { type => 'serial', not_null => 1 },
15   partnumber          => { type => 'text' },
16   position            => { type => 'integer' },
17   price               => { type => 'numeric', precision => 15, scale => 5 },
18   quantity            => { type => 'numeric', precision => 25, scale => 5 },
19   shop_order_id       => { type => 'integer' },
20   shop_trans_id       => { type => 'text', not_null => 1 },
21   tax_rate            => { type => 'numeric', precision => 15, scale => 2 },
22 );
23
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
25
26 __PACKAGE__->meta->foreign_keys(
27   shop_order => {
28     class       => 'SL::DB::ShopOrder',
29     key_columns => { shop_order_id => 'id' },
30   },
31 );
32
33 1;
34 ;