- Documented mobile-first responsive design as REQUIRED standard - Added web development tech preferences (Next.js, Tailwind, etc.) - Created memory/project-standards.md for coding guidelines
19 lines
372 B
Swift
19 lines
372 B
Swift
import Foundation
|
|
import SwiftData
|
|
|
|
@Model
|
|
@MainActor
|
|
final class Session {
|
|
@Attribute(.unique) var id: UUID
|
|
var duration: TimeInterval
|
|
var completed: Bool
|
|
var date: Date
|
|
|
|
init(duration: TimeInterval, completed: Bool) {
|
|
self.id = UUID()
|
|
self.duration = duration
|
|
self.completed = completed
|
|
self.date = Date()
|
|
}
|
|
}
|