b24588af7552cbddcf49325b71594f6f570fe61c
[kivitendo-erp.git] / SL / DB / MetaSetup / SepaExportItem.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::SepaExportItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('sepa_export_items');
10
11 __PACKAGE__->meta->columns(
12   amount                       => { type => 'numeric', precision => 25, scale => 5 },
13   ap_id                        => { type => 'integer' },
14   ar_id                        => { type => 'integer' },
15   chart_id                     => { type => 'integer', not_null => 1 },
16   end_to_end_id                => { type => 'varchar', length => 35 },
17   executed                     => { type => 'boolean', default => 'false' },
18   execution_date               => { type => 'date' },
19   id                           => { type => 'integer', not_null => 1, sequence => 'id' },
20   our_bic                      => { type => 'varchar', length => 100 },
21   our_depositor                => { type => 'text' },
22   our_iban                     => { type => 'varchar', length => 100 },
23   payment_type                 => { type => 'text', default => 'without_skonto' },
24   reference                    => { type => 'varchar', length => 140 },
25   requested_execution_date     => { type => 'date' },
26   sepa_export_id               => { type => 'integer', not_null => 1 },
27   skonto_amount                => { type => 'numeric', precision => 25, scale => 5 },
28   vc_bic                       => { type => 'varchar', length => 100 },
29   vc_depositor                 => { type => 'text' },
30   vc_iban                      => { type => 'varchar', length => 100 },
31   vc_mandate_date_of_signature => { type => 'date' },
32   vc_mandator_id               => { type => 'text' },
33 );
34
35 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
36
37 __PACKAGE__->meta->foreign_keys(
38   ap => {
39     class       => 'SL::DB::PurchaseInvoice',
40     key_columns => { ap_id => 'id' },
41   },
42
43   ar => {
44     class       => 'SL::DB::Invoice',
45     key_columns => { ar_id => 'id' },
46   },
47
48   chart => {
49     class       => 'SL::DB::Chart',
50     key_columns => { chart_id => 'id' },
51   },
52
53   sepa_export => {
54     class       => 'SL::DB::SepaExport',
55     key_columns => { sepa_export_id => 'id' },
56   },
57 );
58
59 1;
60 ;