d1fe5063e639899a89fb9cf90a19496fc84a383d
[kivitendo-erp.git] / SL / DB / MetaSetup / PriceRuleItem.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::PriceRuleItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('price_rule_items');
10
11 __PACKAGE__->meta->columns(
12   custom_variable_configs_id => { type => 'integer' },
13   id                         => { type => 'serial', not_null => 1 },
14   itime                      => { type => 'timestamp' },
15   mtime                      => { type => 'timestamp' },
16   op                         => { type => 'text' },
17   price_rules_id             => { type => 'integer', not_null => 1 },
18   type                       => { type => 'text' },
19   value_date                 => { type => 'date' },
20   value_int                  => { type => 'integer' },
21   value_num                  => { type => 'numeric', precision => 15, scale => 5 },
22   value_text                 => { type => 'text' },
23 );
24
25 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
26
27 __PACKAGE__->meta->foreign_keys(
28   custom_variable_configs => {
29     class       => 'SL::DB::CustomVariableConfig',
30     key_columns => { custom_variable_configs_id => 'id' },
31   },
32
33   price_rules => {
34     class       => 'SL::DB::PriceRule',
35     key_columns => { price_rules_id => 'id' },
36   },
37 );
38
39 1;
40 ;