import { initDb, getDb, saveDb } from '../server/db.js'; await initDb(); const db = getDb(); db.run( `INSERT INTO hex_maps (name, image_width, image_height, tile_url, min_zoom, max_zoom, hex_size, origin_x, origin_y) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`, ['Aventurien 10M/Hex', 8000, 12000, '/tiles/{z}/{x}/{y}.jpg', 0, 6, 40, 0, 0], ); const rows = db.exec('SELECT last_insert_rowid()'); const id = rows[0].values[0][0]; saveDb(); console.log('Map ID:', id);