Gastrack/gastrack/Entry.swift
2025-02-23 22:27:24 +13:00

28 lines
486 B
Swift

//
// Entry.swift
// gastrack
//
// Created by Pradyun Setti on 23/02/2025.
//
import Foundation
import SwiftData
@Model
final class Entry {
var id: UUID
var odo: Int
var cost: Double
var quantity: Double
var fuelType: String
public init(odo: Int, cost: Double, quantity: Double, fuelType: String) {
self.id = UUID()
self.odo = odo
self.cost = cost
self.quantity = quantity
self.fuelType = fuelType
}
}