session-ios/SessionSnodeKit/Database/Models/SnodeReceivedMessageInfo.swift
Morgan Pretty 529e416dd1 Started work on GRDB logic and migrations
Setup a migration pattern
Setup the database configuration and security
Started defining the database schema
Started working on the migrations for SessionSnodeKit
2022-03-31 11:47:09 +11:00

20 lines
523 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
import GRDB
import SessionUtilitiesKit
struct SnodeReceivedMessageInfo: Codable, FetchableRecord, PersistableRecord, TableRecord, ColumnExpressible {
static var databaseTableName: String { "snodeReceivedMessageInfo" }
public enum Columns: String, CodingKey, ColumnExpression {
case key
case hash
case expirationDateMs
}
let key: String
let hash: String
let expirationDateMs: Int64
}