Skip to content

Commit d1dd7c6

Browse files
committed
added an archived field into the accounts database
1 parent 5bb1ab2 commit d1dd7c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/LocalAuthentication/Schema/Account.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class Account: PostgresStORM {
2323
public var detail = [String:Any]()
2424
public var company = ""
2525
public var region = ""
26+
public var archived = false
2627

2728
let _r = URandom()
2829

@@ -40,6 +41,7 @@ public class Account: PostgresStORM {
4041
}
4142
company = this.data["company"] as? String ?? ""
4243
region = this.data["region"] as? String ?? ""
44+
archived = this.data["archived"] as? Bool ?? false
4345
}
4446

4547
public func rows() -> [Account] {
@@ -76,6 +78,7 @@ public class Account: PostgresStORM {
7678
passvalidation = _r.secureToken
7779
source = s
7880
remoteid = rid
81+
archived = false
7982
}
8083

8184
public init(validation: String) {

0 commit comments

Comments
 (0)