#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::DB::Item::PriceLevel;

use strict;
use warnings;

use lib '/app/tools/common/lib';
use Common::DB::ItemCollection;
use Common::DB::Item;
use base 'Common::DB::Item';

use constant kPriceLevelFull          => 1;
use constant kPriceLevelMid           => 2;
use constant kPriceLevelBudget        => 3;
use constant kPriceLevelAlbumDownload => 4;
use constant kPriceLevelTrackDownload => 5;
use constant kPriceLevelPromo         => 6;

use constant kTypePhysical => 1;
use constant kTypeDigital  => 2;

use constant kTable => 'price_level';
use constant kDB    => Common::DB::Item::kCommonDB();

sub GetAll {
    my ($class) = @_;
    my $sql = "SELECT * FROM price_level ORDER BY type, price_level_id";

    return $class->SUPER::GetAll($sql);
}

1;

