feat: Working on hummingbird app

This commit is contained in:
2025-01-14 07:51:13 -05:00
parent 6225c32007
commit 4f47f1aed8
10 changed files with 223 additions and 86 deletions

View File

@@ -5,23 +5,20 @@ public struct VendorBranch: Codable, Equatable, Identifiable, Sendable {
public var id: UUID
public var name: String
public var vendorID: Vendor.ID
public var createdAt: Date
public var updatedAt: Date
public var createdAt: Date?
public var updatedAt: Date?
public init(
id: UUID? = nil,
id: UUID,
name: String,
vendorID: Vendor.ID,
createdAt: Date? = nil,
updatedAt: Date? = nil
) {
@Dependency(\.date) var date
@Dependency(\.uuid) var uuid
self.id = id ?? uuid()
self.id = id
self.name = name
self.vendorID = vendorID
self.createdAt = createdAt ?? date.now
self.updatedAt = updatedAt ?? date.now
self.createdAt = createdAt
self.updatedAt = updatedAt
}
}