90% functionally complete

This commit is contained in:
David Delikat 2009-03-22 01:25:19 +00:00
parent df234709f4
commit e9d54a3171
5 changed files with 132 additions and 45 deletions

View file

@ -29,8 +29,8 @@ transactionItemid = the id if the transaction item that completes this purchase
adId = th id if the ad purchased
clicksPurchased = the number of clicks the user purchased
impressionsPurchased = the number of impressions the user purchased
storedImage = temp storage for the image
isRenewal = indicates if this purchase is a renewal -- are the counts increased or just assigned
dateOfPurchase = the date of purchase
storedImage = storage for the image
isDeleted = boolean that indicates whether the ad has been deleted from the system
=cut
@ -39,7 +39,7 @@ sub crud_definition {
my ($class, $session) = @_;
my $definition = $class->SUPER::crud_definition($session);
$definition->{tableName} = 'adSkuPurchase';
$definition->{tableKey} = 'userId';
$definition->{tableKey} = 'adSkuPurchaseId';
$definition->{properties} = {
userId => {
fieldType => 'user',
@ -61,14 +61,14 @@ sub crud_definition {
fieldType => 'integer',
defaultValue => undef,
},
dateOfPurchase => {
fieldType => 'date',
defaultValue => undef,
},
storedImage => {
fieldType => 'guid',
defaultValue => undef,
},
isRenewal => {
fieldType => 'yesNo',
defaultValue => 0,
},
isDeleted => {
fieldType => 'yesNo',
defaultValue => 0,