From 97fc2975c5fc2d27e1ce712d243bcbfa499f2e12 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Wed, 12 Jul 2023 13:17:47 +0200 Subject: [PATCH] feat: added MatchPlanningData and MatchPlanningDataData Signed-off-by: limited_dev --- .../data/entry/MatchPlanningDataData.kt | 32 ++++++++++++++++++ .../lilJudd/data/tables/MatchPlanningData.kt | 33 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/main/kotlin/net/moonleay/lilJudd/data/entry/MatchPlanningDataData.kt create mode 100644 src/main/kotlin/net/moonleay/lilJudd/data/tables/MatchPlanningData.kt diff --git a/src/main/kotlin/net/moonleay/lilJudd/data/entry/MatchPlanningDataData.kt b/src/main/kotlin/net/moonleay/lilJudd/data/entry/MatchPlanningDataData.kt new file mode 100644 index 0000000..ca0bd32 --- /dev/null +++ b/src/main/kotlin/net/moonleay/lilJudd/data/entry/MatchPlanningDataData.kt @@ -0,0 +1,32 @@ +/* + * lilJudd + * Copyright (C) 2023 moonleay + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.moonleay.lilJudd.data.entry + +data class MatchPlanningDataData( + val id: Int, + val serverid: String, + val channelid: String, + val matchtype: String, + val registererid: String, + val roleid: String, + val opponentname: String, + val messageid: String, + val timestamp: String, + val jobstr: String +) diff --git a/src/main/kotlin/net/moonleay/lilJudd/data/tables/MatchPlanningData.kt b/src/main/kotlin/net/moonleay/lilJudd/data/tables/MatchPlanningData.kt new file mode 100644 index 0000000..2de3ece --- /dev/null +++ b/src/main/kotlin/net/moonleay/lilJudd/data/tables/MatchPlanningData.kt @@ -0,0 +1,33 @@ +/* + * lilJudd + * Copyright (C) 2023 moonleay + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.moonleay.lilJudd.data.tables + +import org.jetbrains.exposed.dao.id.IntIdTable + +object MatchPlanningData : IntIdTable() { + var serverid = varchar("serverid", 50) + var channelid = varchar("channelid", 50) + var matchtype = varchar("matchtype", 50) + var registererid = varchar("registererid", 50) + var roleid = varchar("roleid", 50) + var opponentName = varchar("opponentname", 100) + var messageid = varchar("messageid", 50) + var timestamp = varchar("timestamp", 50) + var jobstr = varchar("jobstr", 50) +}