a3e70288a7afb9d1faac8d294f8a302b717be5e7
[kivitendo-erp.git] / SL / DB / MetaSetup / PriceRule.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::PriceRule;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('price_rules');
10
11 __PACKAGE__->meta->columns(
12   discount  => { type => 'numeric', precision => 15, scale => 5 },
13   id        => { type => 'serial', not_null => 1 },
14   itime     => { type => 'timestamp' },
15   mtime     => { type => 'timestamp' },
16   name      => { type => 'text' },
17   obsolete  => { type => 'boolean', default => 'false', not_null => 1 },
18   price     => { type => 'numeric', precision => 15, scale => 5 },
19   priority  => { type => 'integer', default => 3, not_null => 1 },
20   reduction => { type => 'numeric', precision => 15, scale => 5 },
21   type      => { type => 'text' },
22 );
23
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
25
26 1;
27 ;