Library for storing snapshots
composer require treehouselabs/snapshot-store
Basic SQL schema for snapshot store. Adapt to your needs.
CREATE TABLE `snapshot_store` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aggregate_id` varchar(255) NOT NULL,
`payload` longtext NOT NULL,
`version` int(11) NOT NULL,
`datetime_created` datetime NOT NULL,
`checksum` varchar(255) NOT NULL,
`class` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_D1F10563D0BBCCBEBF1CD3C3` (`aggregate_id`,`version`,`checksum`)
)
composer test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.