Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / MetaSetup / RecordTemplateItem.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::RecordTemplateItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('record_template_items');
10
11 __PACKAGE__->meta->columns(
12   amount1            => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
13   amount2            => { type => 'numeric', precision => 15, scale => 5 },
14   chart_id           => { type => 'integer', not_null => 1 },
15   id                 => { type => 'serial', not_null => 1 },
16   memo               => { type => 'text' },
17   project_id         => { type => 'integer' },
18   record_template_id => { type => 'integer', not_null => 1 },
19   source             => { type => 'text' },
20   tax_id             => { type => 'integer', not_null => 1 },
21 );
22
23 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
24
25 __PACKAGE__->meta->foreign_keys(
26   chart => {
27     class       => 'SL::DB::Chart',
28     key_columns => { chart_id => 'id' },
29   },
30
31   project => {
32     class       => 'SL::DB::Project',
33     key_columns => { project_id => 'id' },
34   },
35
36   record_template => {
37     class       => 'SL::DB::RecordTemplate',
38     key_columns => { record_template_id => 'id' },
39   },
40
41   tax => {
42     class       => 'SL::DB::Tax',
43     key_columns => { tax_id => 'id' },
44   },
45 );
46
47 1;
48 ;