]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/RequirementSpecPicture.pm
Pflichtenhefte: Unterstützung für an Textblöcke angehängte Bilder
[mfinanz.git] / SL / DB / MetaSetup / RequirementSpecPicture.pm
diff --git a/SL/DB/MetaSetup/RequirementSpecPicture.pm b/SL/DB/MetaSetup/RequirementSpecPicture.pm
new file mode 100644 (file)
index 0000000..731c5ca
--- /dev/null
@@ -0,0 +1,49 @@
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::RequirementSpecPicture;
+
+use strict;
+
+use base qw(SL::DB::Object);
+
+__PACKAGE__->meta->table('requirement_spec_pictures');
+
+__PACKAGE__->meta->columns(
+  description            => { type => 'text' },
+  id                     => { type => 'serial', not_null => 1 },
+  itime                  => { type => 'timestamp', default => 'now()', not_null => 1 },
+  mtime                  => { type => 'timestamp' },
+  number                 => { type => 'text', not_null => 1 },
+  picture_content        => { type => 'bytea', not_null => 1 },
+  picture_content_type   => { type => 'text', not_null => 1 },
+  picture_file_name      => { type => 'text', not_null => 1 },
+  picture_height         => { type => 'integer', not_null => 1 },
+  picture_mtime          => { type => 'timestamp', default => 'now()', not_null => 1 },
+  picture_width          => { type => 'integer', not_null => 1 },
+  position               => { type => 'integer', not_null => 1 },
+  requirement_spec_id    => { type => 'integer', not_null => 1 },
+  text_block_id          => { type => 'integer', not_null => 1 },
+  thumbnail_content      => { type => 'bytea', not_null => 1 },
+  thumbnail_content_type => { type => 'text', not_null => 1 },
+  thumbnail_height       => { type => 'integer', not_null => 1 },
+  thumbnail_width        => { type => 'integer', not_null => 1 },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+__PACKAGE__->meta->allow_inline_column_values(1);
+
+__PACKAGE__->meta->foreign_keys(
+  requirement_spec => {
+    class       => 'SL::DB::RequirementSpec',
+    key_columns => { requirement_spec_id => 'id' },
+  },
+
+  text_block => {
+    class       => 'SL::DB::RequirementSpecTextBlock',
+    key_columns => { text_block_id => 'id' },
+  },
+);
+
+1;
+;