diff --git a/integration/docker-compose.yml b/integration/docker-compose.yml
index a9fd0e0..64332f0 100644
--- a/integration/docker-compose.yml
+++ b/integration/docker-compose.yml
@@ -2,7 +2,7 @@ version: "2"
services:
minetest:
- image: registry.rudin.io/x86/minetest:backport-0.4
+ image: registry.rudin.io/x86/minetest:0.4.17.1
restart: always
depends_on:
- "postgres"
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/DefaultSchema.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/DefaultSchema.java
index 5c7d721..4cb8de4 100644
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/DefaultSchema.java
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/DefaultSchema.java
@@ -5,9 +5,12 @@
import io.rudin.minetest.tileserver.blockdb.tables.Blocks;
-import io.rudin.minetest.tileserver.blockdb.tables.Chat;
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
import io.rudin.minetest.tileserver.blockdb.tables.Player;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
import io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata;
+import io.rudin.minetest.tileserver.blockdb.tables.Poi;
import java.util.ArrayList;
import java.util.Arrays;
@@ -16,6 +19,7 @@
import javax.annotation.Generated;
import org.jooq.Catalog;
+import org.jooq.Sequence;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
@@ -33,7 +37,7 @@
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultSchema extends SchemaImpl {
- private static final long serialVersionUID = 1405536522;
+ private static final long serialVersionUID = 181188052;
/**
* The reference instance of
@@ -46,20 +50,35 @@ public class DefaultSchema extends SchemaImpl {
public final Blocks BLOCKS = io.rudin.minetest.tileserver.blockdb.tables.Blocks.BLOCKS;
/**
- * The table chat
.
+ * The table flyway_schema_history
.
*/
- public final Chat CHAT = io.rudin.minetest.tileserver.blockdb.tables.Chat.CHAT;
+ public final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY;
/**
* The table player
.
*/
public final Player PLAYER = io.rudin.minetest.tileserver.blockdb.tables.Player.PLAYER;
+ /**
+ * The table player_inventories
.
+ */
+ public final PlayerInventories PLAYER_INVENTORIES = io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories.PLAYER_INVENTORIES;
+
+ /**
+ * The table player_inventory_items
.
+ */
+ public final PlayerInventoryItems PLAYER_INVENTORY_ITEMS = io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems.PLAYER_INVENTORY_ITEMS;
+
/**
* The table player_metadata
.
*/
public final PlayerMetadata PLAYER_METADATA = io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata.PLAYER_METADATA;
+ /**
+ * The table poi
.
+ */
+ public final Poi POI = io.rudin.minetest.tileserver.blockdb.tables.Poi.POI;
+
/**
* No further instances allowed
*/
@@ -76,6 +95,18 @@ public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
+ @Override
+ public final List> getSequences() {
+ List result = new ArrayList();
+ result.addAll(getSequences0());
+ return result;
+ }
+
+ private final List> getSequences0() {
+ return Arrays.>asList(
+ Sequences.POI_ID_SEQ);
+ }
+
@Override
public final List> getTables() {
List result = new ArrayList();
@@ -86,8 +117,11 @@ public final List> getTables() {
private final List> getTables0() {
return Arrays.>asList(
Blocks.BLOCKS,
- Chat.CHAT,
+ FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY,
Player.PLAYER,
- PlayerMetadata.PLAYER_METADATA);
+ PlayerInventories.PLAYER_INVENTORIES,
+ PlayerInventoryItems.PLAYER_INVENTORY_ITEMS,
+ PlayerMetadata.PLAYER_METADATA,
+ Poi.POI);
}
}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/Indexes.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/Indexes.java
index 6d422b5..ce4d1cc 100644
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/Indexes.java
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/Indexes.java
@@ -5,8 +5,12 @@
import io.rudin.minetest.tileserver.blockdb.tables.Blocks;
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
import io.rudin.minetest.tileserver.blockdb.tables.Player;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
import io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata;
+import io.rudin.minetest.tileserver.blockdb.tables.Poi;
import javax.annotation.Generated;
@@ -34,8 +38,13 @@ public class Indexes {
public static final Index BLOCKS_PKEY = Indexes0.BLOCKS_PKEY;
public static final Index BLOCKS_TIME = Indexes0.BLOCKS_TIME;
+ public static final Index FLYWAY_SCHEMA_HISTORY_PK = Indexes0.FLYWAY_SCHEMA_HISTORY_PK;
+ public static final Index FLYWAY_SCHEMA_HISTORY_S_IDX = Indexes0.FLYWAY_SCHEMA_HISTORY_S_IDX;
public static final Index PLAYER_PKEY = Indexes0.PLAYER_PKEY;
+ public static final Index PLAYER_INVENTORIES_PKEY = Indexes0.PLAYER_INVENTORIES_PKEY;
+ public static final Index PLAYER_INVENTORY_ITEMS_PKEY = Indexes0.PLAYER_INVENTORY_ITEMS_PKEY;
public static final Index PLAYER_METADATA_PKEY = Indexes0.PLAYER_METADATA_PKEY;
+ public static final Index POI_MAPBLOCK = Indexes0.POI_MAPBLOCK;
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
@@ -44,7 +53,12 @@ public class Indexes {
private static class Indexes0 {
public static Index BLOCKS_PKEY = Internal.createIndex("blocks_pkey", Blocks.BLOCKS, new OrderField[] { Blocks.BLOCKS.POSX, Blocks.BLOCKS.POSY, Blocks.BLOCKS.POSZ }, true);
public static Index BLOCKS_TIME = Internal.createIndex("blocks_time", Blocks.BLOCKS, new OrderField[] { Blocks.BLOCKS.MTIME }, false);
+ public static Index FLYWAY_SCHEMA_HISTORY_PK = Internal.createIndex("flyway_schema_history_pk", FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY, new OrderField[] { FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK }, true);
+ public static Index FLYWAY_SCHEMA_HISTORY_S_IDX = Internal.createIndex("flyway_schema_history_s_idx", FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY, new OrderField[] { FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SUCCESS }, false);
public static Index PLAYER_PKEY = Internal.createIndex("player_pkey", Player.PLAYER, new OrderField[] { Player.PLAYER.NAME }, true);
+ public static Index PLAYER_INVENTORIES_PKEY = Internal.createIndex("player_inventories_pkey", PlayerInventories.PLAYER_INVENTORIES, new OrderField[] { PlayerInventories.PLAYER_INVENTORIES.PLAYER, PlayerInventories.PLAYER_INVENTORIES.INV_ID }, true);
+ public static Index PLAYER_INVENTORY_ITEMS_PKEY = Internal.createIndex("player_inventory_items_pkey", PlayerInventoryItems.PLAYER_INVENTORY_ITEMS, new OrderField[] { PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.PLAYER, PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.INV_ID, PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.SLOT_ID }, true);
public static Index PLAYER_METADATA_PKEY = Internal.createIndex("player_metadata_pkey", PlayerMetadata.PLAYER_METADATA, new OrderField[] { PlayerMetadata.PLAYER_METADATA.PLAYER, PlayerMetadata.PLAYER_METADATA.ATTR }, true);
+ public static Index POI_MAPBLOCK = Internal.createIndex("poi_mapblock", Poi.POI, new OrderField[] { Poi.POI.POSX, Poi.POI.POSY, Poi.POI.POSZ }, false);
}
}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/Keys.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/Keys.java
index 2ac1959..8a0367e 100644
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/Keys.java
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/Keys.java
@@ -5,15 +5,24 @@
import io.rudin.minetest.tileserver.blockdb.tables.Blocks;
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
import io.rudin.minetest.tileserver.blockdb.tables.Player;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
import io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata;
+import io.rudin.minetest.tileserver.blockdb.tables.Poi;
import io.rudin.minetest.tileserver.blockdb.tables.records.BlocksRecord;
+import io.rudin.minetest.tileserver.blockdb.tables.records.FlywaySchemaHistoryRecord;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoriesRecord;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoryItemsRecord;
import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerMetadataRecord;
import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerRecord;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PoiRecord;
import javax.annotation.Generated;
import org.jooq.ForeignKey;
+import org.jooq.Identity;
import org.jooq.UniqueKey;
import org.jooq.impl.Internal;
@@ -36,32 +45,47 @@ public class Keys {
// IDENTITY definitions
// -------------------------------------------------------------------------
+ public static final Identity IDENTITY_POI = Identities0.IDENTITY_POI;
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey BLOCKS_PKEY = UniqueKeys0.BLOCKS_PKEY;
+ public static final UniqueKey FLYWAY_SCHEMA_HISTORY_PK = UniqueKeys0.FLYWAY_SCHEMA_HISTORY_PK;
public static final UniqueKey PLAYER_PKEY = UniqueKeys0.PLAYER_PKEY;
+ public static final UniqueKey PLAYER_INVENTORIES_PKEY = UniqueKeys0.PLAYER_INVENTORIES_PKEY;
+ public static final UniqueKey PLAYER_INVENTORY_ITEMS_PKEY = UniqueKeys0.PLAYER_INVENTORY_ITEMS_PKEY;
public static final UniqueKey PLAYER_METADATA_PKEY = UniqueKeys0.PLAYER_METADATA_PKEY;
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
+ public static final ForeignKey PLAYER_INVENTORIES__PLAYER_INVENTORIES_FKEY = ForeignKeys0.PLAYER_INVENTORIES__PLAYER_INVENTORIES_FKEY;
+ public static final ForeignKey PLAYER_INVENTORY_ITEMS__PLAYER_INVENTORY_ITEMS_FKEY = ForeignKeys0.PLAYER_INVENTORY_ITEMS__PLAYER_INVENTORY_ITEMS_FKEY;
public static final ForeignKey PLAYER_METADATA__PLAYER_METADATA_FKEY = ForeignKeys0.PLAYER_METADATA__PLAYER_METADATA_FKEY;
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
+ private static class Identities0 {
+ public static Identity IDENTITY_POI = Internal.createIdentity(Poi.POI, Poi.POI.ID);
+ }
+
private static class UniqueKeys0 {
public static final UniqueKey BLOCKS_PKEY = Internal.createUniqueKey(Blocks.BLOCKS, "blocks_pkey", Blocks.BLOCKS.POSX, Blocks.BLOCKS.POSY, Blocks.BLOCKS.POSZ);
+ public static final UniqueKey FLYWAY_SCHEMA_HISTORY_PK = Internal.createUniqueKey(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY, "flyway_schema_history_pk", FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK);
public static final UniqueKey PLAYER_PKEY = Internal.createUniqueKey(Player.PLAYER, "player_pkey", Player.PLAYER.NAME);
+ public static final UniqueKey PLAYER_INVENTORIES_PKEY = Internal.createUniqueKey(PlayerInventories.PLAYER_INVENTORIES, "player_inventories_pkey", PlayerInventories.PLAYER_INVENTORIES.PLAYER, PlayerInventories.PLAYER_INVENTORIES.INV_ID);
+ public static final UniqueKey PLAYER_INVENTORY_ITEMS_PKEY = Internal.createUniqueKey(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS, "player_inventory_items_pkey", PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.PLAYER, PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.INV_ID, PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.SLOT_ID);
public static final UniqueKey PLAYER_METADATA_PKEY = Internal.createUniqueKey(PlayerMetadata.PLAYER_METADATA, "player_metadata_pkey", PlayerMetadata.PLAYER_METADATA.PLAYER, PlayerMetadata.PLAYER_METADATA.ATTR);
}
private static class ForeignKeys0 {
+ public static final ForeignKey PLAYER_INVENTORIES__PLAYER_INVENTORIES_FKEY = Internal.createForeignKey(io.rudin.minetest.tileserver.blockdb.Keys.PLAYER_PKEY, PlayerInventories.PLAYER_INVENTORIES, "player_inventories__player_inventories_fkey", PlayerInventories.PLAYER_INVENTORIES.PLAYER);
+ public static final ForeignKey PLAYER_INVENTORY_ITEMS__PLAYER_INVENTORY_ITEMS_FKEY = Internal.createForeignKey(io.rudin.minetest.tileserver.blockdb.Keys.PLAYER_PKEY, PlayerInventoryItems.PLAYER_INVENTORY_ITEMS, "player_inventory_items__player_inventory_items_fkey", PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.PLAYER);
public static final ForeignKey PLAYER_METADATA__PLAYER_METADATA_FKEY = Internal.createForeignKey(io.rudin.minetest.tileserver.blockdb.Keys.PLAYER_PKEY, PlayerMetadata.PLAYER_METADATA, "player_metadata__player_metadata_fkey", PlayerMetadata.PLAYER_METADATA.PLAYER);
}
}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/Routines.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/Routines.java
new file mode 100644
index 0000000..6ea8216
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/Routines.java
@@ -0,0 +1,48 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb;
+
+
+import io.rudin.minetest.tileserver.blockdb.routines.OnBlocksChange;
+
+import javax.annotation.Generated;
+
+import org.jooq.Configuration;
+import org.jooq.Field;
+
+
+/**
+ * Convenience access to all stored procedures and functions in
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Routines {
+
+ /**
+ * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using in your code generator configuration.
+ */
+ @java.lang.Deprecated
+ public static Object onBlocksChange(Configuration configuration) {
+ OnBlocksChange f = new OnBlocksChange();
+
+ f.execute(configuration);
+ return f.getReturnValue();
+ }
+
+ /**
+ * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using in your code generator configuration.
+ */
+ @java.lang.Deprecated
+ public static Field onBlocksChange() {
+ OnBlocksChange f = new OnBlocksChange();
+
+ return f.asField();
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/Sequences.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/Sequences.java
new file mode 100644
index 0000000..16ba461
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/Sequences.java
@@ -0,0 +1,30 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb;
+
+
+import javax.annotation.Generated;
+
+import org.jooq.Sequence;
+import org.jooq.impl.SequenceImpl;
+
+
+/**
+ * Convenience access to all sequences in
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Sequences {
+
+ /**
+ * The sequence poi_id_seq
+ */
+ public static final Sequence POI_ID_SEQ = new SequenceImpl("poi_id_seq", DefaultSchema.DEFAULT_SCHEMA, org.jooq.impl.SQLDataType.INTEGER.nullable(false));
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/Tables.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/Tables.java
index 3a21187..f8fc2b0 100644
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/Tables.java
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/Tables.java
@@ -5,9 +5,12 @@
import io.rudin.minetest.tileserver.blockdb.tables.Blocks;
-import io.rudin.minetest.tileserver.blockdb.tables.Chat;
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
import io.rudin.minetest.tileserver.blockdb.tables.Player;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
import io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata;
+import io.rudin.minetest.tileserver.blockdb.tables.Poi;
import javax.annotation.Generated;
@@ -31,17 +34,32 @@ public class Tables {
public static final Blocks BLOCKS = io.rudin.minetest.tileserver.blockdb.tables.Blocks.BLOCKS;
/**
- * The table chat
.
+ * The table flyway_schema_history
.
*/
- public static final Chat CHAT = io.rudin.minetest.tileserver.blockdb.tables.Chat.CHAT;
+ public static final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY;
/**
* The table player
.
*/
public static final Player PLAYER = io.rudin.minetest.tileserver.blockdb.tables.Player.PLAYER;
+ /**
+ * The table player_inventories
.
+ */
+ public static final PlayerInventories PLAYER_INVENTORIES = io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories.PLAYER_INVENTORIES;
+
+ /**
+ * The table player_inventory_items
.
+ */
+ public static final PlayerInventoryItems PLAYER_INVENTORY_ITEMS = io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems.PLAYER_INVENTORY_ITEMS;
+
/**
* The table player_metadata
.
*/
public static final PlayerMetadata PLAYER_METADATA = io.rudin.minetest.tileserver.blockdb.tables.PlayerMetadata.PLAYER_METADATA;
+
+ /**
+ * The table poi
.
+ */
+ public static final Poi POI = io.rudin.minetest.tileserver.blockdb.tables.Poi.POI;
}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/routines/OnBlocksChange.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/routines/OnBlocksChange.java
new file mode 100644
index 0000000..55873e0
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/routines/OnBlocksChange.java
@@ -0,0 +1,46 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.routines;
+
+
+import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
+
+import javax.annotation.Generated;
+
+import org.jooq.Parameter;
+import org.jooq.impl.AbstractRoutine;
+
+
+
+/**
+ * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using in your code generator configuration.
+ */
+@java.lang.Deprecated
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class OnBlocksChange extends AbstractRoutine {
+
+ private static final long serialVersionUID = 1453394758;
+
+ /**
+ * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using in your code generator configuration.
+ */
+ @java.lang.Deprecated
+ public static final Parameter RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.DefaultDataType.getDefaultDataType("trigger"), false, false);
+
+ /**
+ * Create a new routine call instance
+ */
+ public OnBlocksChange() {
+ super("on_blocks_change", DefaultSchema.DEFAULT_SCHEMA, org.jooq.impl.DefaultDataType.getDefaultDataType("trigger"));
+
+ setReturnParameter(RETURN_VALUE);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Chat.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Chat.java
deleted file mode 100644
index e7c4313..0000000
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Chat.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * This file is generated by jOOQ.
-*/
-package io.rudin.minetest.tileserver.blockdb.tables;
-
-
-import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
-import io.rudin.minetest.tileserver.blockdb.tables.records.ChatRecord;
-
-import javax.annotation.Generated;
-
-import org.jooq.Field;
-import org.jooq.Name;
-import org.jooq.Schema;
-import org.jooq.Table;
-import org.jooq.TableField;
-import org.jooq.impl.DSL;
-import org.jooq.impl.TableImpl;
-
-
-/**
- * This class is generated by jOOQ.
- */
-@Generated(
- value = {
- "http://www.jooq.org",
- "jOOQ version:3.10.5"
- },
- comments = "This class is generated by jOOQ"
-)
-@SuppressWarnings({ "all", "unchecked", "rawtypes" })
-public class Chat extends TableImpl {
-
- private static final long serialVersionUID = -466804182;
-
- /**
- * The reference instance of chat
- */
- public static final Chat CHAT = new Chat();
-
- /**
- * The class holding records for this type
- */
- @Override
- public Class getRecordType() {
- return ChatRecord.class;
- }
-
- /**
- * The column chat.time
.
- */
- public final TableField TIME = createField("time", org.jooq.impl.SQLDataType.BIGINT, this, "");
-
- /**
- * The column chat.playername
.
- */
- public final TableField PLAYERNAME = createField("playername", org.jooq.impl.SQLDataType.VARCHAR, this, "");
-
- /**
- * The column chat.text
.
- */
- public final TableField TEXT = createField("text", org.jooq.impl.SQLDataType.VARCHAR, this, "");
-
- /**
- * Create a chat
table reference
- */
- public Chat() {
- this(DSL.name("chat"), null);
- }
-
- /**
- * Create an aliased chat
table reference
- */
- public Chat(String alias) {
- this(DSL.name(alias), CHAT);
- }
-
- /**
- * Create an aliased chat
table reference
- */
- public Chat(Name alias) {
- this(alias, CHAT);
- }
-
- private Chat(Name alias, Table aliased) {
- this(alias, aliased, null);
- }
-
- private Chat(Name alias, Table aliased, Field>[] parameters) {
- super(alias, null, aliased, parameters, "");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Schema getSchema() {
- return DefaultSchema.DEFAULT_SCHEMA;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Chat as(String alias) {
- return new Chat(DSL.name(alias), this);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Chat as(Name alias) {
- return new Chat(alias, this);
- }
-
- /**
- * Rename this table
- */
- @Override
- public Chat rename(String name) {
- return new Chat(DSL.name(name), null);
- }
-
- /**
- * Rename this table
- */
- @Override
- public Chat rename(Name name) {
- return new Chat(name, null);
- }
-}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/FlywaySchemaHistory.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/FlywaySchemaHistory.java
new file mode 100644
index 0000000..b8ffd6b
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/FlywaySchemaHistory.java
@@ -0,0 +1,199 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables;
+
+
+import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
+import io.rudin.minetest.tileserver.blockdb.Indexes;
+import io.rudin.minetest.tileserver.blockdb.Keys;
+import io.rudin.minetest.tileserver.blockdb.tables.records.FlywaySchemaHistoryRecord;
+
+import java.sql.Timestamp;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class FlywaySchemaHistory extends TableImpl {
+
+ private static final long serialVersionUID = -1958796302;
+
+ /**
+ * The reference instance of flyway_schema_history
+ */
+ public static final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = new FlywaySchemaHistory();
+
+ /**
+ * The class holding records for this type
+ */
+ @Override
+ public Class getRecordType() {
+ return FlywaySchemaHistoryRecord.class;
+ }
+
+ /**
+ * The column flyway_schema_history.installed_rank
.
+ */
+ public final TableField INSTALLED_RANK = createField("installed_rank", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.version
.
+ */
+ public final TableField VERSION = createField("version", org.jooq.impl.SQLDataType.VARCHAR(50), this, "");
+
+ /**
+ * The column flyway_schema_history.description
.
+ */
+ public final TableField DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR(200).nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.type
.
+ */
+ public final TableField TYPE = createField("type", org.jooq.impl.SQLDataType.VARCHAR(20).nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.script
.
+ */
+ public final TableField SCRIPT = createField("script", org.jooq.impl.SQLDataType.VARCHAR(1000).nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.checksum
.
+ */
+ public final TableField CHECKSUM = createField("checksum", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+ /**
+ * The column flyway_schema_history.installed_by
.
+ */
+ public final TableField INSTALLED_BY = createField("installed_by", org.jooq.impl.SQLDataType.VARCHAR(100).nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.installed_on
.
+ */
+ public final TableField INSTALLED_ON = createField("installed_on", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "");
+
+ /**
+ * The column flyway_schema_history.execution_time
.
+ */
+ public final TableField EXECUTION_TIME = createField("execution_time", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column flyway_schema_history.success
.
+ */
+ public final TableField SUCCESS = createField("success", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, "");
+
+ /**
+ * Create a flyway_schema_history
table reference
+ */
+ public FlywaySchemaHistory() {
+ this(DSL.name("flyway_schema_history"), null);
+ }
+
+ /**
+ * Create an aliased flyway_schema_history
table reference
+ */
+ public FlywaySchemaHistory(String alias) {
+ this(DSL.name(alias), FLYWAY_SCHEMA_HISTORY);
+ }
+
+ /**
+ * Create an aliased flyway_schema_history
table reference
+ */
+ public FlywaySchemaHistory(Name alias) {
+ this(alias, FLYWAY_SCHEMA_HISTORY);
+ }
+
+ private FlywaySchemaHistory(Name alias, Table aliased) {
+ this(alias, aliased, null);
+ }
+
+ private FlywaySchemaHistory(Name alias, Table aliased, Field>[] parameters) {
+ super(alias, null, aliased, parameters, "");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Schema getSchema() {
+ return DefaultSchema.DEFAULT_SCHEMA;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List getIndexes() {
+ return Arrays.asList(Indexes.FLYWAY_SCHEMA_HISTORY_PK, Indexes.FLYWAY_SCHEMA_HISTORY_S_IDX);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public UniqueKey getPrimaryKey() {
+ return Keys.FLYWAY_SCHEMA_HISTORY_PK;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List> getKeys() {
+ return Arrays.>asList(Keys.FLYWAY_SCHEMA_HISTORY_PK);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistory as(String alias) {
+ return new FlywaySchemaHistory(DSL.name(alias), this);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistory as(Name alias) {
+ return new FlywaySchemaHistory(alias, this);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public FlywaySchemaHistory rename(String name) {
+ return new FlywaySchemaHistory(DSL.name(name), null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public FlywaySchemaHistory rename(Name name) {
+ return new FlywaySchemaHistory(name, null);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventories.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventories.java
new file mode 100644
index 0000000..bea17d5
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventories.java
@@ -0,0 +1,182 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables;
+
+
+import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
+import io.rudin.minetest.tileserver.blockdb.Indexes;
+import io.rudin.minetest.tileserver.blockdb.Keys;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoriesRecord;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.ForeignKey;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventories extends TableImpl {
+
+ private static final long serialVersionUID = 1345091695;
+
+ /**
+ * The reference instance of player_inventories
+ */
+ public static final PlayerInventories PLAYER_INVENTORIES = new PlayerInventories();
+
+ /**
+ * The class holding records for this type
+ */
+ @Override
+ public Class getRecordType() {
+ return PlayerInventoriesRecord.class;
+ }
+
+ /**
+ * The column player_inventories.player
.
+ */
+ public final TableField PLAYER = createField("player", org.jooq.impl.SQLDataType.VARCHAR(60).nullable(false), this, "");
+
+ /**
+ * The column player_inventories.inv_id
.
+ */
+ public final TableField INV_ID = createField("inv_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column player_inventories.inv_width
.
+ */
+ public final TableField INV_WIDTH = createField("inv_width", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column player_inventories.inv_name
.
+ */
+ public final TableField INV_NAME = createField("inv_name", org.jooq.impl.SQLDataType.CLOB.nullable(false).defaultValue(org.jooq.impl.DSL.field("''::text", org.jooq.impl.SQLDataType.CLOB)), this, "");
+
+ /**
+ * The column player_inventories.inv_size
.
+ */
+ public final TableField INV_SIZE = createField("inv_size", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * Create a player_inventories
table reference
+ */
+ public PlayerInventories() {
+ this(DSL.name("player_inventories"), null);
+ }
+
+ /**
+ * Create an aliased player_inventories
table reference
+ */
+ public PlayerInventories(String alias) {
+ this(DSL.name(alias), PLAYER_INVENTORIES);
+ }
+
+ /**
+ * Create an aliased player_inventories
table reference
+ */
+ public PlayerInventories(Name alias) {
+ this(alias, PLAYER_INVENTORIES);
+ }
+
+ private PlayerInventories(Name alias, Table aliased) {
+ this(alias, aliased, null);
+ }
+
+ private PlayerInventories(Name alias, Table aliased, Field>[] parameters) {
+ super(alias, null, aliased, parameters, "");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Schema getSchema() {
+ return DefaultSchema.DEFAULT_SCHEMA;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List getIndexes() {
+ return Arrays.asList(Indexes.PLAYER_INVENTORIES_PKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public UniqueKey getPrimaryKey() {
+ return Keys.PLAYER_INVENTORIES_PKEY;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List> getKeys() {
+ return Arrays.>asList(Keys.PLAYER_INVENTORIES_PKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List> getReferences() {
+ return Arrays.>asList(Keys.PLAYER_INVENTORIES__PLAYER_INVENTORIES_FKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventories as(String alias) {
+ return new PlayerInventories(DSL.name(alias), this);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventories as(Name alias) {
+ return new PlayerInventories(alias, this);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public PlayerInventories rename(String name) {
+ return new PlayerInventories(DSL.name(name), null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public PlayerInventories rename(Name name) {
+ return new PlayerInventories(name, null);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventoryItems.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventoryItems.java
new file mode 100644
index 0000000..603ca13
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/PlayerInventoryItems.java
@@ -0,0 +1,177 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables;
+
+
+import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
+import io.rudin.minetest.tileserver.blockdb.Indexes;
+import io.rudin.minetest.tileserver.blockdb.Keys;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoryItemsRecord;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.ForeignKey;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoryItems extends TableImpl {
+
+ private static final long serialVersionUID = 1023506151;
+
+ /**
+ * The reference instance of player_inventory_items
+ */
+ public static final PlayerInventoryItems PLAYER_INVENTORY_ITEMS = new PlayerInventoryItems();
+
+ /**
+ * The class holding records for this type
+ */
+ @Override
+ public Class getRecordType() {
+ return PlayerInventoryItemsRecord.class;
+ }
+
+ /**
+ * The column player_inventory_items.player
.
+ */
+ public final TableField PLAYER = createField("player", org.jooq.impl.SQLDataType.VARCHAR(60).nullable(false), this, "");
+
+ /**
+ * The column player_inventory_items.inv_id
.
+ */
+ public final TableField INV_ID = createField("inv_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column player_inventory_items.slot_id
.
+ */
+ public final TableField SLOT_ID = createField("slot_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column player_inventory_items.item
.
+ */
+ public final TableField ITEM = createField("item", org.jooq.impl.SQLDataType.CLOB.nullable(false).defaultValue(org.jooq.impl.DSL.field("''::text", org.jooq.impl.SQLDataType.CLOB)), this, "");
+
+ /**
+ * Create a player_inventory_items
table reference
+ */
+ public PlayerInventoryItems() {
+ this(DSL.name("player_inventory_items"), null);
+ }
+
+ /**
+ * Create an aliased player_inventory_items
table reference
+ */
+ public PlayerInventoryItems(String alias) {
+ this(DSL.name(alias), PLAYER_INVENTORY_ITEMS);
+ }
+
+ /**
+ * Create an aliased player_inventory_items
table reference
+ */
+ public PlayerInventoryItems(Name alias) {
+ this(alias, PLAYER_INVENTORY_ITEMS);
+ }
+
+ private PlayerInventoryItems(Name alias, Table aliased) {
+ this(alias, aliased, null);
+ }
+
+ private PlayerInventoryItems(Name alias, Table aliased, Field>[] parameters) {
+ super(alias, null, aliased, parameters, "");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Schema getSchema() {
+ return DefaultSchema.DEFAULT_SCHEMA;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List getIndexes() {
+ return Arrays.asList(Indexes.PLAYER_INVENTORY_ITEMS_PKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public UniqueKey getPrimaryKey() {
+ return Keys.PLAYER_INVENTORY_ITEMS_PKEY;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List> getKeys() {
+ return Arrays.>asList(Keys.PLAYER_INVENTORY_ITEMS_PKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List> getReferences() {
+ return Arrays.>asList(Keys.PLAYER_INVENTORY_ITEMS__PLAYER_INVENTORY_ITEMS_FKEY);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItems as(String alias) {
+ return new PlayerInventoryItems(DSL.name(alias), this);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItems as(Name alias) {
+ return new PlayerInventoryItems(alias, this);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public PlayerInventoryItems rename(String name) {
+ return new PlayerInventoryItems(DSL.name(name), null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public PlayerInventoryItems rename(Name name) {
+ return new PlayerInventoryItems(name, null);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Poi.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Poi.java
new file mode 100644
index 0000000..1a06aa8
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/Poi.java
@@ -0,0 +1,200 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables;
+
+
+import io.rudin.minetest.tileserver.blockdb.DefaultSchema;
+import io.rudin.minetest.tileserver.blockdb.Indexes;
+import io.rudin.minetest.tileserver.blockdb.Keys;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PoiRecord;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Identity;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Poi extends TableImpl {
+
+ private static final long serialVersionUID = 1062247745;
+
+ /**
+ * The reference instance of poi
+ */
+ public static final Poi POI = new Poi();
+
+ /**
+ * The class holding records for this type
+ */
+ @Override
+ public Class getRecordType() {
+ return PoiRecord.class;
+ }
+
+ /**
+ * The column poi.id
.
+ */
+ public final TableField ID = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('poi_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, "");
+
+ /**
+ * The column poi.name
.
+ */
+ public final TableField NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
+
+ /**
+ * The column poi.category
.
+ */
+ public final TableField CATEGORY = createField("category", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
+
+ /**
+ * The column poi.owner
.
+ */
+ public final TableField OWNER = createField("owner", org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, "");
+
+ /**
+ * The column poi.active
.
+ */
+ public final TableField ACTIVE = createField("active", org.jooq.impl.SQLDataType.CHAR(1).nullable(false), this, "");
+
+ /**
+ * The column poi.x
.
+ */
+ public final TableField X = createField("x", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.y
.
+ */
+ public final TableField Y = createField("y", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.z
.
+ */
+ public final TableField Z = createField("z", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.posx
.
+ */
+ public final TableField POSX = createField("posx", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.posy
.
+ */
+ public final TableField POSY = createField("posy", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.posz
.
+ */
+ public final TableField POSZ = createField("posz", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
+
+ /**
+ * The column poi.mtime
.
+ */
+ public final TableField MTIME = createField("mtime", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
+
+ /**
+ * Create a poi
table reference
+ */
+ public Poi() {
+ this(DSL.name("poi"), null);
+ }
+
+ /**
+ * Create an aliased poi
table reference
+ */
+ public Poi(String alias) {
+ this(DSL.name(alias), POI);
+ }
+
+ /**
+ * Create an aliased poi
table reference
+ */
+ public Poi(Name alias) {
+ this(alias, POI);
+ }
+
+ private Poi(Name alias, Table aliased) {
+ this(alias, aliased, null);
+ }
+
+ private Poi(Name alias, Table aliased, Field>[] parameters) {
+ super(alias, null, aliased, parameters, "");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Schema getSchema() {
+ return DefaultSchema.DEFAULT_SCHEMA;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public List getIndexes() {
+ return Arrays.asList(Indexes.POI_MAPBLOCK);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Identity getIdentity() {
+ return Keys.IDENTITY_POI;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Poi as(String alias) {
+ return new Poi(DSL.name(alias), this);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Poi as(Name alias) {
+ return new Poi(alias, this);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public Poi rename(String name) {
+ return new Poi(DSL.name(name), null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public Poi rename(Name name) {
+ return new Poi(name, null);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/FlywaySchemaHistoryDao.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/FlywaySchemaHistoryDao.java
new file mode 100644
index 0000000..7a5caf4
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/FlywaySchemaHistoryDao.java
@@ -0,0 +1,130 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.daos;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
+import io.rudin.minetest.tileserver.blockdb.tables.records.FlywaySchemaHistoryRecord;
+
+import java.sql.Timestamp;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Configuration;
+import org.jooq.impl.DAOImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class FlywaySchemaHistoryDao extends DAOImpl {
+
+ /**
+ * Create a new FlywaySchemaHistoryDao without any configuration
+ */
+ public FlywaySchemaHistoryDao() {
+ super(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY, io.rudin.minetest.tileserver.blockdb.tables.pojos.FlywaySchemaHistory.class);
+ }
+
+ /**
+ * Create a new FlywaySchemaHistoryDao with an attached configuration
+ */
+ public FlywaySchemaHistoryDao(Configuration configuration) {
+ super(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY, io.rudin.minetest.tileserver.blockdb.tables.pojos.FlywaySchemaHistory.class, configuration);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected Integer getId(io.rudin.minetest.tileserver.blockdb.tables.pojos.FlywaySchemaHistory object) {
+ return object.getInstalledRank();
+ }
+
+ /**
+ * Fetch records that have installed_rank IN (values)
+ */
+ public List fetchByInstalledRank(Integer... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK, values);
+ }
+
+ /**
+ * Fetch a unique record that has installed_rank = value
+ */
+ public io.rudin.minetest.tileserver.blockdb.tables.pojos.FlywaySchemaHistory fetchOneByInstalledRank(Integer value) {
+ return fetchOne(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK, value);
+ }
+
+ /**
+ * Fetch records that have version IN (values)
+ */
+ public List fetchByVersion(String... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.VERSION, values);
+ }
+
+ /**
+ * Fetch records that have description IN (values)
+ */
+ public List fetchByDescription(String... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.DESCRIPTION, values);
+ }
+
+ /**
+ * Fetch records that have type IN (values)
+ */
+ public List fetchByType(String... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.TYPE, values);
+ }
+
+ /**
+ * Fetch records that have script IN (values)
+ */
+ public List fetchByScript(String... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SCRIPT, values);
+ }
+
+ /**
+ * Fetch records that have checksum IN (values)
+ */
+ public List fetchByChecksum(Integer... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.CHECKSUM, values);
+ }
+
+ /**
+ * Fetch records that have installed_by IN (values)
+ */
+ public List fetchByInstalledBy(String... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_BY, values);
+ }
+
+ /**
+ * Fetch records that have installed_on IN (values)
+ */
+ public List fetchByInstalledOn(Timestamp... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_ON, values);
+ }
+
+ /**
+ * Fetch records that have execution_time IN (values)
+ */
+ public List fetchByExecutionTime(Integer... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.EXECUTION_TIME, values);
+ }
+
+ /**
+ * Fetch records that have success IN (values)
+ */
+ public List fetchBySuccess(Boolean... values) {
+ return fetch(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SUCCESS, values);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoriesDao.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoriesDao.java
new file mode 100644
index 0000000..6d753bc
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoriesDao.java
@@ -0,0 +1,88 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.daos;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoriesRecord;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Configuration;
+import org.jooq.Record2;
+import org.jooq.impl.DAOImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoriesDao extends DAOImpl> {
+
+ /**
+ * Create a new PlayerInventoriesDao without any configuration
+ */
+ public PlayerInventoriesDao() {
+ super(PlayerInventories.PLAYER_INVENTORIES, io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventories.class);
+ }
+
+ /**
+ * Create a new PlayerInventoriesDao with an attached configuration
+ */
+ public PlayerInventoriesDao(Configuration configuration) {
+ super(PlayerInventories.PLAYER_INVENTORIES, io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventories.class, configuration);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected Record2 getId(io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventories object) {
+ return compositeKeyRecord(object.getPlayer(), object.getInvId());
+ }
+
+ /**
+ * Fetch records that have player IN (values)
+ */
+ public List fetchByPlayer(String... values) {
+ return fetch(PlayerInventories.PLAYER_INVENTORIES.PLAYER, values);
+ }
+
+ /**
+ * Fetch records that have inv_id IN (values)
+ */
+ public List fetchByInvId(Integer... values) {
+ return fetch(PlayerInventories.PLAYER_INVENTORIES.INV_ID, values);
+ }
+
+ /**
+ * Fetch records that have inv_width IN (values)
+ */
+ public List fetchByInvWidth(Integer... values) {
+ return fetch(PlayerInventories.PLAYER_INVENTORIES.INV_WIDTH, values);
+ }
+
+ /**
+ * Fetch records that have inv_name IN (values)
+ */
+ public List fetchByInvName(String... values) {
+ return fetch(PlayerInventories.PLAYER_INVENTORIES.INV_NAME, values);
+ }
+
+ /**
+ * Fetch records that have inv_size IN (values)
+ */
+ public List fetchByInvSize(Integer... values) {
+ return fetch(PlayerInventories.PLAYER_INVENTORIES.INV_SIZE, values);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoryItemsDao.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoryItemsDao.java
new file mode 100644
index 0000000..9b664a7
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/daos/PlayerInventoryItemsDao.java
@@ -0,0 +1,81 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.daos;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
+import io.rudin.minetest.tileserver.blockdb.tables.records.PlayerInventoryItemsRecord;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Configuration;
+import org.jooq.Record3;
+import org.jooq.impl.DAOImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoryItemsDao extends DAOImpl> {
+
+ /**
+ * Create a new PlayerInventoryItemsDao without any configuration
+ */
+ public PlayerInventoryItemsDao() {
+ super(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS, io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventoryItems.class);
+ }
+
+ /**
+ * Create a new PlayerInventoryItemsDao with an attached configuration
+ */
+ public PlayerInventoryItemsDao(Configuration configuration) {
+ super(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS, io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventoryItems.class, configuration);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected Record3 getId(io.rudin.minetest.tileserver.blockdb.tables.pojos.PlayerInventoryItems object) {
+ return compositeKeyRecord(object.getPlayer(), object.getInvId(), object.getSlotId());
+ }
+
+ /**
+ * Fetch records that have player IN (values)
+ */
+ public List fetchByPlayer(String... values) {
+ return fetch(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.PLAYER, values);
+ }
+
+ /**
+ * Fetch records that have inv_id IN (values)
+ */
+ public List fetchByInvId(Integer... values) {
+ return fetch(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.INV_ID, values);
+ }
+
+ /**
+ * Fetch records that have slot_id IN (values)
+ */
+ public List fetchBySlotId(Integer... values) {
+ return fetch(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.SLOT_ID, values);
+ }
+
+ /**
+ * Fetch records that have item IN (values)
+ */
+ public List fetchByItem(String... values) {
+ return fetch(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.ITEM, values);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Chat.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Chat.java
deleted file mode 100644
index e295c38..0000000
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Chat.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * This file is generated by jOOQ.
-*/
-package io.rudin.minetest.tileserver.blockdb.tables.pojos;
-
-
-import java.io.Serializable;
-
-import javax.annotation.Generated;
-
-
-/**
- * This class is generated by jOOQ.
- */
-@Generated(
- value = {
- "http://www.jooq.org",
- "jOOQ version:3.10.5"
- },
- comments = "This class is generated by jOOQ"
-)
-@SuppressWarnings({ "all", "unchecked", "rawtypes" })
-public class Chat implements Serializable {
-
- private static final long serialVersionUID = 1685142237;
-
- private Long time;
- private String playername;
- private String text;
-
- public Chat() {}
-
- public Chat(Chat value) {
- this.time = value.time;
- this.playername = value.playername;
- this.text = value.text;
- }
-
- public Chat(
- Long time,
- String playername,
- String text
- ) {
- this.time = time;
- this.playername = playername;
- this.text = text;
- }
-
- public Long getTime() {
- return this.time;
- }
-
- public void setTime(Long time) {
- this.time = time;
- }
-
- public String getPlayername() {
- return this.playername;
- }
-
- public void setPlayername(String playername) {
- this.playername = playername;
- }
-
- public String getText() {
- return this.text;
- }
-
- public void setText(String text) {
- this.text = text;
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("Chat (");
-
- sb.append(time);
- sb.append(", ").append(playername);
- sb.append(", ").append(text);
-
- sb.append(")");
- return sb.toString();
- }
-}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/FlywaySchemaHistory.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/FlywaySchemaHistory.java
new file mode 100644
index 0000000..443ed07
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/FlywaySchemaHistory.java
@@ -0,0 +1,176 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.pojos;
+
+
+import java.io.Serializable;
+import java.sql.Timestamp;
+
+import javax.annotation.Generated;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class FlywaySchemaHistory implements Serializable {
+
+ private static final long serialVersionUID = 1682821913;
+
+ private Integer installedRank;
+ private String version;
+ private String description;
+ private String type;
+ private String script;
+ private Integer checksum;
+ private String installedBy;
+ private Timestamp installedOn;
+ private Integer executionTime;
+ private Boolean success;
+
+ public FlywaySchemaHistory() {}
+
+ public FlywaySchemaHistory(FlywaySchemaHistory value) {
+ this.installedRank = value.installedRank;
+ this.version = value.version;
+ this.description = value.description;
+ this.type = value.type;
+ this.script = value.script;
+ this.checksum = value.checksum;
+ this.installedBy = value.installedBy;
+ this.installedOn = value.installedOn;
+ this.executionTime = value.executionTime;
+ this.success = value.success;
+ }
+
+ public FlywaySchemaHistory(
+ Integer installedRank,
+ String version,
+ String description,
+ String type,
+ String script,
+ Integer checksum,
+ String installedBy,
+ Timestamp installedOn,
+ Integer executionTime,
+ Boolean success
+ ) {
+ this.installedRank = installedRank;
+ this.version = version;
+ this.description = description;
+ this.type = type;
+ this.script = script;
+ this.checksum = checksum;
+ this.installedBy = installedBy;
+ this.installedOn = installedOn;
+ this.executionTime = executionTime;
+ this.success = success;
+ }
+
+ public Integer getInstalledRank() {
+ return this.installedRank;
+ }
+
+ public void setInstalledRank(Integer installedRank) {
+ this.installedRank = installedRank;
+ }
+
+ public String getVersion() {
+ return this.version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getDescription() {
+ return this.description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getType() {
+ return this.type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getScript() {
+ return this.script;
+ }
+
+ public void setScript(String script) {
+ this.script = script;
+ }
+
+ public Integer getChecksum() {
+ return this.checksum;
+ }
+
+ public void setChecksum(Integer checksum) {
+ this.checksum = checksum;
+ }
+
+ public String getInstalledBy() {
+ return this.installedBy;
+ }
+
+ public void setInstalledBy(String installedBy) {
+ this.installedBy = installedBy;
+ }
+
+ public Timestamp getInstalledOn() {
+ return this.installedOn;
+ }
+
+ public void setInstalledOn(Timestamp installedOn) {
+ this.installedOn = installedOn;
+ }
+
+ public Integer getExecutionTime() {
+ return this.executionTime;
+ }
+
+ public void setExecutionTime(Integer executionTime) {
+ this.executionTime = executionTime;
+ }
+
+ public Boolean getSuccess() {
+ return this.success;
+ }
+
+ public void setSuccess(Boolean success) {
+ this.success = success;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("FlywaySchemaHistory (");
+
+ sb.append(installedRank);
+ sb.append(", ").append(version);
+ sb.append(", ").append(description);
+ sb.append(", ").append(type);
+ sb.append(", ").append(script);
+ sb.append(", ").append(checksum);
+ sb.append(", ").append(installedBy);
+ sb.append(", ").append(installedOn);
+ sb.append(", ").append(executionTime);
+ sb.append(", ").append(success);
+
+ sb.append(")");
+ return sb.toString();
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventories.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventories.java
new file mode 100644
index 0000000..70fdc01
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventories.java
@@ -0,0 +1,110 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.pojos;
+
+
+import java.io.Serializable;
+
+import javax.annotation.Generated;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventories implements Serializable {
+
+ private static final long serialVersionUID = -200864205;
+
+ private String player;
+ private Integer invId;
+ private Integer invWidth;
+ private String invName;
+ private Integer invSize;
+
+ public PlayerInventories() {}
+
+ public PlayerInventories(PlayerInventories value) {
+ this.player = value.player;
+ this.invId = value.invId;
+ this.invWidth = value.invWidth;
+ this.invName = value.invName;
+ this.invSize = value.invSize;
+ }
+
+ public PlayerInventories(
+ String player,
+ Integer invId,
+ Integer invWidth,
+ String invName,
+ Integer invSize
+ ) {
+ this.player = player;
+ this.invId = invId;
+ this.invWidth = invWidth;
+ this.invName = invName;
+ this.invSize = invSize;
+ }
+
+ public String getPlayer() {
+ return this.player;
+ }
+
+ public void setPlayer(String player) {
+ this.player = player;
+ }
+
+ public Integer getInvId() {
+ return this.invId;
+ }
+
+ public void setInvId(Integer invId) {
+ this.invId = invId;
+ }
+
+ public Integer getInvWidth() {
+ return this.invWidth;
+ }
+
+ public void setInvWidth(Integer invWidth) {
+ this.invWidth = invWidth;
+ }
+
+ public String getInvName() {
+ return this.invName;
+ }
+
+ public void setInvName(String invName) {
+ this.invName = invName;
+ }
+
+ public Integer getInvSize() {
+ return this.invSize;
+ }
+
+ public void setInvSize(Integer invSize) {
+ this.invSize = invSize;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("PlayerInventories (");
+
+ sb.append(player);
+ sb.append(", ").append(invId);
+ sb.append(", ").append(invWidth);
+ sb.append(", ").append(invName);
+ sb.append(", ").append(invSize);
+
+ sb.append(")");
+ return sb.toString();
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventoryItems.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventoryItems.java
new file mode 100644
index 0000000..798c1b5
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/PlayerInventoryItems.java
@@ -0,0 +1,97 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.pojos;
+
+
+import java.io.Serializable;
+
+import javax.annotation.Generated;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoryItems implements Serializable {
+
+ private static final long serialVersionUID = 1597557548;
+
+ private String player;
+ private Integer invId;
+ private Integer slotId;
+ private String item;
+
+ public PlayerInventoryItems() {}
+
+ public PlayerInventoryItems(PlayerInventoryItems value) {
+ this.player = value.player;
+ this.invId = value.invId;
+ this.slotId = value.slotId;
+ this.item = value.item;
+ }
+
+ public PlayerInventoryItems(
+ String player,
+ Integer invId,
+ Integer slotId,
+ String item
+ ) {
+ this.player = player;
+ this.invId = invId;
+ this.slotId = slotId;
+ this.item = item;
+ }
+
+ public String getPlayer() {
+ return this.player;
+ }
+
+ public void setPlayer(String player) {
+ this.player = player;
+ }
+
+ public Integer getInvId() {
+ return this.invId;
+ }
+
+ public void setInvId(Integer invId) {
+ this.invId = invId;
+ }
+
+ public Integer getSlotId() {
+ return this.slotId;
+ }
+
+ public void setSlotId(Integer slotId) {
+ this.slotId = slotId;
+ }
+
+ public String getItem() {
+ return this.item;
+ }
+
+ public void setItem(String item) {
+ this.item = item;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("PlayerInventoryItems (");
+
+ sb.append(player);
+ sb.append(", ").append(invId);
+ sb.append(", ").append(slotId);
+ sb.append(", ").append(item);
+
+ sb.append(")");
+ return sb.toString();
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Poi.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Poi.java
new file mode 100644
index 0000000..c673dd2
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/pojos/Poi.java
@@ -0,0 +1,201 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.pojos;
+
+
+import java.io.Serializable;
+
+import javax.annotation.Generated;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Poi implements Serializable {
+
+ private static final long serialVersionUID = -1799471784;
+
+ private Integer id;
+ private String name;
+ private String category;
+ private String owner;
+ private String active;
+ private Integer x;
+ private Integer y;
+ private Integer z;
+ private Integer posx;
+ private Integer posy;
+ private Integer posz;
+ private Long mtime;
+
+ public Poi() {}
+
+ public Poi(Poi value) {
+ this.id = value.id;
+ this.name = value.name;
+ this.category = value.category;
+ this.owner = value.owner;
+ this.active = value.active;
+ this.x = value.x;
+ this.y = value.y;
+ this.z = value.z;
+ this.posx = value.posx;
+ this.posy = value.posy;
+ this.posz = value.posz;
+ this.mtime = value.mtime;
+ }
+
+ public Poi(
+ Integer id,
+ String name,
+ String category,
+ String owner,
+ String active,
+ Integer x,
+ Integer y,
+ Integer z,
+ Integer posx,
+ Integer posy,
+ Integer posz,
+ Long mtime
+ ) {
+ this.id = id;
+ this.name = name;
+ this.category = category;
+ this.owner = owner;
+ this.active = active;
+ this.x = x;
+ this.y = y;
+ this.z = z;
+ this.posx = posx;
+ this.posy = posy;
+ this.posz = posz;
+ this.mtime = mtime;
+ }
+
+ public Integer getId() {
+ return this.id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getCategory() {
+ return this.category;
+ }
+
+ public void setCategory(String category) {
+ this.category = category;
+ }
+
+ public String getOwner() {
+ return this.owner;
+ }
+
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ public String getActive() {
+ return this.active;
+ }
+
+ public void setActive(String active) {
+ this.active = active;
+ }
+
+ public Integer getX() {
+ return this.x;
+ }
+
+ public void setX(Integer x) {
+ this.x = x;
+ }
+
+ public Integer getY() {
+ return this.y;
+ }
+
+ public void setY(Integer y) {
+ this.y = y;
+ }
+
+ public Integer getZ() {
+ return this.z;
+ }
+
+ public void setZ(Integer z) {
+ this.z = z;
+ }
+
+ public Integer getPosx() {
+ return this.posx;
+ }
+
+ public void setPosx(Integer posx) {
+ this.posx = posx;
+ }
+
+ public Integer getPosy() {
+ return this.posy;
+ }
+
+ public void setPosy(Integer posy) {
+ this.posy = posy;
+ }
+
+ public Integer getPosz() {
+ return this.posz;
+ }
+
+ public void setPosz(Integer posz) {
+ this.posz = posz;
+ }
+
+ public Long getMtime() {
+ return this.mtime;
+ }
+
+ public void setMtime(Long mtime) {
+ this.mtime = mtime;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("Poi (");
+
+ sb.append(id);
+ sb.append(", ").append(name);
+ sb.append(", ").append(category);
+ sb.append(", ").append(owner);
+ sb.append(", ").append(active);
+ sb.append(", ").append(x);
+ sb.append(", ").append(y);
+ sb.append(", ").append(z);
+ sb.append(", ").append(posx);
+ sb.append(", ").append(posy);
+ sb.append(", ").append(posz);
+ sb.append(", ").append(mtime);
+
+ sb.append(")");
+ return sb.toString();
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/ChatRecord.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/ChatRecord.java
deleted file mode 100644
index 6b91637..0000000
--- a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/ChatRecord.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * This file is generated by jOOQ.
-*/
-package io.rudin.minetest.tileserver.blockdb.tables.records;
-
-
-import io.rudin.minetest.tileserver.blockdb.tables.Chat;
-
-import javax.annotation.Generated;
-
-import org.jooq.Field;
-import org.jooq.Record3;
-import org.jooq.Row3;
-import org.jooq.impl.TableRecordImpl;
-
-
-/**
- * This class is generated by jOOQ.
- */
-@Generated(
- value = {
- "http://www.jooq.org",
- "jOOQ version:3.10.5"
- },
- comments = "This class is generated by jOOQ"
-)
-@SuppressWarnings({ "all", "unchecked", "rawtypes" })
-public class ChatRecord extends TableRecordImpl implements Record3 {
-
- private static final long serialVersionUID = 731552506;
-
- /**
- * Setter for chat.time
.
- */
- public void setTime(Long value) {
- set(0, value);
- }
-
- /**
- * Getter for chat.time
.
- */
- public Long getTime() {
- return (Long) get(0);
- }
-
- /**
- * Setter for chat.playername
.
- */
- public void setPlayername(String value) {
- set(1, value);
- }
-
- /**
- * Getter for chat.playername
.
- */
- public String getPlayername() {
- return (String) get(1);
- }
-
- /**
- * Setter for chat.text
.
- */
- public void setText(String value) {
- set(2, value);
- }
-
- /**
- * Getter for chat.text
.
- */
- public String getText() {
- return (String) get(2);
- }
-
- // -------------------------------------------------------------------------
- // Record3 type implementation
- // -------------------------------------------------------------------------
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Row3 fieldsRow() {
- return (Row3) super.fieldsRow();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Row3 valuesRow() {
- return (Row3) super.valuesRow();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Field field1() {
- return Chat.CHAT.TIME;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Field field2() {
- return Chat.CHAT.PLAYERNAME;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Field field3() {
- return Chat.CHAT.TEXT;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Long component1() {
- return getTime();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String component2() {
- return getPlayername();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String component3() {
- return getText();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Long value1() {
- return getTime();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String value2() {
- return getPlayername();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String value3() {
- return getText();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ChatRecord value1(Long value) {
- setTime(value);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ChatRecord value2(String value) {
- setPlayername(value);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ChatRecord value3(String value) {
- setText(value);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ChatRecord values(Long value1, String value2, String value3) {
- value1(value1);
- value2(value2);
- value3(value3);
- return this;
- }
-
- // -------------------------------------------------------------------------
- // Constructors
- // -------------------------------------------------------------------------
-
- /**
- * Create a detached ChatRecord
- */
- public ChatRecord() {
- super(Chat.CHAT);
- }
-
- /**
- * Create a detached, initialised ChatRecord
- */
- public ChatRecord(Long time, String playername, String text) {
- super(Chat.CHAT);
-
- set(0, time);
- set(1, playername);
- set(2, text);
- }
-}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/FlywaySchemaHistoryRecord.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/FlywaySchemaHistoryRecord.java
new file mode 100644
index 0000000..5065e29
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/FlywaySchemaHistoryRecord.java
@@ -0,0 +1,583 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.records;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.FlywaySchemaHistory;
+
+import java.sql.Timestamp;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record1;
+import org.jooq.Record10;
+import org.jooq.Row10;
+import org.jooq.impl.UpdatableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class FlywaySchemaHistoryRecord extends UpdatableRecordImpl implements Record10 {
+
+ private static final long serialVersionUID = -585103961;
+
+ /**
+ * Setter for flyway_schema_history.installed_rank
.
+ */
+ public void setInstalledRank(Integer value) {
+ set(0, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.installed_rank
.
+ */
+ public Integer getInstalledRank() {
+ return (Integer) get(0);
+ }
+
+ /**
+ * Setter for flyway_schema_history.version
.
+ */
+ public void setVersion(String value) {
+ set(1, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.version
.
+ */
+ public String getVersion() {
+ return (String) get(1);
+ }
+
+ /**
+ * Setter for flyway_schema_history.description
.
+ */
+ public void setDescription(String value) {
+ set(2, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.description
.
+ */
+ public String getDescription() {
+ return (String) get(2);
+ }
+
+ /**
+ * Setter for flyway_schema_history.type
.
+ */
+ public void setType(String value) {
+ set(3, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.type
.
+ */
+ public String getType() {
+ return (String) get(3);
+ }
+
+ /**
+ * Setter for flyway_schema_history.script
.
+ */
+ public void setScript(String value) {
+ set(4, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.script
.
+ */
+ public String getScript() {
+ return (String) get(4);
+ }
+
+ /**
+ * Setter for flyway_schema_history.checksum
.
+ */
+ public void setChecksum(Integer value) {
+ set(5, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.checksum
.
+ */
+ public Integer getChecksum() {
+ return (Integer) get(5);
+ }
+
+ /**
+ * Setter for flyway_schema_history.installed_by
.
+ */
+ public void setInstalledBy(String value) {
+ set(6, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.installed_by
.
+ */
+ public String getInstalledBy() {
+ return (String) get(6);
+ }
+
+ /**
+ * Setter for flyway_schema_history.installed_on
.
+ */
+ public void setInstalledOn(Timestamp value) {
+ set(7, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.installed_on
.
+ */
+ public Timestamp getInstalledOn() {
+ return (Timestamp) get(7);
+ }
+
+ /**
+ * Setter for flyway_schema_history.execution_time
.
+ */
+ public void setExecutionTime(Integer value) {
+ set(8, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.execution_time
.
+ */
+ public Integer getExecutionTime() {
+ return (Integer) get(8);
+ }
+
+ /**
+ * Setter for flyway_schema_history.success
.
+ */
+ public void setSuccess(Boolean value) {
+ set(9, value);
+ }
+
+ /**
+ * Getter for flyway_schema_history.success
.
+ */
+ public Boolean getSuccess() {
+ return (Boolean) get(9);
+ }
+
+ // -------------------------------------------------------------------------
+ // Primary key information
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Record1 key() {
+ return (Record1) super.key();
+ }
+
+ // -------------------------------------------------------------------------
+ // Record10 type implementation
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row10 fieldsRow() {
+ return (Row10) super.fieldsRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row10 valuesRow() {
+ return (Row10) super.valuesRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field1() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field2() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.VERSION;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field3() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.DESCRIPTION;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field4() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.TYPE;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field5() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SCRIPT;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field6() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.CHECKSUM;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field7() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_BY;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field8() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_ON;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field9() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.EXECUTION_TIME;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field10() {
+ return FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SUCCESS;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component1() {
+ return getInstalledRank();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component2() {
+ return getVersion();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component3() {
+ return getDescription();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component4() {
+ return getType();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component5() {
+ return getScript();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component6() {
+ return getChecksum();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component7() {
+ return getInstalledBy();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Timestamp component8() {
+ return getInstalledOn();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component9() {
+ return getExecutionTime();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Boolean component10() {
+ return getSuccess();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value1() {
+ return getInstalledRank();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value2() {
+ return getVersion();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value3() {
+ return getDescription();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value4() {
+ return getType();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value5() {
+ return getScript();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value6() {
+ return getChecksum();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value7() {
+ return getInstalledBy();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Timestamp value8() {
+ return getInstalledOn();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value9() {
+ return getExecutionTime();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Boolean value10() {
+ return getSuccess();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value1(Integer value) {
+ setInstalledRank(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value2(String value) {
+ setVersion(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value3(String value) {
+ setDescription(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value4(String value) {
+ setType(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value5(String value) {
+ setScript(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value6(Integer value) {
+ setChecksum(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value7(String value) {
+ setInstalledBy(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value8(Timestamp value) {
+ setInstalledOn(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value9(Integer value) {
+ setExecutionTime(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord value10(Boolean value) {
+ setSuccess(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FlywaySchemaHistoryRecord values(Integer value1, String value2, String value3, String value4, String value5, Integer value6, String value7, Timestamp value8, Integer value9, Boolean value10) {
+ value1(value1);
+ value2(value2);
+ value3(value3);
+ value4(value4);
+ value5(value5);
+ value6(value6);
+ value7(value7);
+ value8(value8);
+ value9(value9);
+ value10(value10);
+ return this;
+ }
+
+ // -------------------------------------------------------------------------
+ // Constructors
+ // -------------------------------------------------------------------------
+
+ /**
+ * Create a detached FlywaySchemaHistoryRecord
+ */
+ public FlywaySchemaHistoryRecord() {
+ super(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY);
+ }
+
+ /**
+ * Create a detached, initialised FlywaySchemaHistoryRecord
+ */
+ public FlywaySchemaHistoryRecord(Integer installedRank, String version, String description, String type, String script, Integer checksum, String installedBy, Timestamp installedOn, Integer executionTime, Boolean success) {
+ super(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY);
+
+ set(0, installedRank);
+ set(1, version);
+ set(2, description);
+ set(3, type);
+ set(4, script);
+ set(5, checksum);
+ set(6, installedBy);
+ set(7, installedOn);
+ set(8, executionTime);
+ set(9, success);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoriesRecord.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoriesRecord.java
new file mode 100644
index 0000000..76b5c3a
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoriesRecord.java
@@ -0,0 +1,336 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.records;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventories;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record2;
+import org.jooq.Record5;
+import org.jooq.Row5;
+import org.jooq.impl.UpdatableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoriesRecord extends UpdatableRecordImpl implements Record5 {
+
+ private static final long serialVersionUID = 1777746625;
+
+ /**
+ * Setter for player_inventories.player
.
+ */
+ public void setPlayer(String value) {
+ set(0, value);
+ }
+
+ /**
+ * Getter for player_inventories.player
.
+ */
+ public String getPlayer() {
+ return (String) get(0);
+ }
+
+ /**
+ * Setter for player_inventories.inv_id
.
+ */
+ public void setInvId(Integer value) {
+ set(1, value);
+ }
+
+ /**
+ * Getter for player_inventories.inv_id
.
+ */
+ public Integer getInvId() {
+ return (Integer) get(1);
+ }
+
+ /**
+ * Setter for player_inventories.inv_width
.
+ */
+ public void setInvWidth(Integer value) {
+ set(2, value);
+ }
+
+ /**
+ * Getter for player_inventories.inv_width
.
+ */
+ public Integer getInvWidth() {
+ return (Integer) get(2);
+ }
+
+ /**
+ * Setter for player_inventories.inv_name
.
+ */
+ public void setInvName(String value) {
+ set(3, value);
+ }
+
+ /**
+ * Getter for player_inventories.inv_name
.
+ */
+ public String getInvName() {
+ return (String) get(3);
+ }
+
+ /**
+ * Setter for player_inventories.inv_size
.
+ */
+ public void setInvSize(Integer value) {
+ set(4, value);
+ }
+
+ /**
+ * Getter for player_inventories.inv_size
.
+ */
+ public Integer getInvSize() {
+ return (Integer) get(4);
+ }
+
+ // -------------------------------------------------------------------------
+ // Primary key information
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Record2 key() {
+ return (Record2) super.key();
+ }
+
+ // -------------------------------------------------------------------------
+ // Record5 type implementation
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row5 fieldsRow() {
+ return (Row5) super.fieldsRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row5 valuesRow() {
+ return (Row5) super.valuesRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field1() {
+ return PlayerInventories.PLAYER_INVENTORIES.PLAYER;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field2() {
+ return PlayerInventories.PLAYER_INVENTORIES.INV_ID;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field3() {
+ return PlayerInventories.PLAYER_INVENTORIES.INV_WIDTH;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field4() {
+ return PlayerInventories.PLAYER_INVENTORIES.INV_NAME;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field5() {
+ return PlayerInventories.PLAYER_INVENTORIES.INV_SIZE;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component1() {
+ return getPlayer();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component2() {
+ return getInvId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component3() {
+ return getInvWidth();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component4() {
+ return getInvName();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component5() {
+ return getInvSize();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value1() {
+ return getPlayer();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value2() {
+ return getInvId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value3() {
+ return getInvWidth();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value4() {
+ return getInvName();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value5() {
+ return getInvSize();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord value1(String value) {
+ setPlayer(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord value2(Integer value) {
+ setInvId(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord value3(Integer value) {
+ setInvWidth(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord value4(String value) {
+ setInvName(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord value5(Integer value) {
+ setInvSize(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoriesRecord values(String value1, Integer value2, Integer value3, String value4, Integer value5) {
+ value1(value1);
+ value2(value2);
+ value3(value3);
+ value4(value4);
+ value5(value5);
+ return this;
+ }
+
+ // -------------------------------------------------------------------------
+ // Constructors
+ // -------------------------------------------------------------------------
+
+ /**
+ * Create a detached PlayerInventoriesRecord
+ */
+ public PlayerInventoriesRecord() {
+ super(PlayerInventories.PLAYER_INVENTORIES);
+ }
+
+ /**
+ * Create a detached, initialised PlayerInventoriesRecord
+ */
+ public PlayerInventoriesRecord(String player, Integer invId, Integer invWidth, String invName, Integer invSize) {
+ super(PlayerInventories.PLAYER_INVENTORIES);
+
+ set(0, player);
+ set(1, invId);
+ set(2, invWidth);
+ set(3, invName);
+ set(4, invSize);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoryItemsRecord.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoryItemsRecord.java
new file mode 100644
index 0000000..35f2eea
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PlayerInventoryItemsRecord.java
@@ -0,0 +1,287 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.records;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.PlayerInventoryItems;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record3;
+import org.jooq.Record4;
+import org.jooq.Row4;
+import org.jooq.impl.UpdatableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PlayerInventoryItemsRecord extends UpdatableRecordImpl implements Record4 {
+
+ private static final long serialVersionUID = -1669759709;
+
+ /**
+ * Setter for player_inventory_items.player
.
+ */
+ public void setPlayer(String value) {
+ set(0, value);
+ }
+
+ /**
+ * Getter for player_inventory_items.player
.
+ */
+ public String getPlayer() {
+ return (String) get(0);
+ }
+
+ /**
+ * Setter for player_inventory_items.inv_id
.
+ */
+ public void setInvId(Integer value) {
+ set(1, value);
+ }
+
+ /**
+ * Getter for player_inventory_items.inv_id
.
+ */
+ public Integer getInvId() {
+ return (Integer) get(1);
+ }
+
+ /**
+ * Setter for player_inventory_items.slot_id
.
+ */
+ public void setSlotId(Integer value) {
+ set(2, value);
+ }
+
+ /**
+ * Getter for player_inventory_items.slot_id
.
+ */
+ public Integer getSlotId() {
+ return (Integer) get(2);
+ }
+
+ /**
+ * Setter for player_inventory_items.item
.
+ */
+ public void setItem(String value) {
+ set(3, value);
+ }
+
+ /**
+ * Getter for player_inventory_items.item
.
+ */
+ public String getItem() {
+ return (String) get(3);
+ }
+
+ // -------------------------------------------------------------------------
+ // Primary key information
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Record3 key() {
+ return (Record3) super.key();
+ }
+
+ // -------------------------------------------------------------------------
+ // Record4 type implementation
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row4 fieldsRow() {
+ return (Row4) super.fieldsRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row4 valuesRow() {
+ return (Row4) super.valuesRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field1() {
+ return PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.PLAYER;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field2() {
+ return PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.INV_ID;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field3() {
+ return PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.SLOT_ID;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field4() {
+ return PlayerInventoryItems.PLAYER_INVENTORY_ITEMS.ITEM;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component1() {
+ return getPlayer();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component2() {
+ return getInvId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component3() {
+ return getSlotId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component4() {
+ return getItem();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value1() {
+ return getPlayer();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value2() {
+ return getInvId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value3() {
+ return getSlotId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value4() {
+ return getItem();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItemsRecord value1(String value) {
+ setPlayer(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItemsRecord value2(Integer value) {
+ setInvId(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItemsRecord value3(Integer value) {
+ setSlotId(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItemsRecord value4(String value) {
+ setItem(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PlayerInventoryItemsRecord values(String value1, Integer value2, Integer value3, String value4) {
+ value1(value1);
+ value2(value2);
+ value3(value3);
+ value4(value4);
+ return this;
+ }
+
+ // -------------------------------------------------------------------------
+ // Constructors
+ // -------------------------------------------------------------------------
+
+ /**
+ * Create a detached PlayerInventoryItemsRecord
+ */
+ public PlayerInventoryItemsRecord() {
+ super(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS);
+ }
+
+ /**
+ * Create a detached, initialised PlayerInventoryItemsRecord
+ */
+ public PlayerInventoryItemsRecord(String player, Integer invId, Integer slotId, String item) {
+ super(PlayerInventoryItems.PLAYER_INVENTORY_ITEMS);
+
+ set(0, player);
+ set(1, invId);
+ set(2, slotId);
+ set(3, item);
+ }
+}
diff --git a/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PoiRecord.java b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PoiRecord.java
new file mode 100644
index 0000000..dc7fff5
--- /dev/null
+++ b/src/main/java/io/rudin/minetest/tileserver/blockdb/tables/records/PoiRecord.java
@@ -0,0 +1,666 @@
+/*
+ * This file is generated by jOOQ.
+*/
+package io.rudin.minetest.tileserver.blockdb.tables.records;
+
+
+import io.rudin.minetest.tileserver.blockdb.tables.Poi;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record12;
+import org.jooq.Row12;
+import org.jooq.impl.TableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+ value = {
+ "http://www.jooq.org",
+ "jOOQ version:3.10.5"
+ },
+ comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class PoiRecord extends TableRecordImpl implements Record12 {
+
+ private static final long serialVersionUID = -584973914;
+
+ /**
+ * Setter for poi.id
.
+ */
+ public void setId(Integer value) {
+ set(0, value);
+ }
+
+ /**
+ * Getter for poi.id
.
+ */
+ public Integer getId() {
+ return (Integer) get(0);
+ }
+
+ /**
+ * Setter for poi.name
.
+ */
+ public void setName(String value) {
+ set(1, value);
+ }
+
+ /**
+ * Getter for poi.name
.
+ */
+ public String getName() {
+ return (String) get(1);
+ }
+
+ /**
+ * Setter for poi.category
.
+ */
+ public void setCategory(String value) {
+ set(2, value);
+ }
+
+ /**
+ * Getter for poi.category
.
+ */
+ public String getCategory() {
+ return (String) get(2);
+ }
+
+ /**
+ * Setter for poi.owner
.
+ */
+ public void setOwner(String value) {
+ set(3, value);
+ }
+
+ /**
+ * Getter for poi.owner
.
+ */
+ public String getOwner() {
+ return (String) get(3);
+ }
+
+ /**
+ * Setter for poi.active
.
+ */
+ public void setActive(String value) {
+ set(4, value);
+ }
+
+ /**
+ * Getter for poi.active
.
+ */
+ public String getActive() {
+ return (String) get(4);
+ }
+
+ /**
+ * Setter for poi.x
.
+ */
+ public void setX(Integer value) {
+ set(5, value);
+ }
+
+ /**
+ * Getter for poi.x
.
+ */
+ public Integer getX() {
+ return (Integer) get(5);
+ }
+
+ /**
+ * Setter for poi.y
.
+ */
+ public void setY(Integer value) {
+ set(6, value);
+ }
+
+ /**
+ * Getter for poi.y
.
+ */
+ public Integer getY() {
+ return (Integer) get(6);
+ }
+
+ /**
+ * Setter for poi.z
.
+ */
+ public void setZ(Integer value) {
+ set(7, value);
+ }
+
+ /**
+ * Getter for poi.z
.
+ */
+ public Integer getZ() {
+ return (Integer) get(7);
+ }
+
+ /**
+ * Setter for poi.posx
.
+ */
+ public void setPosx(Integer value) {
+ set(8, value);
+ }
+
+ /**
+ * Getter for poi.posx
.
+ */
+ public Integer getPosx() {
+ return (Integer) get(8);
+ }
+
+ /**
+ * Setter for poi.posy
.
+ */
+ public void setPosy(Integer value) {
+ set(9, value);
+ }
+
+ /**
+ * Getter for poi.posy
.
+ */
+ public Integer getPosy() {
+ return (Integer) get(9);
+ }
+
+ /**
+ * Setter for poi.posz
.
+ */
+ public void setPosz(Integer value) {
+ set(10, value);
+ }
+
+ /**
+ * Getter for poi.posz
.
+ */
+ public Integer getPosz() {
+ return (Integer) get(10);
+ }
+
+ /**
+ * Setter for poi.mtime
.
+ */
+ public void setMtime(Long value) {
+ set(11, value);
+ }
+
+ /**
+ * Getter for poi.mtime
.
+ */
+ public Long getMtime() {
+ return (Long) get(11);
+ }
+
+ // -------------------------------------------------------------------------
+ // Record12 type implementation
+ // -------------------------------------------------------------------------
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row12 fieldsRow() {
+ return (Row12) super.fieldsRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Row12 valuesRow() {
+ return (Row12) super.valuesRow();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field1() {
+ return Poi.POI.ID;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field2() {
+ return Poi.POI.NAME;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field3() {
+ return Poi.POI.CATEGORY;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field4() {
+ return Poi.POI.OWNER;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field5() {
+ return Poi.POI.ACTIVE;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field6() {
+ return Poi.POI.X;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field7() {
+ return Poi.POI.Y;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field8() {
+ return Poi.POI.Z;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field9() {
+ return Poi.POI.POSX;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field10() {
+ return Poi.POI.POSY;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field11() {
+ return Poi.POI.POSZ;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Field field12() {
+ return Poi.POI.MTIME;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component1() {
+ return getId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component2() {
+ return getName();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component3() {
+ return getCategory();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component4() {
+ return getOwner();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String component5() {
+ return getActive();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component6() {
+ return getX();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component7() {
+ return getY();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component8() {
+ return getZ();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component9() {
+ return getPosx();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component10() {
+ return getPosy();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer component11() {
+ return getPosz();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Long component12() {
+ return getMtime();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value1() {
+ return getId();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value2() {
+ return getName();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value3() {
+ return getCategory();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value4() {
+ return getOwner();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String value5() {
+ return getActive();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value6() {
+ return getX();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value7() {
+ return getY();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value8() {
+ return getZ();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value9() {
+ return getPosx();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value10() {
+ return getPosy();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer value11() {
+ return getPosz();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Long value12() {
+ return getMtime();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value1(Integer value) {
+ setId(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value2(String value) {
+ setName(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value3(String value) {
+ setCategory(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value4(String value) {
+ setOwner(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value5(String value) {
+ setActive(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value6(Integer value) {
+ setX(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value7(Integer value) {
+ setY(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value8(Integer value) {
+ setZ(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value9(Integer value) {
+ setPosx(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value10(Integer value) {
+ setPosy(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value11(Integer value) {
+ setPosz(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord value12(Long value) {
+ setMtime(value);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PoiRecord values(Integer value1, String value2, String value3, String value4, String value5, Integer value6, Integer value7, Integer value8, Integer value9, Integer value10, Integer value11, Long value12) {
+ value1(value1);
+ value2(value2);
+ value3(value3);
+ value4(value4);
+ value5(value5);
+ value6(value6);
+ value7(value7);
+ value8(value8);
+ value9(value9);
+ value10(value10);
+ value11(value11);
+ value12(value12);
+ return this;
+ }
+
+ // -------------------------------------------------------------------------
+ // Constructors
+ // -------------------------------------------------------------------------
+
+ /**
+ * Create a detached PoiRecord
+ */
+ public PoiRecord() {
+ super(Poi.POI);
+ }
+
+ /**
+ * Create a detached, initialised PoiRecord
+ */
+ public PoiRecord(Integer id, String name, String category, String owner, String active, Integer x, Integer y, Integer z, Integer posx, Integer posy, Integer posz, Long mtime) {
+ super(Poi.POI);
+
+ set(0, id);
+ set(1, name);
+ set(2, category);
+ set(3, owner);
+ set(4, active);
+ set(5, x);
+ set(6, y);
+ set(7, z);
+ set(8, posx);
+ set(9, posy);
+ set(10, posz);
+ set(11, mtime);
+ }
+}
diff --git a/src/main/resources/db/migration/V01__Init.sql b/src/main/resources/db/migration/V01__Init.sql
index 159217d..81d4e66 100644
--- a/src/main/resources/db/migration/V01__Init.sql
+++ b/src/main/resources/db/migration/V01__Init.sql
@@ -1,34 +1,20 @@
-alter table blocks add column mtime timestamp;
-create index BLOCKS_TIME on blocks(mtime);
-create table tileserver_tiles (
- x int not null,
- y int not null,
- z int not null,
- mtime bigint not null,
- tile bytea,
+alter table blocks add column mtime bigint not null default 0;
- PRIMARY KEY(x,y,z)
-);
+create index BLOCKS_TIME on blocks(mtime);
create or replace function on_blocks_change() returns trigger as
$BODY$
BEGIN
- NEW.mtime = now();
+ NEW.mtime = floor(EXTRACT(EPOCH from now()) * 1000);
return NEW;
END;
$BODY$
LANGUAGE plpgsql;
create trigger blocks_update
- after update
- on blocks
- for each row
- execute procedure on_blocks_change();
-
-create trigger blocks_insert
- after insert
+ before insert or update
on blocks
for each row
execute procedure on_blocks_change();
diff --git a/src/main/resources/db/migration/V02__POI.sql b/src/main/resources/db/migration/V02__POI.sql
new file mode 100644
index 0000000..26df980
--- /dev/null
+++ b/src/main/resources/db/migration/V02__POI.sql
@@ -0,0 +1,24 @@
+
+create table poi(
+ id serial not null,
+
+ name varchar not null,
+ category varchar not null,
+ owner varchar not null,
+ active bit not null,
+
+ -- block coordinates
+ x int not null,
+ y int not null,
+ z int not null,
+
+ -- mapblock coordinates
+ posx int not null,
+ posy int not null,
+ posz int not null,
+
+ mtime bigint not null
+
+);
+
+create index POI_MAPBLOCK on poi(posx, posy, posz);
\ No newline at end of file
diff --git a/src/main/resources/db/migration/V02__blocks-timestamp.sql b/src/main/resources/db/migration/V02__blocks-timestamp.sql
deleted file mode 100644
index d273653..0000000
--- a/src/main/resources/db/migration/V02__blocks-timestamp.sql
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-alter table blocks drop column mtime;
-alter table blocks add column mtime bigint not null default 0;
-
-
-create index BLOCKS_TIME on blocks(mtime);
-
-
-create or replace function on_blocks_change() returns trigger as
-$BODY$
-BEGIN
- NEW.mtime = floor(EXTRACT(EPOCH from now()) * 1000);
- return NEW;
-END;
-$BODY$
-LANGUAGE plpgsql;
-
-
-drop trigger blocks_update on blocks;
-drop trigger blocks_insert on blocks;
-
-create trigger blocks_update
- before insert or update
- on blocks
- for each row
- execute procedure on_blocks_change();
-
diff --git a/src/main/resources/db/migration/V03__tile-index.sql b/src/main/resources/db/migration/V03__tile-index.sql
deleted file mode 100644
index 3039863..0000000
--- a/src/main/resources/db/migration/V03__tile-index.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-
-create index TILES_TIME on tileserver_tiles(mtime);
diff --git a/src/main/resources/db/migration/V04__tile-cache-remove.sql b/src/main/resources/db/migration/V04__tile-cache-remove.sql
deleted file mode 100644
index a205e15..0000000
--- a/src/main/resources/db/migration/V04__tile-cache-remove.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-
-drop table tileserver_tiles;
diff --git a/src/test/java/io/rudin/minetest/tileserver/CodeGen.java b/src/test/java/io/rudin/minetest/tileserver/CodeGen.java
index e8616be..7d8d2a0 100644
--- a/src/test/java/io/rudin/minetest/tileserver/CodeGen.java
+++ b/src/test/java/io/rudin/minetest/tileserver/CodeGen.java
@@ -26,7 +26,6 @@ public static void main(String[] args) throws Exception {
Database database = new Database();
database.setName("org.jooq.util.postgres.PostgresDatabase");
- database.setIncludes("blocks|player|player_metadata|player_inventory|chat");
database.setInputSchema("public");
database.setOutputSchemaToDefault(true);
generator.setDatabase(database);