toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
servers-service
/
piperkt.services.servers.infrastructure.persistence.model
Package-level
declarations
Types
Types
Channel
Entity
Link copied to clipboard
@
MappedEntity
data
class
ChannelEntity
(
@
Id
val
id
:
String
,
val
name
:
String
,
val
description
:
String
,
val
channelType
:
String
,
val
messages
:
List
<
MessageEntity
>
=
emptyList()
)
Message
Entity
Link copied to clipboard
@
MappedEntity
data
class
MessageEntity
(
@
Id
val
id
:
String
,
val
content
:
String
,
val
sender
:
String
,
val
timestamp
:
String
=
Instant.now().toString()
)
Server
Entity
Link copied to clipboard
@
MappedEntity
data
class
ServerEntity
(
@
Id
val
id
:
String
,
val
name
:
String
,
val
description
:
String
,
val
owner
:
String
,
val
users
:
List
<
String
>
=
listOf(owner)
,
val
channels
:
List
<
ChannelEntity
>
=
emptyList()
)
Server
Model
Repository
Link copied to clipboard
@
MongoRepository
interface
ServerModelRepository
:
CrudRepository
<
ServerEntity
,
String
>