import GRDB

public struct ThreadRecord: Codable, FetchableRecord, PersistableRecord, Sendable {
	public static let databaseTableName = "thread"

	public var id: String
	public var accountId: String
	public var subject: String?
	public var lastDate: String
	public var messageCount: Int

	public init(id: String, accountId: String, subject: String?, lastDate: String, messageCount: Int) {
		self.id = id
		self.accountId = accountId
		self.subject = subject
		self.lastDate = lastDate
		self.messageCount = messageCount
	}
}
