Merge fix
[kivitendo-erp.git] / SL / DB / MetaSetup / RMAItem.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::RMAItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'rmaitems',
11
12   columns => [
13     trans_id      => { type => 'integer' },
14     parts_id      => { type => 'integer' },
15     description   => { type => 'text' },
16     qty           => { type => 'float', precision => 4 },
17     base_qty      => { type => 'float', precision => 4 },
18     sellprice     => { type => 'numeric', precision => 5, scale => 15 },
19     discount      => { type => 'float', precision => 4 },
20     project_id    => { type => 'integer' },
21     reqdate       => { type => 'date' },
22     ship          => { type => 'float', precision => 4 },
23     serialnumber  => { type => 'text' },
24     id            => { type => 'integer', not_null => 1, sequence => 'orderitemsid' },
25     itime         => { type => 'timestamp', default => 'now()' },
26     mtime         => { type => 'timestamp' },
27     pricegroup_id => { type => 'integer' },
28     rmanumber     => { type => 'text' },
29     transdate     => { type => 'text' },
30     cusrmanumber  => { type => 'text' },
31     unit          => { type => 'varchar', length => 20 },
32   ],
33
34   primary_key_columns => [ 'id' ],
35
36   allow_inline_column_values => 1,
37
38   foreign_keys => [
39     parts => {
40       class       => 'SL::DB::Part',
41       key_columns => { parts_id => 'id' },
42     },
43   ],
44 );
45
46 1;
47 ;