]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/ShopOrderItem.pm
Merge branch 'master' of http://wagnertech.de/git/mfinanz
[mfinanz.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   discount            => { type => 'float', precision => 4, scale => 4 },
15   discount_code       => { type => 'text' },
16   id                  => { type => 'serial', not_null => 1 },
17   identifier          => { type => 'text' },
18   partnumber          => { type => 'text' },
19   position            => { type => 'integer' },
20   price               => { type => 'numeric', precision => 15, scale => 5 },
21   quantity            => { type => 'numeric', precision => 25, scale => 5 },
22   shop_order_id       => { type => 'integer' },
23   shop_trans_id       => { type => 'text', not_null => 1 },
24   tax_rate            => { type => 'numeric', precision => 15, scale => 2 },
25 );
26
27 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
28
29 __PACKAGE__->meta->foreign_keys(
30   shop_order => {
31     class       => 'SL::DB::ShopOrder',
32     key_columns => { shop_order_id => 'id' },
33   },
34 );
35
36 1;
37 ;