- ${getGroupLinks(it.value)}
${article.title}
+ + ${article.author} + + +${article.title}
+ ${article.author}+ ${article.body} +
+
DEFAULT_CATALOG
*/
- public val DEFAULT_CATALOG: DefaultCatalog = DefaultCatalog()
+ val DEFAULT_CATALOG: DefaultCatalog = DefaultCatalog()
}
/**
diff --git a/app-backend/src/main/kotlin/jooq/main/Public.kt b/app-backend/src/main/kotlin/jooq/main/Public.kt
index 0860b1b44..4ceba5882 100644
--- a/app-backend/src/main/kotlin/jooq/main/Public.kt
+++ b/app-backend/src/main/kotlin/jooq/main/Public.kt
@@ -22,6 +22,7 @@ import jooq.main.tables.CourseSpeaker
import jooq.main.tables.DmLikes
import jooq.main.tables.EntityTopic
import jooq.main.tables.FlywaySchemaHistory
+import jooq.main.tables.GithubAuth
import jooq.main.tables.KotlinVersion
import jooq.main.tables.Kotliner
import jooq.main.tables.KotlinerLikeEntityState
@@ -51,7 +52,7 @@ import org.jooq.impl.SchemaImpl
*/
@Suppress("UNCHECKED_CAST")
open class Public : SchemaImpl("public", DefaultCatalog.DEFAULT_CATALOG) {
- public companion object {
+ companion object {
/**
* The reference instance of public
@@ -144,6 +145,11 @@ open class Public : SchemaImpl("public", DefaultCatalog.DEFAULT_CATALOG) {
*/
val FLYWAY_SCHEMA_HISTORY: FlywaySchemaHistory get() = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY
+ /**
+ * The table public.github_auth
.
+ */
+ val GITHUB_AUTH: GithubAuth get() = GithubAuth.GITHUB_AUTH
+
/**
* The table public.kotlin_version
.
*/
@@ -243,6 +249,7 @@ open class Public : SchemaImpl("public", DefaultCatalog.DEFAULT_CATALOG) {
DmLikes.DM_LIKES,
EntityTopic.ENTITY_TOPIC,
FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY,
+ GithubAuth.GITHUB_AUTH,
KotlinVersion.KOTLIN_VERSION,
Kotliner.KOTLINER,
KotlinerLikeEntityState.KOTLINER_LIKE_ENTITY_STATE,
diff --git a/app-backend/src/main/kotlin/jooq/main/keys/Keys.kt b/app-backend/src/main/kotlin/jooq/main/keys/Keys.kt
index 0950f76db..90496cc0e 100644
--- a/app-backend/src/main/kotlin/jooq/main/keys/Keys.kt
+++ b/app-backend/src/main/kotlin/jooq/main/keys/Keys.kt
@@ -20,6 +20,7 @@ import jooq.main.tables.CourseLibrary
import jooq.main.tables.CourseSpeaker
import jooq.main.tables.DmLikes
import jooq.main.tables.FlywaySchemaHistory
+import jooq.main.tables.GithubAuth
import jooq.main.tables.KotlinVersion
import jooq.main.tables.Kotliner
import jooq.main.tables.KotlinerLikeEntityState
@@ -50,6 +51,7 @@ import jooq.main.tables.records.CourseRecord
import jooq.main.tables.records.CourseSpeakerRecord
import jooq.main.tables.records.DmLikesRecord
import jooq.main.tables.records.FlywaySchemaHistoryRecord
+import jooq.main.tables.records.GithubAuthRecord
import jooq.main.tables.records.KotlinVersionRecord
import jooq.main.tables.records.KotlinerLikeEntityStateRecord
import jooq.main.tables.records.KotlinerReadEntityStateRecord
@@ -92,6 +94,7 @@ val COURSE_LIBRARY_PKEY: UniqueKeypublic.kotliner
table, via
- * the article_updated_by_fkey
key.
- */
- fun articleUpdatedByFkey(): KotlinerPath {
- if (!this::_articleUpdatedByFkey.isInitialized)
- _articleUpdatedByFkey = KotlinerPath(this, ARTICLE__ARTICLE_UPDATED_BY_FKEY, null)
-
- return _articleUpdatedByFkey;
- }
-
- val articleUpdatedByFkey: KotlinerPath
- get(): KotlinerPath = articleUpdatedByFkey()
+ override fun getReferences(): Listpublic.kotliner
table, via
+ * the article_updated_by_fkey
key.
+ */
+ fun articleUpdatedByFkey(): KotlinerPath {
+ if (!this::_articleUpdatedByFkey.isInitialized)
+ _articleUpdatedByFkey = KotlinerPath(this, ARTICLE__ARTICLE_UPDATED_BY_FKEY, null)
+
+ return _articleUpdatedByFkey;
+ }
+
+ val articleUpdatedByFkey: KotlinerPath
+ get(): KotlinerPath = articleUpdatedByFkey()
+
private lateinit var _articleAuthor: ArticleAuthorPath
/**
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/Comment.kt b/app-backend/src/main/kotlin/jooq/main/tables/Comment.kt
index 6f986431f..e51dd0e43 100644
--- a/app-backend/src/main/kotlin/jooq/main/tables/Comment.kt
+++ b/app-backend/src/main/kotlin/jooq/main/tables/Comment.kt
@@ -147,22 +147,7 @@ open class Comment(
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
override fun getIdentity(): Identitypublic.comment
table.
- */
- fun comment(): CommentPath {
- if (!this::_comment.isInitialized)
- _comment = CommentPath(this, COMMENT__COMMENT_PARENT_ID_FKEY, null)
-
- return _comment;
- }
-
- val comment: CommentPath
- get(): CommentPath = comment()
+ override fun getReferences(): Listpublic.comment
table.
+ */
+ fun comment(): CommentPath {
+ if (!this::_comment.isInitialized)
+ _comment = CommentPath(this, COMMENT__COMMENT_PARENT_ID_FKEY, null)
+
+ return _comment;
+ }
+
+ val comment: CommentPath
+ get(): CommentPath = comment()
override fun `as`(alias: String): Comment = Comment(DSL.name(alias), this)
override fun `as`(alias: Name): Comment = Comment(alias, this)
override fun `as`(alias: Table<*>): Comment = Comment(alias.qualifiedName, this)
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/GithubAuth.kt b/app-backend/src/main/kotlin/jooq/main/tables/GithubAuth.kt
new file mode 100644
index 000000000..3751655b5
--- /dev/null
+++ b/app-backend/src/main/kotlin/jooq/main/tables/GithubAuth.kt
@@ -0,0 +1,207 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package jooq.main.tables
+
+
+import java.time.LocalDateTime
+import java.util.UUID
+
+import jooq.main.Public
+import jooq.main.keys.GITHUB_AUTH_PKEY
+import jooq.main.tables.records.GithubAuthRecord
+
+import kotlin.collections.Collection
+
+import org.jooq.Condition
+import org.jooq.Field
+import org.jooq.ForeignKey
+import org.jooq.InverseForeignKey
+import org.jooq.Name
+import org.jooq.PlainSQL
+import org.jooq.QueryPart
+import org.jooq.Record
+import org.jooq.SQL
+import org.jooq.Schema
+import org.jooq.Select
+import org.jooq.Stringly
+import org.jooq.Table
+import org.jooq.TableField
+import org.jooq.TableOptions
+import org.jooq.UniqueKey
+import org.jooq.impl.DSL
+import org.jooq.impl.SQLDataType
+import org.jooq.impl.TableImpl
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Suppress("UNCHECKED_CAST")
+open class GithubAuth(
+ alias: Name,
+ path: Tablepublic.github_auth
+ */
+ val GITHUB_AUTH: GithubAuth = GithubAuth()
+ }
+
+ /**
+ * The class holding records for this type
+ */
+ override fun getRecordType(): Classpublic.github_auth.id
.
+ */
+ val ID: TableFieldpublic.github_auth.user_id
.
+ */
+ val USER_ID: TableFieldpublic.github_auth.access_token
.
+ */
+ val ACCESS_TOKEN: TableFieldpublic.github_auth.expires_in
.
+ */
+ val EXPIRES_IN: TableFieldpublic.github_auth.refresh_token
.
+ */
+ val REFRESH_TOKEN: TableFieldpublic.github_auth.refresh_token_expires_in
.
+ */
+ val REFRESH_TOKEN_EXPIRES_IN: TableFieldpublic.github_auth.token_type
.
+ */
+ val TOKEN_TYPE: TableFieldpublic.github_auth.scope
.
+ */
+ val SCOPE: TableFieldpublic.github_auth.created_at
.
+ */
+ val CREATED_AT: TableFieldpublic.github_auth
table reference
+ */
+ constructor(alias: String): this(DSL.name(alias))
+
+ /**
+ * Create an aliased public.github_auth
table reference
+ */
+ constructor(alias: Name): this(alias, null)
+
+ /**
+ * Create a public.github_auth
table reference
+ */
+ constructor(): this(DSL.name("github_auth"), null)
+ override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
+ override fun getPrimaryKey(): UniqueKeypublic.article_author
table
+ */
+ fun articleAuthor(): ArticleAuthorPath {
+ if (!this::_articleAuthor.isInitialized)
+ _articleAuthor = ArticleAuthorPath(this, null, ARTICLE_AUTHOR__ARTICLE_AUTHOR_KOTLINER_ID_FKEY.inverseKey)
+
+ return _articleAuthor;
+ }
+
+ val articleAuthor: ArticleAuthorPath
+ get(): ArticleAuthorPath = articleAuthor()
+
private lateinit var _articleCreatedByFkey: ArticlePath
/**
@@ -250,22 +266,6 @@ open class Kotliner(
val articleUpdatedByFkey: ArticlePath
get(): ArticlePath = articleUpdatedByFkey()
- private lateinit var _articleAuthor: ArticleAuthorPath
-
- /**
- * Get the implicit to-many join path to the
- * public.article_author
table
- */
- fun articleAuthor(): ArticleAuthorPath {
- if (!this::_articleAuthor.isInitialized)
- _articleAuthor = ArticleAuthorPath(this, null, ARTICLE_AUTHOR__ARTICLE_AUTHOR_KOTLINER_ID_FKEY.inverseKey)
-
- return _articleAuthor;
- }
-
- val articleAuthor: ArticleAuthorPath
- get(): ArticleAuthorPath = articleAuthor()
-
private lateinit var _bookSpeaker: BookSpeakerPath
/**
@@ -362,22 +362,6 @@ open class Kotliner(
val kugCreatedByFkey: KugPath
get(): KugPath = kugCreatedByFkey()
- private lateinit var _kugUpdatedByFkey: KugPath
-
- /**
- * Get the implicit to-many join path to the public.kug
table,
- * via the kug_updated_by_fkey
key
- */
- fun kugUpdatedByFkey(): KugPath {
- if (!this::_kugUpdatedByFkey.isInitialized)
- _kugUpdatedByFkey = KugPath(this, null, KUG__KUG_UPDATED_BY_FKEY.inverseKey)
-
- return _kugUpdatedByFkey;
- }
-
- val kugUpdatedByFkey: KugPath
- get(): KugPath = kugUpdatedByFkey()
-
private lateinit var _kugEvent: KugEventPath
/**
@@ -410,6 +394,22 @@ open class Kotliner(
val kugMember: KugMemberPath
get(): KugMemberPath = kugMember()
+ private lateinit var _kugUpdatedByFkey: KugPath
+
+ /**
+ * Get the implicit to-many join path to the public.kug
table,
+ * via the kug_updated_by_fkey
key
+ */
+ fun kugUpdatedByFkey(): KugPath {
+ if (!this::_kugUpdatedByFkey.isInitialized)
+ _kugUpdatedByFkey = KugPath(this, null, KUG__KUG_UPDATED_BY_FKEY.inverseKey)
+
+ return _kugUpdatedByFkey;
+ }
+
+ val kugUpdatedByFkey: KugPath
+ get(): KugPath = kugUpdatedByFkey()
+
private lateinit var _vacancy: VacancyPath
/**
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/KugEvent.kt b/app-backend/src/main/kotlin/jooq/main/tables/KugEvent.kt
index e5e2bc351..d99330c35 100644
--- a/app-backend/src/main/kotlin/jooq/main/tables/KugEvent.kt
+++ b/app-backend/src/main/kotlin/jooq/main/tables/KugEvent.kt
@@ -163,22 +163,7 @@ open class KugEvent(
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
override fun getIdentity(): Identitypublic.kotliner
table.
- */
- fun kotliner(): KotlinerPath {
- if (!this::_kotliner.isInitialized)
- _kotliner = KotlinerPath(this, KUG_EVENT__KUG_EVENT_UPDATED_BY_FKEY, null)
-
- return _kotliner;
- }
-
- val kotliner: KotlinerPath
- get(): KotlinerPath = kotliner()
+ override fun getReferences(): Listpublic.kotliner
table.
+ */
+ fun kotliner(): KotlinerPath {
+ if (!this::_kotliner.isInitialized)
+ _kotliner = KotlinerPath(this, KUG_EVENT__KUG_EVENT_UPDATED_BY_FKEY, null)
+
+ return _kotliner;
+ }
+
+ val kotliner: KotlinerPath
+ get(): KotlinerPath = kotliner()
override fun `as`(alias: String): KugEvent = KugEvent(DSL.name(alias), this)
override fun `as`(alias: Name): KugEvent = KugEvent(alias, this)
override fun `as`(alias: Table<*>): KugEvent = KugEvent(alias.qualifiedName, this)
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/VideoLibrary.kt b/app-backend/src/main/kotlin/jooq/main/tables/VideoLibrary.kt
index cd6a6d23b..0a96f43f4 100644
--- a/app-backend/src/main/kotlin/jooq/main/tables/VideoLibrary.kt
+++ b/app-backend/src/main/kotlin/jooq/main/tables/VideoLibrary.kt
@@ -118,22 +118,7 @@ open class VideoLibrary(
}
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
override fun getPrimaryKey(): UniqueKeypublic.video
table.
- */
- fun video(): VideoPath {
- if (!this::_video.isInitialized)
- _video = VideoPath(this, VIDEO_LIBRARY__VIDEO_LIBRARY_VIDEO_ID_FKEY, null)
-
- return _video;
- }
-
- val video: VideoPath
- get(): VideoPath = video()
+ override fun getReferences(): Listpublic.video
table.
+ */
+ fun video(): VideoPath {
+ if (!this::_video.isInitialized)
+ _video = VideoPath(this, VIDEO_LIBRARY__VIDEO_LIBRARY_VIDEO_ID_FKEY, null)
+
+ return _video;
+ }
+
+ val video: VideoPath
+ get(): VideoPath = video()
override fun `as`(alias: String): VideoLibrary = VideoLibrary(DSL.name(alias), this)
override fun `as`(alias: Name): VideoLibrary = VideoLibrary(alias, this)
override fun `as`(alias: Table<*>): VideoLibrary = VideoLibrary(alias.qualifiedName, this)
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/VideoSpeaker.kt b/app-backend/src/main/kotlin/jooq/main/tables/VideoSpeaker.kt
index 835a8075e..b7589fbe2 100644
--- a/app-backend/src/main/kotlin/jooq/main/tables/VideoSpeaker.kt
+++ b/app-backend/src/main/kotlin/jooq/main/tables/VideoSpeaker.kt
@@ -118,22 +118,7 @@ open class VideoSpeaker(
}
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
override fun getPrimaryKey(): UniqueKeypublic.video
table.
- */
- fun video(): VideoPath {
- if (!this::_video.isInitialized)
- _video = VideoPath(this, VIDEO_SPEAKER__VIDEO_SPEAKER_VIDEO_ID_FKEY, null)
-
- return _video;
- }
-
- val video: VideoPath
- get(): VideoPath = video()
+ override fun getReferences(): Listpublic.video
table.
+ */
+ fun video(): VideoPath {
+ if (!this::_video.isInitialized)
+ _video = VideoPath(this, VIDEO_SPEAKER__VIDEO_SPEAKER_VIDEO_ID_FKEY, null)
+
+ return _video;
+ }
+
+ val video: VideoPath
+ get(): VideoPath = video()
override fun `as`(alias: String): VideoSpeaker = VideoSpeaker(DSL.name(alias), this)
override fun `as`(alias: Name): VideoSpeaker = VideoSpeaker(alias, this)
override fun `as`(alias: Table<*>): VideoSpeaker = VideoSpeaker(alias.qualifiedName, this)
diff --git a/app-backend/src/main/kotlin/jooq/main/tables/daos/GithubAuthDao.kt b/app-backend/src/main/kotlin/jooq/main/tables/daos/GithubAuthDao.kt
new file mode 100644
index 000000000..a3efa57f4
--- /dev/null
+++ b/app-backend/src/main/kotlin/jooq/main/tables/daos/GithubAuthDao.kt
@@ -0,0 +1,135 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package jooq.main.tables.daos
+
+
+import java.time.LocalDateTime
+import java.util.UUID
+
+import jooq.main.tables.GithubAuth
+import jooq.main.tables.records.GithubAuthRecord
+
+import kotlin.collections.List
+
+import org.jooq.Configuration
+import org.jooq.impl.DAOImpl
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Suppress("UNCHECKED_CAST")
+open class GithubAuthDao(configuration: Configuration?) : DAOImplid BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfId(lowerInclusive: UUID?, upperInclusive: UUID?): Listid IN (values)
+ */
+ fun fetchById(vararg values: UUID): Listid = value
+ */
+ fun fetchOneById(value: UUID): jooq.main.tables.pojos.GithubAuth? = fetchOne(GithubAuth.GITHUB_AUTH.ID, value)
+
+ /**
+ * Fetch records that have user_id BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfUserId(lowerInclusive: UUID?, upperInclusive: UUID?): Listuser_id IN (values)
+ */
+ fun fetchByUserId(vararg values: UUID): Listaccess_token BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfAccessToken(lowerInclusive: String?, upperInclusive: String?): Listaccess_token IN (values)
+ */
+ fun fetchByAccessToken(vararg values: String): Listexpires_in BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfExpiresIn(lowerInclusive: Int?, upperInclusive: Int?): Listexpires_in IN (values)
+ */
+ fun fetchByExpiresIn(vararg values: Int): Listrefresh_token BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfRefreshToken(lowerInclusive: String?, upperInclusive: String?): Listrefresh_token IN (values)
+ */
+ fun fetchByRefreshToken(vararg values: String): Listrefresh_token_expires_in BETWEEN
+ * lowerInclusive AND upperInclusive
+ */
+ fun fetchRangeOfRefreshTokenExpiresIn(lowerInclusive: Int?, upperInclusive: Int?): Listrefresh_token_expires_in IN (values)
+ */
+ fun fetchByRefreshTokenExpiresIn(vararg values: Int): Listtoken_type BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfTokenType(lowerInclusive: String?, upperInclusive: String?): Listtoken_type IN (values)
+ */
+ fun fetchByTokenType(vararg values: String): Listscope BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfScope(lowerInclusive: String?, upperInclusive: String?): Listscope IN (values)
+ */
+ fun fetchByScope(vararg values: String): Listcreated_at BETWEEN lowerInclusive AND
+ * upperInclusive
+ */
+ fun fetchRangeOfCreatedAt(lowerInclusive: LocalDateTime?, upperInclusive: LocalDateTime?): Listcreated_at IN (values)
+ */
+ fun fetchByCreatedAt(vararg values: LocalDateTime): Listpublic.github_auth
.
+ */
+val GITHUB_AUTH: GithubAuth = GithubAuth.GITHUB_AUTH
+
/**
* The table public.kotlin_version
.
*/
diff --git a/app-backend/src/main/kotlin/ktor/KtorRoute.kt b/app-backend/src/main/kotlin/ktor/KtorRoute.kt
deleted file mode 100644
index 98f69bf1e..000000000
--- a/app-backend/src/main/kotlin/ktor/KtorRoute.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package ktor
-
-import io.ktor.server.routing.*
-
-interface KtorRoute {
- fun Routing.install()
-}
diff --git a/app-backend/src/main/kotlin/ktor/plugins/HTTP.kt b/app-backend/src/main/kotlin/ktor/plugins/HTTP.kt
deleted file mode 100644
index 441df6822..000000000
--- a/app-backend/src/main/kotlin/ktor/plugins/HTTP.kt
+++ /dev/null
@@ -1,112 +0,0 @@
-package ktor.plugins
-
-import com.auth0.jwt.JWT
-import com.auth0.jwt.algorithms.Algorithm
-
-import io.ktor.http.CacheControl
-import io.ktor.http.ContentType
-import io.ktor.http.HttpStatusCode
-import io.ktor.http.auth.*
-import io.ktor.http.content.CachingOptions
-import io.ktor.serialization.kotlinx.json.json
-import io.ktor.server.application.Application
-import io.ktor.server.application.install
-import io.ktor.server.auth.authentication
-import io.ktor.server.auth.jwt.JWTPrincipal
-import io.ktor.server.auth.jwt.jwt
-import io.ktor.server.plugins.cachingheaders.CachingHeaders
-import io.ktor.server.plugins.contentnegotiation.ContentNegotiation
-import io.ktor.server.plugins.defaultheaders.DefaultHeaders
-import io.ktor.server.plugins.statuspages.StatusPages
-import io.ktor.server.resources.Resources
-import io.ktor.server.response.respond
-import kotlinx.serialization.Serializable
-import usecases.signup.JwtModule
-import utils.logger
-import kotlin.time.Duration.Companion.days
-
-fun Application.defaults(
- jwtConfig: JwtModule.JwtConfig,
-) {
- install(Resources)
-
- install(ContentNegotiation) {
- json()
- }
-
- install(DefaultHeaders) {
- header("X-Application", "awesome-kotlin/v2")
- }
-
- install(CachingHeaders) {
- options { _, outgoingContent ->
- when (outgoingContent.contentType?.withoutParameters()) {
- ContentType.Text.CSS -> CachingOptions(
- CacheControl.MaxAge(
- maxAgeSeconds = 365.days
- .inWholeSeconds
- .toInt()
- )
- )
- else -> null
- }
- }
- }
-
- install(StatusPages) {
- exception