]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/CustomVariable.pm
DBO Update - alle normalen Models hinzugefügt.
[mfinanz.git] / SL / DB / MetaSetup / CustomVariable.pm
diff --git a/SL/DB/MetaSetup/CustomVariable.pm b/SL/DB/MetaSetup/CustomVariable.pm
new file mode 100644 (file)
index 0000000..bb2380a
--- /dev/null
@@ -0,0 +1,38 @@
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::CustomVariable;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->setup(
+  table   => 'custom_variables',
+
+  columns => [
+    id              => { type => 'integer', not_null => 1, sequence => 'custom_variables_id' },
+    config_id       => { type => 'integer', not_null => 1 },
+    trans_id        => { type => 'integer', not_null => 1 },
+    bool_value      => { type => 'boolean' },
+    timestamp_value => { type => 'timestamp' },
+    text_value      => { type => 'text' },
+    number_value    => { type => 'numeric', precision => 5, scale => 25 },
+    itime           => { type => 'timestamp', default => 'now()' },
+    mtime           => { type => 'timestamp' },
+    sub_module      => { type => 'text' },
+  ],
+
+  primary_key_columns => [ 'id' ],
+
+  allow_inline_column_values => 1,
+
+  foreign_keys => [
+    config => {
+      class       => 'SL::DB::CustomVariableConfig',
+      key_columns => { config_id => 'id' },
+    },
+  ],
+);
+
+1;
+;