We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47985c0 + c3bc56f commit 517aab8Copy full SHA for 517aab8
Sources/FluentPostgreSQL/PostgreSQLStringModel.swift
@@ -0,0 +1,13 @@
1
+import Foundation
2
+
3
+public protocol PostgreSQLStringModel: Model where Self.Database == PostgreSQLDatabase, Self.ID == String {
4
+ /// This model's unique identifier.
5
+ var id: String? { get set }
6
+}
7
8
+extension PostgreSQLStringModel {
9
+ /// See `Model.idKey`
10
+ public static var idKey: IDKey { return \.id }
11
12
13
+public protocol PostgreSQLStringPivot: Pivot, PostgreSQLStringModel { }
0 commit comments