Skip to content

Commit

Permalink
refactor(models): delete unnecessary default values
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Nov 19, 2024
1 parent 344d5d7 commit 7786f21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package net.yoshinorin.qualtet.domains.authors

import java.time.ZonedDateTime

final case class AuthorReadModel(
id: AuthorId = AuthorId.apply(),
id: AuthorId,
name: AuthorName,
displayName: AuthorDisplayName,
password: BCryptPassword,
createdAt: Long = ZonedDateTime.now.toEpochSecond
createdAt: Long
)

final case class AuthorWithoutPasswordReadModel(
id: AuthorId = AuthorId.apply(),
id: AuthorId,
name: AuthorName,
displayName: AuthorDisplayName,
createdAt: Long = ZonedDateTime.now.toEpochSecond
createdAt: Long
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.yoshinorin.qualtet.domains.contentTypes

final case class ContentTypeReadModel(
id: ContentTypeId = ContentTypeId.apply(),
id: ContentTypeId,
name: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final case class ContentWithMetaReadModel(
)

final case class ContentReadModel(
id: ContentId = ContentId.apply(),
id: ContentId,
authorId: AuthorId,
contentTypeId: ContentTypeId,
path: Path,
Expand Down

0 comments on commit 7786f21

Please sign in to comment.