HistoryDataBase.swift
576 Bytes
//
// HistoryDataBase.swift
// browser
//
// Created by Artem Talko on 16.10.2023.
//
import UIKit
import Realm
import RealmSwift
final class HistoryDataBase: Object {
@Persisted(primaryKey: true) var historyCellId: String = UUID().uuidString
@Persisted var siteTitle: String
@Persisted var siteUrl: String
@Persisted var lastVisit: Date
convenience init(siteTitle: String, siteUrl: String, lastVisit: Date) {
self.init()
self.siteTitle = siteTitle
self.siteUrl = siteUrl
self.lastVisit = lastVisit
}
}