I just started using Axon and I am curious where can I find DDL scripts for ALL the tables that Axon needs? I found DDL statements in code but it is a pain to extract those statements and I really do not know which tables are needed.
You probably missed the SnapshotEntry (to snapshot your aggregates) and the AssociationValueEntry (associates a Saga instance to event keys) tables.
So that makes 5 Axon Framework tables in total.
By the way, I typically let those tables be created by the Framework itself.
Not sure why we’re not providing direct DDL scripts, hope Allard could give some feedback on that.
the reason we don’t have the DDL script yet, is because when we do provide them, we want them to be optimized correctly for that type of database. We just didn’t find the time (priority) yet. Until then, having your ORM framework (like Hibernate) generate the tables for you is the easiest way forward. You can then generate the DDL scripts from the tables. I would recommend optimizing some of the tables first and giving indices proper names, for easier debugging.