import GRDB

public struct LabelRecord: Codable, FetchableRecord, PersistableRecord, Sendable {
	public static let databaseTableName = "label"

	public var id: String
	public var accountId: String
	public var name: String
	public var isProject: Bool
	public var color: String?

	public init(
		id: String,
		accountId: String,
		name: String,
		isProject: Bool = false,
		color: String? = nil
	) {
		self.id = id
		self.accountId = accountId
		self.name = name
		self.isProject = isProject
		self.color = color
	}
}
