Initial project setup - Phases 1-3 complete
This commit is contained in:
13
ProxyCore/Sources/DataLayer/Models/DomainGroup.swift
Normal file
13
ProxyCore/Sources/DataLayer/Models/DomainGroup.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
import Foundation
|
||||
import GRDB
|
||||
|
||||
public struct DomainGroup: Decodable, FetchableRecord, Identifiable, Hashable, Sendable {
|
||||
public var id: String { domain }
|
||||
public var domain: String
|
||||
public var requestCount: Int
|
||||
|
||||
public init(domain: String, requestCount: Int) {
|
||||
self.domain = domain
|
||||
self.requestCount = requestCount
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user