]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/Dunning.pm
DBO Update - alle normalen Models hinzugefügt.
[mfinanz.git] / SL / DB / MetaSetup / Dunning.pm
diff --git a/SL/DB/MetaSetup/Dunning.pm b/SL/DB/MetaSetup/Dunning.pm
new file mode 100644 (file)
index 0000000..bc4ba87
--- /dev/null
@@ -0,0 +1,45 @@
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::Dunning;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->setup(
+  table   => 'dunning',
+
+  columns => [
+    id                 => { type => 'integer', not_null => 1, sequence => 'id' },
+    trans_id           => { type => 'integer' },
+    dunning_id         => { type => 'integer' },
+    dunning_level      => { type => 'integer' },
+    transdate          => { type => 'date' },
+    duedate            => { type => 'date' },
+    fee                => { type => 'numeric', precision => 5, scale => 15 },
+    interest           => { type => 'numeric', precision => 5, scale => 15 },
+    dunning_config_id  => { type => 'integer' },
+    itime              => { type => 'timestamp', default => 'now()' },
+    mtime              => { type => 'timestamp' },
+    fee_interest_ar_id => { type => 'integer' },
+  ],
+
+  primary_key_columns => [ 'id' ],
+
+  allow_inline_column_values => 1,
+
+  foreign_keys => [
+    dunning_config => {
+      class       => 'SL::DB::DunningConfig',
+      key_columns => { dunning_config_id => 'id' },
+    },
+
+    fee_interest_ar => {
+      class       => 'SL::DB::Invoice',
+      key_columns => { fee_interest_ar_id => 'id' },
+    },
+  ],
+);
+
+1;
+;