Skip to content

Commit 517aab8

Browse files
authored
Merge branch 'master' into gm
2 parents 47985c0 + c3bc56f commit 517aab8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)