PriceRule: Erste Version
[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   op                         => { type => 'text' },
15   price_rules_id             => { type => 'integer', not_null => 1 },
16   type                       => { type => 'text' },
17   value_date                 => { type => 'date' },
18   value_int                  => { type => 'integer' },
19   value_num                  => { type => 'numeric', precision => 15, scale => 5 },
20   value_text                 => { type => 'text' },
21 );
22
23 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
24
25 __PACKAGE__->meta->foreign_keys(
26   custom_variable_configs => {
27     class       => 'SL::DB::CustomVariableConfig',
28     key_columns => { custom_variable_configs_id => 'id' },
29   },
30
31   price_rules => {
32     class       => 'SL::DB::PriceRule',
33     key_columns => { price_rules_id => 'id' },
34   },
35 );
36
37 1;
38 ;