Projekt

Allgemein

Profil

Herunterladen (867 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
f97b0778 Sven Schöling
# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
7ade1b95 Moritz Bunkus
package SL::DB::Price;
f97b0778 Sven Schöling
use strict;

2ea07c13 Sven Schöling
use parent qw(SL::DB::Object);
f97b0778 Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->table('prices');

__PACKAGE__->meta->columns(
3eb3d1b1 Moritz Bunkus
id => { type => 'serial', not_null => 1 },
d817962e Geoffrey Richardson
parts_id => { type => 'integer', not_null => 1 },
a3511b2d Moritz Bunkus
price => { type => 'numeric', precision => 15, scale => 5 },
d817962e Geoffrey Richardson
pricegroup_id => { type => 'integer', not_null => 1 },
b8b112a3 Sven Schöling
);

__PACKAGE__->meta->primary_key_columns([ 'id' ]);

d817962e Geoffrey Richardson
__PACKAGE__->meta->unique_keys([ 'parts_id', 'pricegroup_id' ]);

b8b112a3 Sven Schöling
__PACKAGE__->meta->foreign_keys(
parts => {
class => 'SL::DB::Part',
key_columns => { parts_id => 'id' },
},

pricegroup => {
class => 'SL::DB::Pricegroup',
key_columns => { pricegroup_id => 'id' },
},
f97b0778 Sven Schöling
);

1;
;