-
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.
refactor(models): delete unnecessary default values
- Loading branch information
1 parent
344d5d7
commit 7786f21
Showing
3 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 4 additions & 6 deletions
10
src/main/scala/net/yoshinorin/qualtet/domains/authors/models/AuthorReadModel.scala
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,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 | ||
) |
2 changes: 1 addition & 1 deletion
2
src/main/scala/net/yoshinorin/qualtet/domains/contentTypes/models/ContentTypeReadModel.scala
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,6 +1,6 @@ | ||
package net.yoshinorin.qualtet.domains.contentTypes | ||
|
||
final case class ContentTypeReadModel( | ||
id: ContentTypeId = ContentTypeId.apply(), | ||
id: ContentTypeId, | ||
name: String | ||
) |
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