@SneakyThrows
    public void createTable(Model model, long timeBucket) {
        final var table = TableHelper.getTable(model, timeBucket);
        createOrUpdateTable(table, model.getColumns(), false);
        createOrUpdateTableIndexes(table, model.getColumns(), false);
        createAdditionalTable(model, timeBucket);
    }
JDBC table installer, uses standard SQL to create tables, indices, and views.
oap-server/server-storage-plugin/storage-jdbc-hikaricp-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/common/JDBCTableInstaller.java