import GRDB

public struct MailboxRecord: Codable, FetchableRecord, PersistableRecord, Sendable {
	public static let databaseTableName = "mailbox"

	public var id: String
	public var accountId: String
	public var name: String
	public var uidValidity: Int
	public var uidNext: Int
	public var role: String?

	public init(
		id: String,
		accountId: String,
		name: String,
		uidValidity: Int,
		uidNext: Int,
		role: String? = nil
	) {
		self.id = id
		self.accountId = accountId
		self.name = name
		self.uidValidity = uidValidity
		self.uidNext = uidNext
		self.role = role
	}
}
