8860e8c8054104ec6563ac5335839b18d1747775
[kivitendo-erp.git] / SL / DB / MetaSetup / PeriodicInvoicesConfig.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::PeriodicInvoicesConfig;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'periodic_invoices_configs',
11
12   columns => [
13     id                      => { type => 'integer', not_null => 1, sequence => 'id' },
14     oe_id                   => { type => 'integer', not_null => 1 },
15     periodicity             => { type => 'varchar', length => 10, not_null => 1 },
16     print                   => { type => 'boolean', default => 'false' },
17     printer_id              => { type => 'integer' },
18     copies                  => { type => 'integer' },
19     active                  => { type => 'boolean', default => 'true' },
20     start_date              => { type => 'date' },
21     ar_chart_id             => { type => 'integer', not_null => 1 },
22     terminated              => { type => 'boolean', default => 'false' },
23     end_date                => { type => 'date' },
24     extend_automatically_by => { type => 'integer' },
25   ],
26
27   primary_key_columns => [ 'id' ],
28
29   foreign_keys => [
30     ar_chart => {
31       class       => 'SL::DB::Chart',
32       key_columns => { ar_chart_id => 'id' },
33     },
34
35     order => {
36       class       => 'SL::DB::Order',
37       key_columns => { oe_id => 'id' },
38     },
39
40     printer => {
41       class       => 'SL::DB::Printer',
42       key_columns => { printer_id => 'id' },
43     },
44   ],
45 );
46
47 1;
48 ;