create or replace table accountpurchases
(
	id int auto_increment
		primary key,
	accountId int not null,
	salesPackageName varchar(30) null,
	salesPackageId int null,
	cost int null,
	usingCredits int(1) null,
	source varchar(30) null,
	premium int(1) null,
	coinPurchase int(1) null,
	known int(1) not null,
	constraint accountpurchases_ibfk_1
		foreign key (accountId) references accounts (id)
);

create or replace index accountId
	on accountpurchases (accountId);

