Add password model
This commit is contained in:
parent
7ef8682e26
commit
e3deae28c6
1 changed files with 21 additions and 0 deletions
21
password/data/model/Password.swift
Normal file
21
password/data/model/Password.swift
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
//
|
||||||
|
// Password.swift
|
||||||
|
// password
|
||||||
|
//
|
||||||
|
// Created by Markus Thielker on 15.01.25.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
struct Password: Identifiable, Codable {
|
||||||
|
let id: UUID
|
||||||
|
let name: String
|
||||||
|
let value: String
|
||||||
|
var createdAt: Date = Date()
|
||||||
|
|
||||||
|
init(id: UUID = UUID(), name: String, value: String) {
|
||||||
|
self.id = id
|
||||||
|
self.name = name
|
||||||
|
self.value = value
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue