kivitendo/SL/DB/MetaSetup/Unit.pm @ ba6a1366
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::Unit;
|
||||
use strict;
|
||||
use base qw(SL::DB::Object);
|
||||
__PACKAGE__->meta->setup(
|
||||
table => 'units',
|
||||
columns => [
|
||||
name => { type => 'varchar', length => 20, not_null => 1 },
|
||||
base_unit => { type => 'varchar', length => 20 },
|
||||
factor => { type => 'numeric', precision => 5, scale => 20 },
|
||||
type => { type => 'varchar', length => 20 },
|
||||
sortkey => { type => 'integer', not_null => 1 },
|
||||
574c32c0 | Moritz Bunkus | id => { type => 'serial', not_null => 1 },
|
||
82515b2d | Sven Schöling | ],
|
||
primary_key_columns => [ 'name' ],
|
||||
574c32c0 | Moritz Bunkus | unique_key => [ 'id' ],
|
||
82515b2d | Sven Schöling | foreign_keys => [
|
||
unit => {
|
||||
class => 'SL::DB::Unit',
|
||||
key_columns => { base_unit => 'name' },
|
||||
},
|
||||
],
|
||||
);
|
||||
1;
|
||||
;
|