kivitendo/SL/DB/MetaSetup/Assembly.pm @ 1d1f3140
82515b2d | Sven Schöling | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::Assembly;
|
||||
use strict;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
82515b2d | Sven Schöling | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->table('assembly');
|
||
__PACKAGE__->meta->columns(
|
||||
3eb3d1b1 | Moritz Bunkus | assembly_id => { type => 'serial', not_null => 1 },
|
||
b8b112a3 | Sven Schöling | bom => { type => 'boolean' },
|
||
10348b51 | Geoffrey Richardson | id => { type => 'integer', not_null => 1 },
|
||
b8b112a3 | Sven Schöling | itime => { type => 'timestamp', default => 'now()' },
|
||
mtime => { type => 'timestamp' },
|
||||
d8381bdd | Geoffrey Richardson | parts_id => { type => 'integer', not_null => 1 },
|
||
ea8bf973 | Geoffrey Richardson | position => { type => 'integer' },
|
||
a3511b2d | Moritz Bunkus | qty => { type => 'float', scale => 4 },
|
||
82515b2d | Sven Schöling | );
|
||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->primary_key_columns([ 'assembly_id' ]);
|
||
__PACKAGE__->meta->allow_inline_column_values(1);
|
||||
d8381bdd | Geoffrey Richardson | __PACKAGE__->meta->foreign_keys(
|
||
10348b51 | Geoffrey Richardson | assembly_part => {
|
||
class => 'SL::DB::Part',
|
||||
key_columns => { id => 'id' },
|
||||
},
|
||||
part => {
|
||||
d8381bdd | Geoffrey Richardson | class => 'SL::DB::Part',
|
||
key_columns => { parts_id => 'id' },
|
||||
},
|
||||
);
|
||||
82515b2d | Sven Schöling | 1;
|
||
;
|