Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit e99150f

Browse files
authored
Merge pull request #15 from shinking02/fix/schema
SwiftDataの構造体変更
2 parents dd9a05a + 49a3ae7 commit e99150f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JShift/Models/SwiftData/JobSchemaV1.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ enum JobSchemaV1: VersionedSchema {
99

1010
@Model
1111
final class Job {
12-
let id: UUID = UUID()
12+
var id: UUID = UUID()
1313
var name: String = ""
1414
var color: JobColor = JobColor.red
1515
var salaryType: JobSalaryType = JobSalaryType.hourly
@@ -57,7 +57,7 @@ enum JobSchemaV1: VersionedSchema {
5757

5858
@Model
5959
final class OneTimeJob {
60-
let id: UUID = UUID()
60+
var id: UUID = UUID()
6161
var name: String = ""
6262
var date: Date = Date()
6363
var salary: Int = 0

0 commit comments

Comments
 (0)