//
//  MCTrackedChange.h
//  MCServerSupport
//
//  Created by Brent Gulanowski on 28/10/08.
//  Copyright 2008 Marketcircle, Inc. All rights reserved.
//

#import <CoreData/NSManagedObject.h>


extern NSString *kMCETEntitySyncChangeRecord;
extern NSString *kMCETEntitySyncRecordField;


@class MCTrackedChange;

@interface MCTrackedField : NSManagedObject {
	
//	NSString *name;
//	NSString *stringValue;
//	MCTrackedChange *change;
}

- (NSString *)name;
- (void)setName:(NSString *)newName;
- (NSString *)stringValue;
- (void)setStringValue:(NSString *)newStringValue;
- (MCTrackedChange *)change;
- (void)setChange:(MCTrackedChange *)newChange;

@end


@interface MCTrackedChange : NSManagedObject {

//	NSString *primaryKey;
//	NSString *tableName;
//	NSDate *timeStamp;
//	int typeInt;
//	NSString *uuid;
//	NSMutableSet *fields;
}

- (NSString *)typeName;
- (NSString *)fieldSummary;
- (void)addChangedFields:(NSDictionary *)newFields;
- (void)addChangedFieldNames:(NSArray *)fieldNames;

@end
