-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72bd7e3
commit 8c90e7e
Showing
25 changed files
with
97 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...rc/main/kotlin/com/astrainteractive/astratemplate/domain/local/entities/RatingRelation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package com.astrainteractive.astratemplate.domain.local.entities | ||
|
||
import ru.astrainteractive.astralibs.database.ColumnInfo | ||
import ru.astrainteractive.astralibs.database.Entity | ||
import ru.astrainteractive.astralibs.database.PrimaryKey | ||
import ru.astrainteractive.astralibs.database_v2.Column | ||
import ru.astrainteractive.astralibs.database_v2.Table | ||
import ru.astrainteractive.astralibs.orm.database.Column | ||
import ru.astrainteractive.astralibs.orm.database.Constructable | ||
import ru.astrainteractive.astralibs.orm.database.Entity | ||
import ru.astrainteractive.astralibs.orm.database.Table | ||
|
||
object RatingRelationTable : Table<Int>("rating") { | ||
override val id: Column<Int> = integer("id").primaryKey().autoIncrement() | ||
val userID = integer("user_id") | ||
val reason = text("reason") | ||
} | ||
class UserRating : ru.astrainteractive.astralibs.database_v2.Entity<Int>(RatingRelationTable){ | ||
class UserRating : Entity<Int>(RatingRelationTable){ | ||
val id by RatingRelationTable.id | ||
val userID by RatingRelationTable.userID | ||
val reason by RatingRelationTable.reason | ||
companion object: Constructable<UserRating>(::UserRating) | ||
} |
13 changes: 7 additions & 6 deletions
13
domain/src/main/kotlin/com/astrainteractive/astratemplate/domain/local/entities/User.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package com.astrainteractive.astratemplate.domain.local.entities | ||
|
||
import ru.astrainteractive.astralibs.database.ColumnInfo | ||
import ru.astrainteractive.astralibs.database.Entity | ||
import ru.astrainteractive.astralibs.database.PrimaryKey | ||
import ru.astrainteractive.astralibs.database_v2.Column | ||
import ru.astrainteractive.astralibs.database_v2.Table | ||
import ru.astrainteractive.astralibs.orm.database.Column | ||
import ru.astrainteractive.astralibs.orm.database.Constructable | ||
import ru.astrainteractive.astralibs.orm.database.Entity | ||
import ru.astrainteractive.astralibs.orm.database.Table | ||
|
||
|
||
object UserTable : Table<Int>("users") { | ||
override val id: Column<Int> = integer("id").primaryKey().autoIncrement() | ||
val discordId = text("discord_id") | ||
val minecraftUuid = text("minecraft_uuid") | ||
} | ||
|
||
class User : ru.astrainteractive.astralibs.database_v2.Entity<Int>(UserTable) { | ||
class User : Entity<Int>(UserTable) { | ||
val id by UserTable.id | ||
var discordId by UserTable.discordId | ||
var minecraftUuid by UserTable.minecraftUuid | ||
companion object: Constructable<User>(::User) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.