I think it's better to drop _$entity_seq table in favor of AUTO_INCREMENT attribute, since your software require mysql 5.x, 8.0 and you don't seem to support other DBMS.
This will drastically reduce the query performed to the database increasing the speed reachable by the software.
Also the use of LAST_INSERT_ID generate race condition and deadlock (more information available here).
I think it's better to drop
_$entity_seqtable in favor ofAUTO_INCREMENTattribute, since your software requiremysql 5.x, 8.0and you don't seem to support other DBMS.This will drastically reduce the query performed to the database increasing the speed reachable by the software.
Also the use of
LAST_INSERT_IDgenerate race condition and deadlock (more information available here).