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