X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/SL/DB/MetaSetup/AssortmentItem.pm diff --git a/SL/DB/MetaSetup/AssortmentItem.pm b/SL/DB/MetaSetup/AssortmentItem.pm new file mode 100644 index 000000000..8bd1611b5 --- /dev/null +++ b/SL/DB/MetaSetup/AssortmentItem.pm @@ -0,0 +1,44 @@ +# This file has been auto-generated. Do not modify it; it will be overwritten +# by rose_auto_create_model.pl automatically. +package SL::DB::AssortmentItem; + +use strict; + +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('assortment_items'); + +__PACKAGE__->meta->columns( + assortment_id => { type => 'integer', not_null => 1 }, + charge => { type => 'boolean', default => 'true' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + parts_id => { type => 'integer', not_null => 1 }, + position => { type => 'integer', not_null => 1 }, + qty => { type => 'float', not_null => 1, precision => 4, scale => 4 }, + unit => { type => 'varchar', length => 20, not_null => 1 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'assortment_id', 'parts_id' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + +__PACKAGE__->meta->foreign_keys( + assortment => { + class => 'SL::DB::Part', + key_columns => { assortment_id => 'id' }, + }, + + part => { + class => 'SL::DB::Part', + key_columns => { parts_id => 'id' }, + }, + + unit_obj => { + class => 'SL::DB::Unit', + key_columns => { unit => 'name' }, + }, +); + +1; +;