Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/realm #13

Merged
merged 12 commits into from
Nov 16, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import Foundation
import RealmSwift

class UserQuestEntity: Object {
final class UserQuestEntity: Object {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final ν‚€μ›Œλ“œλ‘œ μ„±λŠ₯ν–₯상 μ’‹μ•„μš” ~ :)

@Persisted var title: String
@Persisted var startDay: Date
@Persisted var endDay: Date
@Persisted var `repeat`: Int
@Persisted var currentCount: Int
@Persisted var totalCount: Int
override init(){ }

override init() { }

init(title: String, startDay: Date, endDay: Date, currentCount: Int, totalCount: Int) {
self.title = title
self.startDay = startDay
Expand Down