 	
 	lastUpdate timestamp NOT NULL,
 
-	FOREIGN KEY (owner, collection) REFERENCES users.collections (owner, name),
+	creationTime timestamp DEFAULT now(),
 
 	CONSTRAINT uniqueHistoryKey UNIQUE (owner, collection,
 										cardName, setName,

GRANT select, insert, update ON TABLE users.collectionContents to userManager;

/*Append only collection history is VERY important*/
GRANT select, insert ON TABLE users.collectionHistory to userManager;


/*
Lock all permissions down to minimum.

NOTE: Do this as user 'postgres' in the userdata table!

