@aeolus-fleet/core 0.26.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/http/request-credentials.d.ts +2 -9
  3. package/dist/adapters/http/request-credentials.js +8 -1
  4. package/dist/adapters/http/request-credentials.js.map +1 -1
  5. package/dist/adapters/http/server.js +2 -1
  6. package/dist/adapters/http/server.js.map +1 -1
  7. package/dist/adapters/mcp/mcp-endpoint.js +11 -1
  8. package/dist/adapters/mcp/mcp-endpoint.js.map +1 -1
  9. package/dist/adapters/prisma/generated/browser.d.ts +8 -0
  10. package/dist/adapters/prisma/generated/client.d.ts +8 -0
  11. package/dist/adapters/prisma/generated/enums.d.ts +2 -0
  12. package/dist/adapters/prisma/generated/enums.js +3 -1
  13. package/dist/adapters/prisma/generated/enums.js.map +1 -1
  14. package/dist/adapters/prisma/generated/internal/class.d.ts +11 -0
  15. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  16. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  17. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +94 -1
  18. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +18 -1
  19. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  20. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +18 -0
  21. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +18 -1
  22. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  23. package/dist/adapters/prisma/generated/models/Delivery.d.ts +71 -1
  24. package/dist/adapters/prisma/generated/models/Fleet.d.ts +275 -0
  25. package/dist/adapters/prisma/generated/models/Lease.d.ts +113 -1
  26. package/dist/adapters/prisma/generated/models/NetworkSettings.d.ts +151 -19
  27. package/dist/adapters/prisma/generated/models/ReachRefusal.d.ts +71 -1
  28. package/dist/adapters/prisma/generated/models/ScopeNamespace.d.ts +1220 -0
  29. package/dist/adapters/prisma/generated/models/ScopeNamespace.js +2 -0
  30. package/dist/adapters/prisma/generated/models/ScopeNamespace.js.map +1 -0
  31. package/dist/adapters/prisma/generated/models/Ship.d.ts +983 -55
  32. package/dist/adapters/prisma/generated/models.d.ts +1 -0
  33. package/dist/adapters/prisma/health.js +27 -7
  34. package/dist/adapters/prisma/health.js.map +1 -1
  35. package/dist/adapters/prisma/history.js +14 -70
  36. package/dist/adapters/prisma/history.js.map +1 -1
  37. package/dist/adapters/prisma/messaging.js +27 -34
  38. package/dist/adapters/prisma/messaging.js.map +1 -1
  39. package/dist/adapters/prisma/network.js +39 -12
  40. package/dist/adapters/prisma/network.js.map +1 -1
  41. package/dist/adapters/prisma/registry.js +65 -11
  42. package/dist/adapters/prisma/registry.js.map +1 -1
  43. package/dist/adapters/prisma/rows.d.ts +3 -0
  44. package/dist/adapters/prisma/rows.js +20 -7
  45. package/dist/adapters/prisma/rows.js.map +1 -1
  46. package/dist/adapters/prisma/scope-namespaces.d.ts +4 -0
  47. package/dist/adapters/prisma/scope-namespaces.js +39 -0
  48. package/dist/adapters/prisma/scope-namespaces.js.map +1 -0
  49. package/dist/adapters/prisma/unit-of-work.d.ts +2 -1
  50. package/dist/adapters/prisma/unit-of-work.js +2 -0
  51. package/dist/adapters/prisma/unit-of-work.js.map +1 -1
  52. package/dist/adapters/rest/rest-api.js +2 -2
  53. package/dist/adapters/rest/rest-api.js.map +1 -1
  54. package/dist/adapters/trpc/console.d.ts +1 -1
  55. package/dist/adapters/trpc/console.js +6 -4
  56. package/dist/adapters/trpc/console.js.map +1 -1
  57. package/dist/adapters/trpc/context.d.ts +20 -4
  58. package/dist/adapters/trpc/fleet.d.ts +179 -82
  59. package/dist/adapters/trpc/fleet.js +117 -53
  60. package/dist/adapters/trpc/fleet.js.map +1 -1
  61. package/dist/adapters/trpc/router.d.ts +231 -80
  62. package/dist/adapters/trpc/ship-contract.js +4 -0
  63. package/dist/adapters/trpc/ship-contract.js.map +1 -1
  64. package/dist/adapters/trpc/ship-protocol.js +7 -5
  65. package/dist/adapters/trpc/ship-protocol.js.map +1 -1
  66. package/dist/adapters/trpc/ship.d.ts +71 -3
  67. package/dist/adapters/trpc/ship.js +42 -5
  68. package/dist/adapters/trpc/ship.js.map +1 -1
  69. package/dist/adapters/trpc/trpc.d.ts +6 -5
  70. package/dist/adapters/trpc/trpc.js +76 -21
  71. package/dist/adapters/trpc/trpc.js.map +1 -1
  72. package/dist/domain/messaging/check-inbox.d.ts +5 -5
  73. package/dist/domain/messaging/check-inbox.js +9 -7
  74. package/dist/domain/messaging/check-inbox.js.map +1 -1
  75. package/dist/domain/messaging/dismiss-delivery.d.ts +9 -4
  76. package/dist/domain/messaging/dismiss-delivery.js +26 -19
  77. package/dist/domain/messaging/dismiss-delivery.js.map +1 -1
  78. package/dist/domain/messaging/message.d.ts +11 -5
  79. package/dist/domain/messaging/message.js +11 -4
  80. package/dist/domain/messaging/message.js.map +1 -1
  81. package/dist/domain/messaging/ping-ship.d.ts +3 -3
  82. package/dist/domain/messaging/ping-ship.js +6 -2
  83. package/dist/domain/messaging/ping-ship.js.map +1 -1
  84. package/dist/domain/messaging/ports.d.ts +9 -3
  85. package/dist/domain/messaging/receive-deliveries.d.ts +2 -0
  86. package/dist/domain/messaging/receive-deliveries.js +1 -0
  87. package/dist/domain/messaging/receive-deliveries.js.map +1 -1
  88. package/dist/domain/messaging/resend-delivery.d.ts +5 -2
  89. package/dist/domain/messaging/resend-delivery.js +8 -4
  90. package/dist/domain/messaging/resend-delivery.js.map +1 -1
  91. package/dist/domain/messaging/send-message.d.ts +9 -2
  92. package/dist/domain/messaging/send-message.js +12 -2
  93. package/dist/domain/messaging/send-message.js.map +1 -1
  94. package/dist/domain/messaging/send-request.d.ts +3 -1
  95. package/dist/domain/messaging/send-request.js +4 -2
  96. package/dist/domain/messaging/send-request.js.map +1 -1
  97. package/dist/domain/registry/assign-label.d.ts +2 -1
  98. package/dist/domain/registry/assign-label.js +3 -2
  99. package/dist/domain/registry/assign-label.js.map +1 -1
  100. package/dist/domain/registry/check-reach.d.ts +63 -4
  101. package/dist/domain/registry/check-reach.js +107 -11
  102. package/dist/domain/registry/check-reach.js.map +1 -1
  103. package/dist/domain/registry/commission-ship.d.ts +17 -8
  104. package/dist/domain/registry/commission-ship.js +24 -10
  105. package/dist/domain/registry/commission-ship.js.map +1 -1
  106. package/dist/domain/registry/crew-request.d.ts +1 -1
  107. package/dist/domain/registry/declare-scopes.d.ts +38 -0
  108. package/dist/domain/registry/declare-scopes.js +34 -0
  109. package/dist/domain/registry/declare-scopes.js.map +1 -0
  110. package/dist/domain/registry/declared-network-rules.d.ts +2 -1
  111. package/dist/domain/registry/declared-network-rules.js +11 -5
  112. package/dist/domain/registry/declared-network-rules.js.map +1 -1
  113. package/dist/domain/registry/discover.d.ts +28 -0
  114. package/dist/domain/registry/discover.js +54 -0
  115. package/dist/domain/registry/discover.js.map +1 -0
  116. package/dist/domain/registry/explain-reach.d.ts +12 -12
  117. package/dist/domain/registry/explain-reach.js +35 -12
  118. package/dist/domain/registry/explain-reach.js.map +1 -1
  119. package/dist/domain/registry/get-ship.d.ts +11 -3
  120. package/dist/domain/registry/get-ship.js +8 -2
  121. package/dist/domain/registry/get-ship.js.map +1 -1
  122. package/dist/domain/registry/get-starting-prompt.d.ts +18 -2
  123. package/dist/domain/registry/get-starting-prompt.js +7 -7
  124. package/dist/domain/registry/get-starting-prompt.js.map +1 -1
  125. package/dist/domain/registry/grant-scopes.d.ts +34 -0
  126. package/dist/domain/registry/grant-scopes.js +35 -0
  127. package/dist/domain/registry/grant-scopes.js.map +1 -0
  128. package/dist/domain/registry/label.d.ts +12 -7
  129. package/dist/domain/registry/label.js +21 -4
  130. package/dist/domain/registry/label.js.map +1 -1
  131. package/dist/domain/registry/list-fleet.d.ts +19 -6
  132. package/dist/domain/registry/list-fleet.js +18 -3
  133. package/dist/domain/registry/list-fleet.js.map +1 -1
  134. package/dist/domain/registry/list-scopes.d.ts +24 -0
  135. package/dist/domain/registry/list-scopes.js +22 -0
  136. package/dist/domain/registry/list-scopes.js.map +1 -0
  137. package/dist/domain/registry/managed-or-assigned.d.ts +25 -0
  138. package/dist/domain/registry/managed-or-assigned.js +23 -0
  139. package/dist/domain/registry/managed-or-assigned.js.map +1 -0
  140. package/dist/domain/registry/named-namespaces.d.ts +19 -0
  141. package/dist/domain/registry/named-namespaces.js +19 -0
  142. package/dist/domain/registry/named-namespaces.js.map +1 -0
  143. package/dist/domain/registry/network-settings.d.ts +84 -24
  144. package/dist/domain/registry/network-settings.js +134 -45
  145. package/dist/domain/registry/network-settings.js.map +1 -1
  146. package/dist/domain/registry/ports.d.ts +63 -1
  147. package/dist/domain/registry/public.d.ts +3 -2
  148. package/dist/domain/registry/public.js +3 -2
  149. package/dist/domain/registry/public.js.map +1 -1
  150. package/dist/domain/registry/reach-refusal.d.ts +12 -4
  151. package/dist/domain/registry/read-assigned-crew-requests.d.ts +12 -3
  152. package/dist/domain/registry/read-assigned-crew-requests.js +8 -8
  153. package/dist/domain/registry/read-assigned-crew-requests.js.map +1 -1
  154. package/dist/domain/registry/read-built-in-rules.d.ts +20 -0
  155. package/dist/domain/registry/read-built-in-rules.js +23 -0
  156. package/dist/domain/registry/read-built-in-rules.js.map +1 -0
  157. package/dist/domain/registry/read-clear-requests.d.ts +5 -3
  158. package/dist/domain/registry/read-clear-requests.js +7 -5
  159. package/dist/domain/registry/read-clear-requests.js.map +1 -1
  160. package/dist/domain/registry/read-on-behalf.d.ts +20 -0
  161. package/dist/domain/registry/read-on-behalf.js +31 -0
  162. package/dist/domain/registry/read-on-behalf.js.map +1 -0
  163. package/dist/domain/registry/read-reach.d.ts +62 -0
  164. package/dist/domain/registry/read-reach.js +78 -0
  165. package/dist/domain/registry/read-reach.js.map +1 -0
  166. package/dist/domain/registry/recrew-ship.d.ts +3 -2
  167. package/dist/domain/registry/recrew-ship.js +6 -1
  168. package/dist/domain/registry/recrew-ship.js.map +1 -1
  169. package/dist/domain/registry/release-ship.d.ts +6 -3
  170. package/dist/domain/registry/release-ship.js +7 -7
  171. package/dist/domain/registry/release-ship.js.map +1 -1
  172. package/dist/domain/registry/remove-crew-request.d.ts +4 -3
  173. package/dist/domain/registry/remove-crew-request.js +6 -1
  174. package/dist/domain/registry/remove-crew-request.js.map +1 -1
  175. package/dist/domain/registry/rename-ship.d.ts +7 -5
  176. package/dist/domain/registry/rename-ship.js +9 -3
  177. package/dist/domain/registry/rename-ship.js.map +1 -1
  178. package/dist/domain/registry/request-crew.d.ts +5 -4
  179. package/dist/domain/registry/request-crew.js +6 -1
  180. package/dist/domain/registry/request-crew.js.map +1 -1
  181. package/dist/domain/registry/request-worktree-clear.d.ts +3 -2
  182. package/dist/domain/registry/request-worktree-clear.js +6 -1
  183. package/dist/domain/registry/request-worktree-clear.js.map +1 -1
  184. package/dist/domain/registry/retire-ship.d.ts +16 -7
  185. package/dist/domain/registry/retire-ship.js +46 -5
  186. package/dist/domain/registry/retire-ship.js.map +1 -1
  187. package/dist/domain/registry/scope-grant.d.ts +53 -0
  188. package/dist/domain/registry/scope-grant.js +74 -0
  189. package/dist/domain/registry/scope-grant.js.map +1 -0
  190. package/dist/domain/registry/scope-namespace.d.ts +68 -0
  191. package/dist/domain/registry/scope-namespace.js +82 -0
  192. package/dist/domain/registry/scope-namespace.js.map +1 -0
  193. package/dist/domain/registry/set-built-in-rule.d.ts +28 -0
  194. package/dist/domain/registry/set-built-in-rule.js +33 -0
  195. package/dist/domain/registry/set-built-in-rule.js.map +1 -0
  196. package/dist/domain/registry/set-network-rules.d.ts +3 -3
  197. package/dist/domain/registry/set-network-rules.js +2 -2
  198. package/dist/domain/registry/set-owner.d.ts +30 -0
  199. package/dist/domain/registry/set-owner.js +37 -0
  200. package/dist/domain/registry/set-owner.js.map +1 -0
  201. package/dist/domain/registry/set-statement.d.ts +27 -0
  202. package/dist/domain/registry/set-statement.js +28 -0
  203. package/dist/domain/registry/set-statement.js.map +1 -0
  204. package/dist/domain/registry/ship.d.ts +70 -10
  205. package/dist/domain/registry/ship.js +95 -10
  206. package/dist/domain/registry/ship.js.map +1 -1
  207. package/dist/domain/registry/statement.d.ts +32 -0
  208. package/dist/domain/registry/statement.js +39 -0
  209. package/dist/domain/registry/statement.js.map +1 -0
  210. package/dist/domain/registry/unassign-label.js +1 -1
  211. package/dist/domain/registry/unassign-label.js.map +1 -1
  212. package/dist/domain/registry/whoami.d.ts +5 -1
  213. package/dist/domain/registry/whoami.js +7 -4
  214. package/dist/domain/registry/whoami.js.map +1 -1
  215. package/dist/domain/shared/caller.d.ts +5 -2
  216. package/dist/domain/shared/caller.js.map +1 -1
  217. package/dist/domain/shared/errors.d.ts +1 -1
  218. package/dist/domain/shared/errors.js.map +1 -1
  219. package/dist/domain/shared/events-read.d.ts +16 -0
  220. package/dist/domain/shared/events-read.js +15 -0
  221. package/dist/domain/shared/events-read.js.map +1 -0
  222. package/dist/domain/shared/follow-fleet.d.ts +8 -2
  223. package/dist/domain/shared/follow-fleet.js +14 -4
  224. package/dist/domain/shared/follow-fleet.js.map +1 -1
  225. package/dist/domain/shared/health.d.ts +9 -2
  226. package/dist/domain/shared/health.js +9 -3
  227. package/dist/domain/shared/health.js.map +1 -1
  228. package/dist/domain/shared/history.d.ts +9 -42
  229. package/dist/domain/shared/history.js +9 -0
  230. package/dist/domain/shared/history.js.map +1 -1
  231. package/dist/domain/shared/read-fleet-events.d.ts +8 -2
  232. package/dist/domain/shared/read-fleet-events.js +10 -4
  233. package/dist/domain/shared/read-fleet-events.js.map +1 -1
  234. package/dist/domain/shared/read-health.d.ts +4 -1
  235. package/dist/domain/shared/read-health.js +7 -2
  236. package/dist/domain/shared/read-health.js.map +1 -1
  237. package/dist/domain/shared/read-inbox.d.ts +6 -3
  238. package/dist/domain/shared/read-inbox.js +14 -4
  239. package/dist/domain/shared/read-inbox.js.map +1 -1
  240. package/dist/domain/shared/read-message.d.ts +6 -2
  241. package/dist/domain/shared/read-message.js +6 -2
  242. package/dist/domain/shared/read-message.js.map +1 -1
  243. package/dist/domain/shared/read-needs-attention.d.ts +4 -1
  244. package/dist/domain/shared/read-needs-attention.js +8 -3
  245. package/dist/domain/shared/read-needs-attention.js.map +1 -1
  246. package/dist/domain/shared/read-ship-messages.d.ts +6 -2
  247. package/dist/domain/shared/read-ship-messages.js +7 -2
  248. package/dist/domain/shared/read-ship-messages.js.map +1 -1
  249. package/dist/domain/shared/read-ship-timeline.d.ts +5 -2
  250. package/dist/domain/shared/read-ship-timeline.js +11 -6
  251. package/dist/domain/shared/read-ship-timeline.js.map +1 -1
  252. package/dist/domain/shared/read-ship-way.d.ts +11 -4
  253. package/dist/domain/shared/read-ship-way.js +9 -2
  254. package/dist/domain/shared/read-ship-way.js.map +1 -1
  255. package/dist/domain/shared/stuck.d.ts +10 -1
  256. package/dist/domain/shared/stuck.js +1 -1
  257. package/dist/domain/shared/stuck.js.map +1 -1
  258. package/dist/wiring.d.ts +18 -4
  259. package/dist/wiring.js +37 -18
  260. package/dist/wiring.js.map +1 -1
  261. package/package.json +2 -2
  262. package/src/adapters/prisma/migrations/20261018100000_force_scope/migration.sql +8 -0
  263. package/src/adapters/prisma/migrations/20261018110000_forced_delivery/migration.sql +4 -0
  264. package/src/adapters/prisma/migrations/20261018120000_person_and_app_ships/migration.sql +3 -0
  265. package/src/adapters/prisma/migrations/20261018130000_owners/migration.sql +14 -0
  266. package/src/adapters/prisma/migrations/20261018140000_owners_on_reach_refusals/migration.sql +14 -0
  267. package/src/adapters/prisma/migrations/20261018150000_network_verbs/migration.sql +9 -0
  268. package/src/adapters/prisma/migrations/20261018160000_built_in_rules/migration.sql +13 -0
  269. package/src/adapters/prisma/migrations/20261018170000_network_rules_a_list/migration.sql +5 -0
  270. package/src/adapters/prisma/migrations/20261018180000_verb_on_reach_refusals/migration.sql +4 -0
  271. package/src/adapters/prisma/migrations/20261018200000_lease_statements/migration.sql +3 -0
  272. package/src/adapters/prisma/migrations/20261018210000_declare_and_grant_scopes/migration.sql +8 -0
  273. package/src/adapters/prisma/migrations/20261018220000_plugin_scopes/migration.sql +14 -0
  274. package/src/adapters/prisma/migrations/20261018230000_scope_namespaces/migration.sql +20 -0
  275. package/src/adapters/prisma/migrations/20261018240000_trierarch_plugin_crew_run/migration.sql +44 -0
  276. package/src/adapters/prisma/migrations/20261018250000_scope_catalogue/migration.sql +66 -0
  277. package/src/adapters/prisma/migrations/20261019090000_reach_refusal_asked_by/migration.sql +2 -0
  278. package/src/adapters/prisma/migrations/20261019100000_on_behalf_scope/migration.sql +59 -0
  279. package/src/adapters/prisma/migrations/20261019110000_events_fleet_id_occurred_at/migration.sql +2 -0
  280. package/src/adapters/prisma/schema.prisma +47 -2
  281. package/dist/domain/shared/read-no-ship-can-take.d.ts +0 -13
  282. package/dist/domain/shared/read-no-ship-can-take.js +0 -12
  283. package/dist/domain/shared/read-no-ship-can-take.js.map +0 -1
  284. package/dist/domain/shared/read-overdue.d.ts +0 -13
  285. package/dist/domain/shared/read-overdue.js +0 -12
  286. package/dist/domain/shared/read-overdue.js.map +0 -1
@@ -24,6 +24,7 @@ export type ShipMinAggregateOutputType = {
24
24
  commissionedBy: string | null;
25
25
  commissionKey: string | null;
26
26
  commissionRequestHash: string | null;
27
+ ownerShipId: string | null;
27
28
  };
28
29
  export type ShipMaxAggregateOutputType = {
29
30
  id: string | null;
@@ -37,6 +38,7 @@ export type ShipMaxAggregateOutputType = {
37
38
  commissionedBy: string | null;
38
39
  commissionKey: string | null;
39
40
  commissionRequestHash: string | null;
41
+ ownerShipId: string | null;
40
42
  };
41
43
  export type ShipCountAggregateOutputType = {
42
44
  id: number;
@@ -51,6 +53,7 @@ export type ShipCountAggregateOutputType = {
51
53
  commissionedBy: number;
52
54
  commissionKey: number;
53
55
  commissionRequestHash: number;
56
+ ownerShipId: number;
54
57
  _all: number;
55
58
  };
56
59
  export type ShipMinAggregateInputType = {
@@ -65,6 +68,7 @@ export type ShipMinAggregateInputType = {
65
68
  commissionedBy?: true;
66
69
  commissionKey?: true;
67
70
  commissionRequestHash?: true;
71
+ ownerShipId?: true;
68
72
  };
69
73
  export type ShipMaxAggregateInputType = {
70
74
  id?: true;
@@ -78,6 +82,7 @@ export type ShipMaxAggregateInputType = {
78
82
  commissionedBy?: true;
79
83
  commissionKey?: true;
80
84
  commissionRequestHash?: true;
85
+ ownerShipId?: true;
81
86
  };
82
87
  export type ShipCountAggregateInputType = {
83
88
  id?: true;
@@ -92,6 +97,7 @@ export type ShipCountAggregateInputType = {
92
97
  commissionedBy?: true;
93
98
  commissionKey?: true;
94
99
  commissionRequestHash?: true;
100
+ ownerShipId?: true;
95
101
  _all?: true;
96
102
  };
97
103
  export type ShipAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -169,6 +175,7 @@ export type ShipGroupByOutputType = {
169
175
  commissionedBy: string | null;
170
176
  commissionKey: string | null;
171
177
  commissionRequestHash: string | null;
178
+ ownerShipId: string | null;
172
179
  _count: ShipCountAggregateOutputType | null;
173
180
  _min: ShipMinAggregateOutputType | null;
174
181
  _max: ShipMaxAggregateOutputType | null;
@@ -192,7 +199,10 @@ export type ShipWhereInput = {
192
199
  commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
193
200
  commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
194
201
  commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
202
+ ownerShipId?: Prisma.StringNullableFilter<"Ship"> | string | null;
195
203
  fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
204
+ owner?: Prisma.XOR<Prisma.ShipNullableScalarRelationFilter, Prisma.ShipWhereInput> | null;
205
+ ownedShips?: Prisma.ShipListRelationFilter;
196
206
  leases?: Prisma.LeaseListRelationFilter;
197
207
  credentials?: Prisma.CredentialListRelationFilter;
198
208
  sentMessages?: Prisma.MessageListRelationFilter;
@@ -212,6 +222,7 @@ export type ShipWhereInput = {
212
222
  ownedLabels?: Prisma.LabelListRelationFilter;
213
223
  labels?: Prisma.ShipLabelListRelationFilter;
214
224
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesListRelationFilter;
225
+ declaredNamespace?: Prisma.XOR<Prisma.ScopeNamespaceNullableScalarRelationFilter, Prisma.ScopeNamespaceWhereInput> | null;
215
226
  };
216
227
  export type ShipOrderByWithRelationInput = {
217
228
  id?: Prisma.SortOrder;
@@ -226,7 +237,10 @@ export type ShipOrderByWithRelationInput = {
226
237
  commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
227
238
  commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
228
239
  commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
240
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
229
241
  fleet?: Prisma.FleetOrderByWithRelationInput;
242
+ owner?: Prisma.ShipOrderByWithRelationInput;
243
+ ownedShips?: Prisma.ShipOrderByRelationAggregateInput;
230
244
  leases?: Prisma.LeaseOrderByRelationAggregateInput;
231
245
  credentials?: Prisma.CredentialOrderByRelationAggregateInput;
232
246
  sentMessages?: Prisma.MessageOrderByRelationAggregateInput;
@@ -246,6 +260,7 @@ export type ShipOrderByWithRelationInput = {
246
260
  ownedLabels?: Prisma.LabelOrderByRelationAggregateInput;
247
261
  labels?: Prisma.ShipLabelOrderByRelationAggregateInput;
248
262
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesOrderByRelationAggregateInput;
263
+ declaredNamespace?: Prisma.ScopeNamespaceOrderByWithRelationInput;
249
264
  };
250
265
  export type ShipWhereUniqueInput = Prisma.AtLeast<{
251
266
  id?: string;
@@ -266,7 +281,10 @@ export type ShipWhereUniqueInput = Prisma.AtLeast<{
266
281
  commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
267
282
  commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
268
283
  commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
284
+ ownerShipId?: Prisma.StringNullableFilter<"Ship"> | string | null;
269
285
  fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
286
+ owner?: Prisma.XOR<Prisma.ShipNullableScalarRelationFilter, Prisma.ShipWhereInput> | null;
287
+ ownedShips?: Prisma.ShipListRelationFilter;
270
288
  leases?: Prisma.LeaseListRelationFilter;
271
289
  credentials?: Prisma.CredentialListRelationFilter;
272
290
  sentMessages?: Prisma.MessageListRelationFilter;
@@ -286,6 +304,7 @@ export type ShipWhereUniqueInput = Prisma.AtLeast<{
286
304
  ownedLabels?: Prisma.LabelListRelationFilter;
287
305
  labels?: Prisma.ShipLabelListRelationFilter;
288
306
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesListRelationFilter;
307
+ declaredNamespace?: Prisma.XOR<Prisma.ScopeNamespaceNullableScalarRelationFilter, Prisma.ScopeNamespaceWhereInput> | null;
289
308
  }, "id" | "fleetId_id" | "fleetId_commissionedBy_commissionKey" | "fleetId_name" | "fleetId" | "fleetId">;
290
309
  export type ShipOrderByWithAggregationInput = {
291
310
  id?: Prisma.SortOrder;
@@ -300,6 +319,7 @@ export type ShipOrderByWithAggregationInput = {
300
319
  commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
301
320
  commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
302
321
  commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
322
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
303
323
  _count?: Prisma.ShipCountOrderByAggregateInput;
304
324
  _max?: Prisma.ShipMaxOrderByAggregateInput;
305
325
  _min?: Prisma.ShipMinOrderByAggregateInput;
@@ -320,6 +340,7 @@ export type ShipScalarWhereWithAggregatesInput = {
320
340
  commissionedBy?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
321
341
  commissionKey?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
322
342
  commissionRequestHash?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
343
+ ownerShipId?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
323
344
  };
324
345
  export type ShipCreateInput = {
325
346
  id: string;
@@ -334,6 +355,8 @@ export type ShipCreateInput = {
334
355
  commissionKey?: string | null;
335
356
  commissionRequestHash?: string | null;
336
357
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
358
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
359
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
337
360
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
338
361
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
339
362
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -353,6 +376,7 @@ export type ShipCreateInput = {
353
376
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
354
377
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
355
378
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
379
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
356
380
  };
357
381
  export type ShipUncheckedCreateInput = {
358
382
  id: string;
@@ -367,6 +391,8 @@ export type ShipUncheckedCreateInput = {
367
391
  commissionedBy?: string | null;
368
392
  commissionKey?: string | null;
369
393
  commissionRequestHash?: string | null;
394
+ ownerShipId?: string | null;
395
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
370
396
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
371
397
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
372
398
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -386,6 +412,7 @@ export type ShipUncheckedCreateInput = {
386
412
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
387
413
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
388
414
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
415
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
389
416
  };
390
417
  export type ShipUpdateInput = {
391
418
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -400,6 +427,8 @@ export type ShipUpdateInput = {
400
427
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
401
428
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
402
429
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
430
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
431
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
403
432
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
404
433
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
405
434
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -419,6 +448,7 @@ export type ShipUpdateInput = {
419
448
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
420
449
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
421
450
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
451
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
422
452
  };
423
453
  export type ShipUncheckedUpdateInput = {
424
454
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -433,6 +463,8 @@ export type ShipUncheckedUpdateInput = {
433
463
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
464
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
465
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
466
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
467
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
436
468
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
437
469
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
438
470
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -452,6 +484,7 @@ export type ShipUncheckedUpdateInput = {
452
484
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
453
485
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
454
486
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
487
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
455
488
  };
456
489
  export type ShipCreateManyInput = {
457
490
  id: string;
@@ -466,6 +499,7 @@ export type ShipCreateManyInput = {
466
499
  commissionedBy?: string | null;
467
500
  commissionKey?: string | null;
468
501
  commissionRequestHash?: string | null;
502
+ ownerShipId?: string | null;
469
503
  };
470
504
  export type ShipUpdateManyMutationInput = {
471
505
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -493,6 +527,7 @@ export type ShipUncheckedUpdateManyInput = {
493
527
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
528
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
495
529
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
531
  };
497
532
  export type ShipListRelationFilter = {
498
533
  every?: Prisma.ShipWhereInput;
@@ -509,6 +544,10 @@ export type StringNullableListFilter<$PrismaModel = never> = {
509
544
  hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
510
545
  isEmpty?: boolean;
511
546
  };
547
+ export type ShipNullableScalarRelationFilter = {
548
+ is?: Prisma.ShipWhereInput | null;
549
+ isNot?: Prisma.ShipWhereInput | null;
550
+ };
512
551
  export type ShipFleetIdIdCompoundUniqueInput = {
513
552
  fleetId: string;
514
553
  id: string;
@@ -535,6 +574,7 @@ export type ShipCountOrderByAggregateInput = {
535
574
  commissionedBy?: Prisma.SortOrder;
536
575
  commissionKey?: Prisma.SortOrder;
537
576
  commissionRequestHash?: Prisma.SortOrder;
577
+ ownerShipId?: Prisma.SortOrder;
538
578
  };
539
579
  export type ShipMaxOrderByAggregateInput = {
540
580
  id?: Prisma.SortOrder;
@@ -548,6 +588,7 @@ export type ShipMaxOrderByAggregateInput = {
548
588
  commissionedBy?: Prisma.SortOrder;
549
589
  commissionKey?: Prisma.SortOrder;
550
590
  commissionRequestHash?: Prisma.SortOrder;
591
+ ownerShipId?: Prisma.SortOrder;
551
592
  };
552
593
  export type ShipMinOrderByAggregateInput = {
553
594
  id?: Prisma.SortOrder;
@@ -561,15 +602,12 @@ export type ShipMinOrderByAggregateInput = {
561
602
  commissionedBy?: Prisma.SortOrder;
562
603
  commissionKey?: Prisma.SortOrder;
563
604
  commissionRequestHash?: Prisma.SortOrder;
605
+ ownerShipId?: Prisma.SortOrder;
564
606
  };
565
607
  export type ShipScalarRelationFilter = {
566
608
  is?: Prisma.ShipWhereInput;
567
609
  isNot?: Prisma.ShipWhereInput;
568
610
  };
569
- export type ShipNullableScalarRelationFilter = {
570
- is?: Prisma.ShipWhereInput | null;
571
- isNot?: Prisma.ShipWhereInput | null;
572
- };
573
611
  export type ShipCreateNestedManyWithoutFleetInput = {
574
612
  create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
575
613
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
@@ -611,6 +649,23 @@ export type ShipUncheckedUpdateManyWithoutFleetNestedInput = {
611
649
  export type ShipCreatescopesInput = {
612
650
  set: string[];
613
651
  };
652
+ export type ShipCreateNestedOneWithoutOwnedShipsInput = {
653
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
654
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnedShipsInput;
655
+ connect?: Prisma.ShipWhereUniqueInput;
656
+ };
657
+ export type ShipCreateNestedManyWithoutOwnerInput = {
658
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
659
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
660
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
661
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
662
+ };
663
+ export type ShipUncheckedCreateNestedManyWithoutOwnerInput = {
664
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
665
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
666
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
667
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
668
+ };
614
669
  export type EnumShipKindFieldUpdateOperationsInput = {
615
670
  set?: $Enums.ShipKind;
616
671
  };
@@ -624,6 +679,41 @@ export type NullableStringFieldUpdateOperationsInput = {
624
679
  export type NullableDateTimeFieldUpdateOperationsInput = {
625
680
  set?: Date | string | null;
626
681
  };
682
+ export type ShipUpdateOneWithoutOwnedShipsNestedInput = {
683
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
684
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnedShipsInput;
685
+ upsert?: Prisma.ShipUpsertWithoutOwnedShipsInput;
686
+ disconnect?: Prisma.ShipWhereInput | boolean;
687
+ delete?: Prisma.ShipWhereInput | boolean;
688
+ connect?: Prisma.ShipWhereUniqueInput;
689
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutOwnedShipsInput, Prisma.ShipUpdateWithoutOwnedShipsInput>, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
690
+ };
691
+ export type ShipUpdateManyWithoutOwnerNestedInput = {
692
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
693
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
694
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput[];
695
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
696
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
697
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
698
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
699
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
700
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput[];
701
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutOwnerInput | Prisma.ShipUpdateManyWithWhereWithoutOwnerInput[];
702
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
703
+ };
704
+ export type ShipUncheckedUpdateManyWithoutOwnerNestedInput = {
705
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
706
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
707
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput[];
708
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
709
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
710
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
711
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
712
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
713
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput[];
714
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutOwnerInput | Prisma.ShipUpdateManyWithWhereWithoutOwnerInput[];
715
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
716
+ };
627
717
  export type ShipCreateNestedOneWithoutLeasesInput = {
628
718
  create?: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
629
719
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutLeasesInput;
@@ -746,6 +836,18 @@ export type ShipUpdateOneRequiredWithoutDeclaredNetworkRulesNestedInput = {
746
836
  connect?: Prisma.ShipWhereUniqueInput;
747
837
  update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput, Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput>, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
748
838
  };
839
+ export type ShipCreateNestedOneWithoutDeclaredNamespaceInput = {
840
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
841
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeclaredNamespaceInput;
842
+ connect?: Prisma.ShipWhereUniqueInput;
843
+ };
844
+ export type ShipUpdateOneRequiredWithoutDeclaredNamespaceNestedInput = {
845
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
846
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeclaredNamespaceInput;
847
+ upsert?: Prisma.ShipUpsertWithoutDeclaredNamespaceInput;
848
+ connect?: Prisma.ShipWhereUniqueInput;
849
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutDeclaredNamespaceInput, Prisma.ShipUpdateWithoutDeclaredNamespaceInput>, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
850
+ };
749
851
  export type ShipCreateNestedOneWithoutCredentialsInput = {
750
852
  create?: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
751
853
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCredentialsInput;
@@ -876,6 +978,8 @@ export type ShipCreateWithoutFleetInput = {
876
978
  commissionedBy?: string | null;
877
979
  commissionKey?: string | null;
878
980
  commissionRequestHash?: string | null;
981
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
982
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
879
983
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
880
984
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
881
985
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -895,6 +999,7 @@ export type ShipCreateWithoutFleetInput = {
895
999
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
896
1000
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
897
1001
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1002
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
898
1003
  };
899
1004
  export type ShipUncheckedCreateWithoutFleetInput = {
900
1005
  id: string;
@@ -908,6 +1013,8 @@ export type ShipUncheckedCreateWithoutFleetInput = {
908
1013
  commissionedBy?: string | null;
909
1014
  commissionKey?: string | null;
910
1015
  commissionRequestHash?: string | null;
1016
+ ownerShipId?: string | null;
1017
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
911
1018
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
912
1019
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
913
1020
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -927,6 +1034,7 @@ export type ShipUncheckedCreateWithoutFleetInput = {
927
1034
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
928
1035
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
929
1036
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1037
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
930
1038
  };
931
1039
  export type ShipCreateOrConnectWithoutFleetInput = {
932
1040
  where: Prisma.ShipWhereUniqueInput;
@@ -965,6 +1073,250 @@ export type ShipScalarWhereInput = {
965
1073
  commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
966
1074
  commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
967
1075
  commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
1076
+ ownerShipId?: Prisma.StringNullableFilter<"Ship"> | string | null;
1077
+ };
1078
+ export type ShipCreateWithoutOwnedShipsInput = {
1079
+ id: string;
1080
+ name: string;
1081
+ type: string;
1082
+ kind: $Enums.ShipKind;
1083
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1084
+ note?: string | null;
1085
+ createdAt: Date | string;
1086
+ retiredAt?: Date | string | null;
1087
+ commissionedBy?: string | null;
1088
+ commissionKey?: string | null;
1089
+ commissionRequestHash?: string | null;
1090
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1091
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1092
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1093
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1094
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1095
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1096
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1097
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1098
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
1099
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1100
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1101
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1102
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1103
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1104
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
1105
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1106
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1107
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
1108
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1109
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1110
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1111
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1112
+ };
1113
+ export type ShipUncheckedCreateWithoutOwnedShipsInput = {
1114
+ id: string;
1115
+ fleetId: string;
1116
+ name: string;
1117
+ type: string;
1118
+ kind: $Enums.ShipKind;
1119
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1120
+ note?: string | null;
1121
+ createdAt: Date | string;
1122
+ retiredAt?: Date | string | null;
1123
+ commissionedBy?: string | null;
1124
+ commissionKey?: string | null;
1125
+ commissionRequestHash?: string | null;
1126
+ ownerShipId?: string | null;
1127
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1128
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1129
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1130
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1131
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1132
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1133
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
1134
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1135
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1136
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1137
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1138
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1139
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
1140
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
1141
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
1142
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
1143
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1144
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1145
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1146
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1147
+ };
1148
+ export type ShipCreateOrConnectWithoutOwnedShipsInput = {
1149
+ where: Prisma.ShipWhereUniqueInput;
1150
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
1151
+ };
1152
+ export type ShipCreateWithoutOwnerInput = {
1153
+ id: string;
1154
+ name: string;
1155
+ type: string;
1156
+ kind: $Enums.ShipKind;
1157
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1158
+ note?: string | null;
1159
+ createdAt: Date | string;
1160
+ retiredAt?: Date | string | null;
1161
+ commissionedBy?: string | null;
1162
+ commissionKey?: string | null;
1163
+ commissionRequestHash?: string | null;
1164
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1165
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1166
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1167
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1168
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1169
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1170
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1171
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1172
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
1173
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1174
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1175
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1176
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1177
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1178
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
1179
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1180
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1181
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
1182
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1183
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1184
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1185
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1186
+ };
1187
+ export type ShipUncheckedCreateWithoutOwnerInput = {
1188
+ id: string;
1189
+ name: string;
1190
+ type: string;
1191
+ kind: $Enums.ShipKind;
1192
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1193
+ note?: string | null;
1194
+ createdAt: Date | string;
1195
+ retiredAt?: Date | string | null;
1196
+ commissionedBy?: string | null;
1197
+ commissionKey?: string | null;
1198
+ commissionRequestHash?: string | null;
1199
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1200
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1201
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1202
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1203
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1204
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1205
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1206
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
1207
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1208
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1209
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1210
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1211
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1212
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
1213
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
1214
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
1215
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
1216
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1217
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1218
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1219
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1220
+ };
1221
+ export type ShipCreateOrConnectWithoutOwnerInput = {
1222
+ where: Prisma.ShipWhereUniqueInput;
1223
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput>;
1224
+ };
1225
+ export type ShipCreateManyOwnerInputEnvelope = {
1226
+ data: Prisma.ShipCreateManyOwnerInput | Prisma.ShipCreateManyOwnerInput[];
1227
+ skipDuplicates?: boolean;
1228
+ };
1229
+ export type ShipUpsertWithoutOwnedShipsInput = {
1230
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedShipsInput, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
1231
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
1232
+ where?: Prisma.ShipWhereInput;
1233
+ };
1234
+ export type ShipUpdateToOneWithWhereWithoutOwnedShipsInput = {
1235
+ where?: Prisma.ShipWhereInput;
1236
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedShipsInput, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
1237
+ };
1238
+ export type ShipUpdateWithoutOwnedShipsInput = {
1239
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1240
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1241
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1242
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1243
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1244
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1245
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1246
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1247
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1248
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1249
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1250
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1251
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1252
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1253
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1254
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1255
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1256
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1257
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1258
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
1259
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1260
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1261
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1262
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1263
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1264
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
1265
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
1266
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
1267
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
1268
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1269
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1270
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1271
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1272
+ };
1273
+ export type ShipUncheckedUpdateWithoutOwnedShipsInput = {
1274
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1275
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1276
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1277
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1278
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1279
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1280
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1281
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1282
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1283
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1284
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1285
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1286
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1287
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1288
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1289
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1290
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1291
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1292
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1293
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
1294
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1295
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1296
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1297
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1298
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1299
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
1300
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
1301
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
1302
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
1303
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1304
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1305
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1306
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1307
+ };
1308
+ export type ShipUpsertWithWhereUniqueWithoutOwnerInput = {
1309
+ where: Prisma.ShipWhereUniqueInput;
1310
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnerInput, Prisma.ShipUncheckedUpdateWithoutOwnerInput>;
1311
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput>;
1312
+ };
1313
+ export type ShipUpdateWithWhereUniqueWithoutOwnerInput = {
1314
+ where: Prisma.ShipWhereUniqueInput;
1315
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnerInput, Prisma.ShipUncheckedUpdateWithoutOwnerInput>;
1316
+ };
1317
+ export type ShipUpdateManyWithWhereWithoutOwnerInput = {
1318
+ where: Prisma.ShipScalarWhereInput;
1319
+ data: Prisma.XOR<Prisma.ShipUpdateManyMutationInput, Prisma.ShipUncheckedUpdateManyWithoutOwnerInput>;
968
1320
  };
969
1321
  export type ShipCreateWithoutLeasesInput = {
970
1322
  id: string;
@@ -979,6 +1331,8 @@ export type ShipCreateWithoutLeasesInput = {
979
1331
  commissionKey?: string | null;
980
1332
  commissionRequestHash?: string | null;
981
1333
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1334
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1335
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
982
1336
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
983
1337
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
984
1338
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -997,6 +1351,7 @@ export type ShipCreateWithoutLeasesInput = {
997
1351
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
998
1352
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
999
1353
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1354
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1000
1355
  };
1001
1356
  export type ShipUncheckedCreateWithoutLeasesInput = {
1002
1357
  id: string;
@@ -1011,6 +1366,8 @@ export type ShipUncheckedCreateWithoutLeasesInput = {
1011
1366
  commissionedBy?: string | null;
1012
1367
  commissionKey?: string | null;
1013
1368
  commissionRequestHash?: string | null;
1369
+ ownerShipId?: string | null;
1370
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1014
1371
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1015
1372
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1016
1373
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -1029,6 +1386,7 @@ export type ShipUncheckedCreateWithoutLeasesInput = {
1029
1386
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1030
1387
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1031
1388
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1389
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1032
1390
  };
1033
1391
  export type ShipCreateOrConnectWithoutLeasesInput = {
1034
1392
  where: Prisma.ShipWhereUniqueInput;
@@ -1056,6 +1414,8 @@ export type ShipUpdateWithoutLeasesInput = {
1056
1414
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
1415
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
1416
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1417
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1418
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1059
1419
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1060
1420
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1061
1421
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -1074,6 +1434,7 @@ export type ShipUpdateWithoutLeasesInput = {
1074
1434
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1075
1435
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1076
1436
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1437
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1077
1438
  };
1078
1439
  export type ShipUncheckedUpdateWithoutLeasesInput = {
1079
1440
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1088,6 +1449,8 @@ export type ShipUncheckedUpdateWithoutLeasesInput = {
1088
1449
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1089
1450
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1090
1451
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1452
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1453
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1091
1454
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1092
1455
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1093
1456
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -1106,6 +1469,7 @@ export type ShipUncheckedUpdateWithoutLeasesInput = {
1106
1469
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1107
1470
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1108
1471
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1472
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1109
1473
  };
1110
1474
  export type ShipCreateWithoutCrewRequestInput = {
1111
1475
  id: string;
@@ -1120,6 +1484,8 @@ export type ShipCreateWithoutCrewRequestInput = {
1120
1484
  commissionKey?: string | null;
1121
1485
  commissionRequestHash?: string | null;
1122
1486
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1487
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1488
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1123
1489
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1124
1490
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1125
1491
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1138,6 +1504,7 @@ export type ShipCreateWithoutCrewRequestInput = {
1138
1504
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1139
1505
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1140
1506
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1507
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1141
1508
  };
1142
1509
  export type ShipUncheckedCreateWithoutCrewRequestInput = {
1143
1510
  id: string;
@@ -1152,6 +1519,8 @@ export type ShipUncheckedCreateWithoutCrewRequestInput = {
1152
1519
  commissionedBy?: string | null;
1153
1520
  commissionKey?: string | null;
1154
1521
  commissionRequestHash?: string | null;
1522
+ ownerShipId?: string | null;
1523
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1155
1524
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1156
1525
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1157
1526
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1170,6 +1539,7 @@ export type ShipUncheckedCreateWithoutCrewRequestInput = {
1170
1539
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1171
1540
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1172
1541
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1542
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1173
1543
  };
1174
1544
  export type ShipCreateOrConnectWithoutCrewRequestInput = {
1175
1545
  where: Prisma.ShipWhereUniqueInput;
@@ -1188,6 +1558,8 @@ export type ShipCreateWithoutAssignedCrewsInput = {
1188
1558
  commissionKey?: string | null;
1189
1559
  commissionRequestHash?: string | null;
1190
1560
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1561
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1562
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1191
1563
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1192
1564
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1193
1565
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1206,6 +1578,7 @@ export type ShipCreateWithoutAssignedCrewsInput = {
1206
1578
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1207
1579
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1208
1580
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1581
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1209
1582
  };
1210
1583
  export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1211
1584
  id: string;
@@ -1220,6 +1593,8 @@ export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1220
1593
  commissionedBy?: string | null;
1221
1594
  commissionKey?: string | null;
1222
1595
  commissionRequestHash?: string | null;
1596
+ ownerShipId?: string | null;
1597
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1223
1598
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1224
1599
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1225
1600
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1238,6 +1613,7 @@ export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1238
1613
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1239
1614
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1240
1615
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1616
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1241
1617
  };
1242
1618
  export type ShipCreateOrConnectWithoutAssignedCrewsInput = {
1243
1619
  where: Prisma.ShipWhereUniqueInput;
@@ -1265,6 +1641,8 @@ export type ShipUpdateWithoutCrewRequestInput = {
1265
1641
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1266
1642
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1267
1643
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1644
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1645
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1268
1646
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1269
1647
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1270
1648
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1283,6 +1661,7 @@ export type ShipUpdateWithoutCrewRequestInput = {
1283
1661
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1284
1662
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1285
1663
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1664
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1286
1665
  };
1287
1666
  export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1288
1667
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1297,6 +1676,8 @@ export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1297
1676
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1298
1677
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1299
1678
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1679
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1680
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1300
1681
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1301
1682
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1302
1683
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1315,6 +1696,7 @@ export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1315
1696
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1316
1697
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1317
1698
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1699
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1318
1700
  };
1319
1701
  export type ShipUpsertWithoutAssignedCrewsInput = {
1320
1702
  update: Prisma.XOR<Prisma.ShipUpdateWithoutAssignedCrewsInput, Prisma.ShipUncheckedUpdateWithoutAssignedCrewsInput>;
@@ -1338,6 +1720,8 @@ export type ShipUpdateWithoutAssignedCrewsInput = {
1338
1720
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1339
1721
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1340
1722
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1723
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1724
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1341
1725
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1342
1726
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1343
1727
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1356,6 +1740,7 @@ export type ShipUpdateWithoutAssignedCrewsInput = {
1356
1740
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1357
1741
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1358
1742
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1743
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1359
1744
  };
1360
1745
  export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1361
1746
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1370,6 +1755,8 @@ export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1370
1755
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1371
1756
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1372
1757
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1759
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1373
1760
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1374
1761
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1375
1762
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1388,6 +1775,7 @@ export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1388
1775
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1389
1776
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1390
1777
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1778
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1391
1779
  };
1392
1780
  export type ShipCreateWithoutGivenBackCrewsInput = {
1393
1781
  id: string;
@@ -1402,6 +1790,8 @@ export type ShipCreateWithoutGivenBackCrewsInput = {
1402
1790
  commissionKey?: string | null;
1403
1791
  commissionRequestHash?: string | null;
1404
1792
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1793
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1794
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1405
1795
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1406
1796
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1407
1797
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1420,6 +1810,7 @@ export type ShipCreateWithoutGivenBackCrewsInput = {
1420
1810
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1421
1811
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1422
1812
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1813
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1423
1814
  };
1424
1815
  export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1425
1816
  id: string;
@@ -1434,6 +1825,8 @@ export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1434
1825
  commissionedBy?: string | null;
1435
1826
  commissionKey?: string | null;
1436
1827
  commissionRequestHash?: string | null;
1828
+ ownerShipId?: string | null;
1829
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1437
1830
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1438
1831
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1439
1832
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1452,6 +1845,7 @@ export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1452
1845
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1453
1846
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1454
1847
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1848
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1455
1849
  };
1456
1850
  export type ShipCreateOrConnectWithoutGivenBackCrewsInput = {
1457
1851
  where: Prisma.ShipWhereUniqueInput;
@@ -1479,6 +1873,8 @@ export type ShipUpdateWithoutGivenBackCrewsInput = {
1479
1873
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1480
1874
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1481
1875
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1876
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1877
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1482
1878
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1483
1879
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1484
1880
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1497,6 +1893,7 @@ export type ShipUpdateWithoutGivenBackCrewsInput = {
1497
1893
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1498
1894
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1499
1895
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1896
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1500
1897
  };
1501
1898
  export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1502
1899
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1511,6 +1908,8 @@ export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1511
1908
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1512
1909
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1513
1910
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1911
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1912
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1514
1913
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1515
1914
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1516
1915
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1529,6 +1928,7 @@ export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1529
1928
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1530
1929
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1531
1930
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1931
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1532
1932
  };
1533
1933
  export type ShipCreateWithoutClearRequestsInput = {
1534
1934
  id: string;
@@ -1543,6 +1943,8 @@ export type ShipCreateWithoutClearRequestsInput = {
1543
1943
  commissionKey?: string | null;
1544
1944
  commissionRequestHash?: string | null;
1545
1945
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1946
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1947
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1546
1948
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1547
1949
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1548
1950
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1561,6 +1963,7 @@ export type ShipCreateWithoutClearRequestsInput = {
1561
1963
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1562
1964
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1563
1965
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1966
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1564
1967
  };
1565
1968
  export type ShipUncheckedCreateWithoutClearRequestsInput = {
1566
1969
  id: string;
@@ -1575,6 +1978,8 @@ export type ShipUncheckedCreateWithoutClearRequestsInput = {
1575
1978
  commissionedBy?: string | null;
1576
1979
  commissionKey?: string | null;
1577
1980
  commissionRequestHash?: string | null;
1981
+ ownerShipId?: string | null;
1982
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1578
1983
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1579
1984
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1580
1985
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1593,6 +1998,7 @@ export type ShipUncheckedCreateWithoutClearRequestsInput = {
1593
1998
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1594
1999
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1595
2000
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2001
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1596
2002
  };
1597
2003
  export type ShipCreateOrConnectWithoutClearRequestsInput = {
1598
2004
  where: Prisma.ShipWhereUniqueInput;
@@ -1611,6 +2017,8 @@ export type ShipCreateWithoutClearedWorktreesInput = {
1611
2017
  commissionKey?: string | null;
1612
2018
  commissionRequestHash?: string | null;
1613
2019
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2020
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2021
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1614
2022
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1615
2023
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1616
2024
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1629,6 +2037,7 @@ export type ShipCreateWithoutClearedWorktreesInput = {
1629
2037
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1630
2038
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1631
2039
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2040
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1632
2041
  };
1633
2042
  export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1634
2043
  id: string;
@@ -1643,6 +2052,8 @@ export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1643
2052
  commissionedBy?: string | null;
1644
2053
  commissionKey?: string | null;
1645
2054
  commissionRequestHash?: string | null;
2055
+ ownerShipId?: string | null;
2056
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1646
2057
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1647
2058
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1648
2059
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1661,6 +2072,7 @@ export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1661
2072
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1662
2073
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1663
2074
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2075
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1664
2076
  };
1665
2077
  export type ShipCreateOrConnectWithoutClearedWorktreesInput = {
1666
2078
  where: Prisma.ShipWhereUniqueInput;
@@ -1679,6 +2091,8 @@ export type ShipCreateWithoutRequestedClearsInput = {
1679
2091
  commissionKey?: string | null;
1680
2092
  commissionRequestHash?: string | null;
1681
2093
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2094
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2095
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1682
2096
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1683
2097
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1684
2098
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1697,6 +2111,7 @@ export type ShipCreateWithoutRequestedClearsInput = {
1697
2111
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1698
2112
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1699
2113
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2114
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1700
2115
  };
1701
2116
  export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1702
2117
  id: string;
@@ -1711,6 +2126,8 @@ export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1711
2126
  commissionedBy?: string | null;
1712
2127
  commissionKey?: string | null;
1713
2128
  commissionRequestHash?: string | null;
2129
+ ownerShipId?: string | null;
2130
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1714
2131
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1715
2132
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1716
2133
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1729,6 +2146,7 @@ export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1729
2146
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1730
2147
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1731
2148
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2149
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1732
2150
  };
1733
2151
  export type ShipCreateOrConnectWithoutRequestedClearsInput = {
1734
2152
  where: Prisma.ShipWhereUniqueInput;
@@ -1756,6 +2174,8 @@ export type ShipUpdateWithoutClearRequestsInput = {
1756
2174
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
2175
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
2176
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2177
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2178
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1759
2179
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1760
2180
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1761
2181
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1774,6 +2194,7 @@ export type ShipUpdateWithoutClearRequestsInput = {
1774
2194
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1775
2195
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1776
2196
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2197
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1777
2198
  };
1778
2199
  export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1779
2200
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1788,6 +2209,8 @@ export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1788
2209
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1789
2210
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1790
2211
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2212
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2213
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1791
2214
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1792
2215
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1793
2216
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1806,6 +2229,7 @@ export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1806
2229
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1807
2230
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1808
2231
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2232
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1809
2233
  };
1810
2234
  export type ShipUpsertWithoutClearedWorktreesInput = {
1811
2235
  update: Prisma.XOR<Prisma.ShipUpdateWithoutClearedWorktreesInput, Prisma.ShipUncheckedUpdateWithoutClearedWorktreesInput>;
@@ -1829,6 +2253,8 @@ export type ShipUpdateWithoutClearedWorktreesInput = {
1829
2253
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1830
2254
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1831
2255
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2256
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2257
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1832
2258
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1833
2259
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1834
2260
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1847,6 +2273,7 @@ export type ShipUpdateWithoutClearedWorktreesInput = {
1847
2273
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1848
2274
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1849
2275
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2276
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1850
2277
  };
1851
2278
  export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1852
2279
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1861,6 +2288,8 @@ export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1861
2288
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1862
2289
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1863
2290
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2291
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2292
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1864
2293
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1865
2294
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1866
2295
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1879,17 +2308,171 @@ export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1879
2308
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1880
2309
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1881
2310
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2311
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2312
+ };
2313
+ export type ShipUpsertWithoutRequestedClearsInput = {
2314
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2315
+ create: Prisma.XOR<Prisma.ShipCreateWithoutRequestedClearsInput, Prisma.ShipUncheckedCreateWithoutRequestedClearsInput>;
2316
+ where?: Prisma.ShipWhereInput;
2317
+ };
2318
+ export type ShipUpdateToOneWithWhereWithoutRequestedClearsInput = {
2319
+ where?: Prisma.ShipWhereInput;
2320
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2321
+ };
2322
+ export type ShipUpdateWithoutRequestedClearsInput = {
2323
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2324
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2325
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2326
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2327
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2328
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2330
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2331
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2332
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2333
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2334
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2335
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2336
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2337
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2338
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2339
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2340
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
2341
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
2342
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
2343
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
2344
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
2345
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
2346
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
2347
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
2348
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
2349
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
2350
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
2351
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2352
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2353
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2354
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2355
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2356
+ };
2357
+ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
2358
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2359
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2360
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2361
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2362
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2363
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2364
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2365
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2366
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2367
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2368
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2369
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2370
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2371
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2372
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2373
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2374
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2375
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
2376
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
2377
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
2378
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
2379
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
2380
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
2381
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
2382
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
2383
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
2384
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
2385
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
2386
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2387
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2388
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2389
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2390
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2391
+ };
2392
+ export type ShipCreateWithoutOwnedLabelsInput = {
2393
+ id: string;
2394
+ name: string;
2395
+ type: string;
2396
+ kind: $Enums.ShipKind;
2397
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2398
+ note?: string | null;
2399
+ createdAt: Date | string;
2400
+ retiredAt?: Date | string | null;
2401
+ commissionedBy?: string | null;
2402
+ commissionKey?: string | null;
2403
+ commissionRequestHash?: string | null;
2404
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2405
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2406
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2407
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2408
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2409
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
2410
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
2411
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
2412
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
2413
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
2414
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
2415
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
2416
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
2417
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
2418
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
2419
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
2420
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
2421
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
2422
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2423
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2424
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2425
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2426
+ };
2427
+ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2428
+ id: string;
2429
+ fleetId: string;
2430
+ name: string;
2431
+ type: string;
2432
+ kind: $Enums.ShipKind;
2433
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2434
+ note?: string | null;
2435
+ createdAt: Date | string;
2436
+ retiredAt?: Date | string | null;
2437
+ commissionedBy?: string | null;
2438
+ commissionKey?: string | null;
2439
+ commissionRequestHash?: string | null;
2440
+ ownerShipId?: string | null;
2441
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2442
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2443
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2444
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
2445
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
2446
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
2447
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
2448
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
2449
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
2450
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
2451
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
2452
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
2453
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
2454
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
2455
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
2456
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2457
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2458
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2459
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2460
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1882
2461
  };
1883
- export type ShipUpsertWithoutRequestedClearsInput = {
1884
- update: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
1885
- create: Prisma.XOR<Prisma.ShipCreateWithoutRequestedClearsInput, Prisma.ShipUncheckedCreateWithoutRequestedClearsInput>;
2462
+ export type ShipCreateOrConnectWithoutOwnedLabelsInput = {
2463
+ where: Prisma.ShipWhereUniqueInput;
2464
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2465
+ };
2466
+ export type ShipUpsertWithoutOwnedLabelsInput = {
2467
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2468
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
1886
2469
  where?: Prisma.ShipWhereInput;
1887
2470
  };
1888
- export type ShipUpdateToOneWithWhereWithoutRequestedClearsInput = {
2471
+ export type ShipUpdateToOneWithWhereWithoutOwnedLabelsInput = {
1889
2472
  where?: Prisma.ShipWhereInput;
1890
- data: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2473
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
1891
2474
  };
1892
- export type ShipUpdateWithoutRequestedClearsInput = {
2475
+ export type ShipUpdateWithoutOwnedLabelsInput = {
1893
2476
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1894
2477
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1895
2478
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1902,6 +2485,8 @@ export type ShipUpdateWithoutRequestedClearsInput = {
1902
2485
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1903
2486
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1904
2487
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2488
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2489
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1905
2490
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1906
2491
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1907
2492
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1917,11 +2502,12 @@ export type ShipUpdateWithoutRequestedClearsInput = {
1917
2502
  givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
1918
2503
  clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
1919
2504
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
1920
- ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2505
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
1921
2506
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1922
2507
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2508
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1923
2509
  };
1924
- export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
2510
+ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
1925
2511
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1926
2512
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1927
2513
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1934,6 +2520,8 @@ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
1934
2520
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1935
2521
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1936
2522
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2523
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2524
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1937
2525
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1938
2526
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1939
2527
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1949,11 +2537,12 @@ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
1949
2537
  givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
1950
2538
  clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
1951
2539
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
1952
- ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2540
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
1953
2541
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1954
2542
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2543
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1955
2544
  };
1956
- export type ShipCreateWithoutOwnedLabelsInput = {
2545
+ export type ShipCreateWithoutLabelsInput = {
1957
2546
  id: string;
1958
2547
  name: string;
1959
2548
  type: string;
@@ -1966,6 +2555,8 @@ export type ShipCreateWithoutOwnedLabelsInput = {
1966
2555
  commissionKey?: string | null;
1967
2556
  commissionRequestHash?: string | null;
1968
2557
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2558
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2559
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1969
2560
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1970
2561
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1971
2562
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1982,10 +2573,11 @@ export type ShipCreateWithoutOwnedLabelsInput = {
1982
2573
  clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1983
2574
  clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1984
2575
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
1985
- labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2576
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1986
2577
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2578
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1987
2579
  };
1988
- export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2580
+ export type ShipUncheckedCreateWithoutLabelsInput = {
1989
2581
  id: string;
1990
2582
  fleetId: string;
1991
2583
  name: string;
@@ -1998,6 +2590,8 @@ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
1998
2590
  commissionedBy?: string | null;
1999
2591
  commissionKey?: string | null;
2000
2592
  commissionRequestHash?: string | null;
2593
+ ownerShipId?: string | null;
2594
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2001
2595
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2002
2596
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2003
2597
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2014,23 +2608,24 @@ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2014
2608
  clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
2015
2609
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2016
2610
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2017
- labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2611
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2018
2612
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2613
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2019
2614
  };
2020
- export type ShipCreateOrConnectWithoutOwnedLabelsInput = {
2615
+ export type ShipCreateOrConnectWithoutLabelsInput = {
2021
2616
  where: Prisma.ShipWhereUniqueInput;
2022
- create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2617
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2023
2618
  };
2024
- export type ShipUpsertWithoutOwnedLabelsInput = {
2025
- update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2026
- create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2619
+ export type ShipUpsertWithoutLabelsInput = {
2620
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2621
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2027
2622
  where?: Prisma.ShipWhereInput;
2028
2623
  };
2029
- export type ShipUpdateToOneWithWhereWithoutOwnedLabelsInput = {
2624
+ export type ShipUpdateToOneWithWhereWithoutLabelsInput = {
2030
2625
  where?: Prisma.ShipWhereInput;
2031
- data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2626
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2032
2627
  };
2033
- export type ShipUpdateWithoutOwnedLabelsInput = {
2628
+ export type ShipUpdateWithoutLabelsInput = {
2034
2629
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2035
2630
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2036
2631
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2043,6 +2638,8 @@ export type ShipUpdateWithoutOwnedLabelsInput = {
2043
2638
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2044
2639
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2045
2640
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2641
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2642
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2046
2643
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2047
2644
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2048
2645
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2059,10 +2656,11 @@ export type ShipUpdateWithoutOwnedLabelsInput = {
2059
2656
  clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
2060
2657
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2061
2658
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2062
- labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2659
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2063
2660
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2661
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2064
2662
  };
2065
- export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2663
+ export type ShipUncheckedUpdateWithoutLabelsInput = {
2066
2664
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2067
2665
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2068
2666
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2075,6 +2673,8 @@ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2075
2673
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2076
2674
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2077
2675
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2676
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2677
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2078
2678
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2079
2679
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2080
2680
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2091,10 +2691,11 @@ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2091
2691
  clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
2092
2692
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2093
2693
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2094
- labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2694
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2095
2695
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2696
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2096
2697
  };
2097
- export type ShipCreateWithoutLabelsInput = {
2698
+ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2098
2699
  id: string;
2099
2700
  name: string;
2100
2701
  type: string;
@@ -2107,6 +2708,8 @@ export type ShipCreateWithoutLabelsInput = {
2107
2708
  commissionKey?: string | null;
2108
2709
  commissionRequestHash?: string | null;
2109
2710
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2711
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2712
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2110
2713
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2111
2714
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2112
2715
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2124,9 +2727,10 @@ export type ShipCreateWithoutLabelsInput = {
2124
2727
  clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
2125
2728
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2126
2729
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2127
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2730
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2731
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2128
2732
  };
2129
- export type ShipUncheckedCreateWithoutLabelsInput = {
2733
+ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2130
2734
  id: string;
2131
2735
  fleetId: string;
2132
2736
  name: string;
@@ -2139,6 +2743,8 @@ export type ShipUncheckedCreateWithoutLabelsInput = {
2139
2743
  commissionedBy?: string | null;
2140
2744
  commissionKey?: string | null;
2141
2745
  commissionRequestHash?: string | null;
2746
+ ownerShipId?: string | null;
2747
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2142
2748
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2143
2749
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2144
2750
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2156,22 +2762,23 @@ export type ShipUncheckedCreateWithoutLabelsInput = {
2156
2762
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2157
2763
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2158
2764
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2159
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2765
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2766
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2160
2767
  };
2161
- export type ShipCreateOrConnectWithoutLabelsInput = {
2768
+ export type ShipCreateOrConnectWithoutDeclaredNetworkRulesInput = {
2162
2769
  where: Prisma.ShipWhereUniqueInput;
2163
- create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2770
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2164
2771
  };
2165
- export type ShipUpsertWithoutLabelsInput = {
2166
- update: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2167
- create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2772
+ export type ShipUpsertWithoutDeclaredNetworkRulesInput = {
2773
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2774
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2168
2775
  where?: Prisma.ShipWhereInput;
2169
2776
  };
2170
- export type ShipUpdateToOneWithWhereWithoutLabelsInput = {
2777
+ export type ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput = {
2171
2778
  where?: Prisma.ShipWhereInput;
2172
- data: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2779
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2173
2780
  };
2174
- export type ShipUpdateWithoutLabelsInput = {
2781
+ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2175
2782
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2176
2783
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2177
2784
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2184,6 +2791,8 @@ export type ShipUpdateWithoutLabelsInput = {
2184
2791
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2185
2792
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2186
2793
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2794
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2795
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2187
2796
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2188
2797
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2189
2798
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2201,9 +2810,10 @@ export type ShipUpdateWithoutLabelsInput = {
2201
2810
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2202
2811
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2203
2812
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2204
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2813
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2814
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2205
2815
  };
2206
- export type ShipUncheckedUpdateWithoutLabelsInput = {
2816
+ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2207
2817
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2208
2818
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2209
2819
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2216,6 +2826,8 @@ export type ShipUncheckedUpdateWithoutLabelsInput = {
2216
2826
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2217
2827
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2218
2828
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2829
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2830
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2219
2831
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2220
2832
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2221
2833
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2233,9 +2845,10 @@ export type ShipUncheckedUpdateWithoutLabelsInput = {
2233
2845
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2234
2846
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2235
2847
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2236
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2848
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2849
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2237
2850
  };
2238
- export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2851
+ export type ShipCreateWithoutDeclaredNamespaceInput = {
2239
2852
  id: string;
2240
2853
  name: string;
2241
2854
  type: string;
@@ -2248,6 +2861,8 @@ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2248
2861
  commissionKey?: string | null;
2249
2862
  commissionRequestHash?: string | null;
2250
2863
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2864
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2865
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2251
2866
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2252
2867
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2253
2868
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2266,8 +2881,9 @@ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2266
2881
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2267
2882
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2268
2883
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2884
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2269
2885
  };
2270
- export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2886
+ export type ShipUncheckedCreateWithoutDeclaredNamespaceInput = {
2271
2887
  id: string;
2272
2888
  fleetId: string;
2273
2889
  name: string;
@@ -2280,6 +2896,8 @@ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2280
2896
  commissionedBy?: string | null;
2281
2897
  commissionKey?: string | null;
2282
2898
  commissionRequestHash?: string | null;
2899
+ ownerShipId?: string | null;
2900
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2283
2901
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2284
2902
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2285
2903
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2298,21 +2916,22 @@ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2298
2916
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2299
2917
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2300
2918
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2919
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2301
2920
  };
2302
- export type ShipCreateOrConnectWithoutDeclaredNetworkRulesInput = {
2921
+ export type ShipCreateOrConnectWithoutDeclaredNamespaceInput = {
2303
2922
  where: Prisma.ShipWhereUniqueInput;
2304
- create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2923
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
2305
2924
  };
2306
- export type ShipUpsertWithoutDeclaredNetworkRulesInput = {
2307
- update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2308
- create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2925
+ export type ShipUpsertWithoutDeclaredNamespaceInput = {
2926
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
2927
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
2309
2928
  where?: Prisma.ShipWhereInput;
2310
2929
  };
2311
- export type ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput = {
2930
+ export type ShipUpdateToOneWithWhereWithoutDeclaredNamespaceInput = {
2312
2931
  where?: Prisma.ShipWhereInput;
2313
- data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2932
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
2314
2933
  };
2315
- export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2934
+ export type ShipUpdateWithoutDeclaredNamespaceInput = {
2316
2935
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2317
2936
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2318
2937
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2325,6 +2944,8 @@ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2325
2944
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2326
2945
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2327
2946
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2947
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2948
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2328
2949
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2329
2950
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2330
2951
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2343,8 +2964,9 @@ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2343
2964
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2344
2965
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2345
2966
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2967
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2346
2968
  };
2347
- export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2969
+ export type ShipUncheckedUpdateWithoutDeclaredNamespaceInput = {
2348
2970
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2349
2971
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2350
2972
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2357,6 +2979,8 @@ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2357
2979
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2358
2980
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2359
2981
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2982
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2983
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2360
2984
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2361
2985
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2362
2986
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2375,6 +2999,7 @@ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2375
2999
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2376
3000
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2377
3001
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3002
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2378
3003
  };
2379
3004
  export type ShipCreateWithoutCredentialsInput = {
2380
3005
  id: string;
@@ -2389,6 +3014,8 @@ export type ShipCreateWithoutCredentialsInput = {
2389
3014
  commissionKey?: string | null;
2390
3015
  commissionRequestHash?: string | null;
2391
3016
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3017
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3018
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2392
3019
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2393
3020
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
2394
3021
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -2407,6 +3034,7 @@ export type ShipCreateWithoutCredentialsInput = {
2407
3034
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2408
3035
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2409
3036
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3037
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2410
3038
  };
2411
3039
  export type ShipUncheckedCreateWithoutCredentialsInput = {
2412
3040
  id: string;
@@ -2421,6 +3049,8 @@ export type ShipUncheckedCreateWithoutCredentialsInput = {
2421
3049
  commissionedBy?: string | null;
2422
3050
  commissionKey?: string | null;
2423
3051
  commissionRequestHash?: string | null;
3052
+ ownerShipId?: string | null;
3053
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2424
3054
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2425
3055
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
2426
3056
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -2439,6 +3069,7 @@ export type ShipUncheckedCreateWithoutCredentialsInput = {
2439
3069
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2440
3070
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2441
3071
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3072
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2442
3073
  };
2443
3074
  export type ShipCreateOrConnectWithoutCredentialsInput = {
2444
3075
  where: Prisma.ShipWhereUniqueInput;
@@ -2466,6 +3097,8 @@ export type ShipUpdateWithoutCredentialsInput = {
2466
3097
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2467
3098
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2468
3099
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3100
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3101
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2469
3102
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2470
3103
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2471
3104
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -2484,6 +3117,7 @@ export type ShipUpdateWithoutCredentialsInput = {
2484
3117
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2485
3118
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2486
3119
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3120
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2487
3121
  };
2488
3122
  export type ShipUncheckedUpdateWithoutCredentialsInput = {
2489
3123
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2498,6 +3132,8 @@ export type ShipUncheckedUpdateWithoutCredentialsInput = {
2498
3132
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2499
3133
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2500
3134
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3135
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3136
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2501
3137
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2502
3138
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2503
3139
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -2516,6 +3152,7 @@ export type ShipUncheckedUpdateWithoutCredentialsInput = {
2516
3152
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2517
3153
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2518
3154
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3155
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2519
3156
  };
2520
3157
  export type ShipCreateWithoutSentMessagesInput = {
2521
3158
  id: string;
@@ -2530,6 +3167,8 @@ export type ShipCreateWithoutSentMessagesInput = {
2530
3167
  commissionKey?: string | null;
2531
3168
  commissionRequestHash?: string | null;
2532
3169
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3170
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3171
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2533
3172
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2534
3173
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2535
3174
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -2548,6 +3187,7 @@ export type ShipCreateWithoutSentMessagesInput = {
2548
3187
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2549
3188
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2550
3189
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3190
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2551
3191
  };
2552
3192
  export type ShipUncheckedCreateWithoutSentMessagesInput = {
2553
3193
  id: string;
@@ -2562,6 +3202,8 @@ export type ShipUncheckedCreateWithoutSentMessagesInput = {
2562
3202
  commissionedBy?: string | null;
2563
3203
  commissionKey?: string | null;
2564
3204
  commissionRequestHash?: string | null;
3205
+ ownerShipId?: string | null;
3206
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2565
3207
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2566
3208
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2567
3209
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -2580,6 +3222,7 @@ export type ShipUncheckedCreateWithoutSentMessagesInput = {
2580
3222
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2581
3223
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2582
3224
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3225
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2583
3226
  };
2584
3227
  export type ShipCreateOrConnectWithoutSentMessagesInput = {
2585
3228
  where: Prisma.ShipWhereUniqueInput;
@@ -2598,6 +3241,8 @@ export type ShipCreateWithoutAddressedMessagesInput = {
2598
3241
  commissionKey?: string | null;
2599
3242
  commissionRequestHash?: string | null;
2600
3243
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3244
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3245
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2601
3246
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2602
3247
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2603
3248
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2616,6 +3261,7 @@ export type ShipCreateWithoutAddressedMessagesInput = {
2616
3261
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2617
3262
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2618
3263
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3264
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2619
3265
  };
2620
3266
  export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2621
3267
  id: string;
@@ -2630,6 +3276,8 @@ export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2630
3276
  commissionedBy?: string | null;
2631
3277
  commissionKey?: string | null;
2632
3278
  commissionRequestHash?: string | null;
3279
+ ownerShipId?: string | null;
3280
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2633
3281
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2634
3282
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2635
3283
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2648,6 +3296,7 @@ export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2648
3296
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2649
3297
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2650
3298
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3299
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2651
3300
  };
2652
3301
  export type ShipCreateOrConnectWithoutAddressedMessagesInput = {
2653
3302
  where: Prisma.ShipWhereUniqueInput;
@@ -2675,6 +3324,8 @@ export type ShipUpdateWithoutSentMessagesInput = {
2675
3324
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2676
3325
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2677
3326
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3327
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3328
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2678
3329
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2679
3330
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2680
3331
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -2693,6 +3344,7 @@ export type ShipUpdateWithoutSentMessagesInput = {
2693
3344
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2694
3345
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2695
3346
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3347
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2696
3348
  };
2697
3349
  export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2698
3350
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2707,6 +3359,8 @@ export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2707
3359
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2708
3360
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2709
3361
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3362
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3363
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2710
3364
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2711
3365
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2712
3366
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -2725,6 +3379,7 @@ export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2725
3379
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2726
3380
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2727
3381
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3382
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2728
3383
  };
2729
3384
  export type ShipUpsertWithoutAddressedMessagesInput = {
2730
3385
  update: Prisma.XOR<Prisma.ShipUpdateWithoutAddressedMessagesInput, Prisma.ShipUncheckedUpdateWithoutAddressedMessagesInput>;
@@ -2748,6 +3403,8 @@ export type ShipUpdateWithoutAddressedMessagesInput = {
2748
3403
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2749
3404
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2750
3405
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3406
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3407
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2751
3408
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2752
3409
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2753
3410
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2766,6 +3423,7 @@ export type ShipUpdateWithoutAddressedMessagesInput = {
2766
3423
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2767
3424
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2768
3425
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3426
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2769
3427
  };
2770
3428
  export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2771
3429
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2780,6 +3438,8 @@ export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2780
3438
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2781
3439
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2782
3440
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3441
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3442
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2783
3443
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2784
3444
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2785
3445
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2798,6 +3458,7 @@ export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2798
3458
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2799
3459
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2800
3460
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3461
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2801
3462
  };
2802
3463
  export type ShipCreateWithoutDeliveriesInput = {
2803
3464
  id: string;
@@ -2812,6 +3473,8 @@ export type ShipCreateWithoutDeliveriesInput = {
2812
3473
  commissionKey?: string | null;
2813
3474
  commissionRequestHash?: string | null;
2814
3475
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3476
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3477
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2815
3478
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2816
3479
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2817
3480
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2830,6 +3493,7 @@ export type ShipCreateWithoutDeliveriesInput = {
2830
3493
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2831
3494
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2832
3495
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3496
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2833
3497
  };
2834
3498
  export type ShipUncheckedCreateWithoutDeliveriesInput = {
2835
3499
  id: string;
@@ -2844,6 +3508,8 @@ export type ShipUncheckedCreateWithoutDeliveriesInput = {
2844
3508
  commissionedBy?: string | null;
2845
3509
  commissionKey?: string | null;
2846
3510
  commissionRequestHash?: string | null;
3511
+ ownerShipId?: string | null;
3512
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2847
3513
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2848
3514
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2849
3515
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2862,6 +3528,7 @@ export type ShipUncheckedCreateWithoutDeliveriesInput = {
2862
3528
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2863
3529
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2864
3530
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3531
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2865
3532
  };
2866
3533
  export type ShipCreateOrConnectWithoutDeliveriesInput = {
2867
3534
  where: Prisma.ShipWhereUniqueInput;
@@ -2880,6 +3547,8 @@ export type ShipCreateWithoutClaimedDeliveriesInput = {
2880
3547
  commissionKey?: string | null;
2881
3548
  commissionRequestHash?: string | null;
2882
3549
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3550
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3551
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2883
3552
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2884
3553
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2885
3554
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2898,6 +3567,7 @@ export type ShipCreateWithoutClaimedDeliveriesInput = {
2898
3567
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2899
3568
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2900
3569
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3570
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2901
3571
  };
2902
3572
  export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2903
3573
  id: string;
@@ -2912,6 +3582,8 @@ export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2912
3582
  commissionedBy?: string | null;
2913
3583
  commissionKey?: string | null;
2914
3584
  commissionRequestHash?: string | null;
3585
+ ownerShipId?: string | null;
3586
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2915
3587
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2916
3588
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2917
3589
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2930,6 +3602,7 @@ export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2930
3602
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2931
3603
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2932
3604
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3605
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2933
3606
  };
2934
3607
  export type ShipCreateOrConnectWithoutClaimedDeliveriesInput = {
2935
3608
  where: Prisma.ShipWhereUniqueInput;
@@ -2957,6 +3630,8 @@ export type ShipUpdateWithoutDeliveriesInput = {
2957
3630
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2958
3631
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2959
3632
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3633
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3634
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2960
3635
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2961
3636
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2962
3637
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2975,6 +3650,7 @@ export type ShipUpdateWithoutDeliveriesInput = {
2975
3650
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2976
3651
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2977
3652
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3653
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2978
3654
  };
2979
3655
  export type ShipUncheckedUpdateWithoutDeliveriesInput = {
2980
3656
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2989,6 +3665,8 @@ export type ShipUncheckedUpdateWithoutDeliveriesInput = {
2989
3665
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2990
3666
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2991
3667
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3668
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3669
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2992
3670
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2993
3671
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2994
3672
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3007,6 +3685,7 @@ export type ShipUncheckedUpdateWithoutDeliveriesInput = {
3007
3685
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3008
3686
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3009
3687
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3688
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3010
3689
  };
3011
3690
  export type ShipUpsertWithoutClaimedDeliveriesInput = {
3012
3691
  update: Prisma.XOR<Prisma.ShipUpdateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutClaimedDeliveriesInput>;
@@ -3030,6 +3709,8 @@ export type ShipUpdateWithoutClaimedDeliveriesInput = {
3030
3709
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3031
3710
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3032
3711
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3712
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3713
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3033
3714
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3034
3715
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3035
3716
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3048,6 +3729,7 @@ export type ShipUpdateWithoutClaimedDeliveriesInput = {
3048
3729
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3049
3730
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3050
3731
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3732
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3051
3733
  };
3052
3734
  export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3053
3735
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3062,6 +3744,8 @@ export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3062
3744
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3063
3745
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3064
3746
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3747
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3748
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3065
3749
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3066
3750
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3067
3751
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3080,6 +3764,7 @@ export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3080
3764
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3081
3765
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3082
3766
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3767
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3083
3768
  };
3084
3769
  export type ShipCreateWithoutOverdueDeliveriesInput = {
3085
3770
  id: string;
@@ -3094,6 +3779,8 @@ export type ShipCreateWithoutOverdueDeliveriesInput = {
3094
3779
  commissionKey?: string | null;
3095
3780
  commissionRequestHash?: string | null;
3096
3781
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3782
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3783
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3097
3784
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3098
3785
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3099
3786
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3112,6 +3799,7 @@ export type ShipCreateWithoutOverdueDeliveriesInput = {
3112
3799
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3113
3800
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3114
3801
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3802
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3115
3803
  };
3116
3804
  export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3117
3805
  id: string;
@@ -3126,6 +3814,8 @@ export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3126
3814
  commissionedBy?: string | null;
3127
3815
  commissionKey?: string | null;
3128
3816
  commissionRequestHash?: string | null;
3817
+ ownerShipId?: string | null;
3818
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3129
3819
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3130
3820
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3131
3821
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3144,6 +3834,7 @@ export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3144
3834
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3145
3835
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3146
3836
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3837
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3147
3838
  };
3148
3839
  export type ShipCreateOrConnectWithoutOverdueDeliveriesInput = {
3149
3840
  where: Prisma.ShipWhereUniqueInput;
@@ -3171,6 +3862,8 @@ export type ShipUpdateWithoutOverdueDeliveriesInput = {
3171
3862
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3172
3863
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3173
3864
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3865
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3866
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3174
3867
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3175
3868
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3176
3869
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3189,6 +3882,7 @@ export type ShipUpdateWithoutOverdueDeliveriesInput = {
3189
3882
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3190
3883
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3191
3884
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3885
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3192
3886
  };
3193
3887
  export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3194
3888
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3203,6 +3897,8 @@ export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3203
3897
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3204
3898
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3205
3899
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3900
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3901
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3206
3902
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3207
3903
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3208
3904
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3221,6 +3917,7 @@ export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3221
3917
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3222
3918
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3223
3919
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3920
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3224
3921
  };
3225
3922
  export type ShipCreateWithoutActorOfEventsInput = {
3226
3923
  id: string;
@@ -3235,6 +3932,8 @@ export type ShipCreateWithoutActorOfEventsInput = {
3235
3932
  commissionKey?: string | null;
3236
3933
  commissionRequestHash?: string | null;
3237
3934
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3935
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3936
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3238
3937
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3239
3938
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3240
3939
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3253,6 +3952,7 @@ export type ShipCreateWithoutActorOfEventsInput = {
3253
3952
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3254
3953
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3255
3954
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3955
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3256
3956
  };
3257
3957
  export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3258
3958
  id: string;
@@ -3267,6 +3967,8 @@ export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3267
3967
  commissionedBy?: string | null;
3268
3968
  commissionKey?: string | null;
3269
3969
  commissionRequestHash?: string | null;
3970
+ ownerShipId?: string | null;
3971
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3270
3972
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3271
3973
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3272
3974
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3285,6 +3987,7 @@ export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3285
3987
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3286
3988
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3287
3989
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3990
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3288
3991
  };
3289
3992
  export type ShipCreateOrConnectWithoutActorOfEventsInput = {
3290
3993
  where: Prisma.ShipWhereUniqueInput;
@@ -3303,6 +4006,8 @@ export type ShipCreateWithoutEventsInput = {
3303
4006
  commissionKey?: string | null;
3304
4007
  commissionRequestHash?: string | null;
3305
4008
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4009
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4010
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3306
4011
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3307
4012
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3308
4013
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3321,6 +4026,7 @@ export type ShipCreateWithoutEventsInput = {
3321
4026
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3322
4027
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3323
4028
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4029
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3324
4030
  };
3325
4031
  export type ShipUncheckedCreateWithoutEventsInput = {
3326
4032
  id: string;
@@ -3335,6 +4041,8 @@ export type ShipUncheckedCreateWithoutEventsInput = {
3335
4041
  commissionedBy?: string | null;
3336
4042
  commissionKey?: string | null;
3337
4043
  commissionRequestHash?: string | null;
4044
+ ownerShipId?: string | null;
4045
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3338
4046
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3339
4047
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3340
4048
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3353,6 +4061,7 @@ export type ShipUncheckedCreateWithoutEventsInput = {
3353
4061
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3354
4062
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3355
4063
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4064
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3356
4065
  };
3357
4066
  export type ShipCreateOrConnectWithoutEventsInput = {
3358
4067
  where: Prisma.ShipWhereUniqueInput;
@@ -3380,6 +4089,8 @@ export type ShipUpdateWithoutActorOfEventsInput = {
3380
4089
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3381
4090
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3382
4091
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4092
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4093
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3383
4094
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3384
4095
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3385
4096
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3398,6 +4109,7 @@ export type ShipUpdateWithoutActorOfEventsInput = {
3398
4109
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3399
4110
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3400
4111
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4112
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3401
4113
  };
3402
4114
  export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3403
4115
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3412,6 +4124,8 @@ export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3412
4124
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3413
4125
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3414
4126
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4127
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4128
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3415
4129
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3416
4130
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3417
4131
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3430,6 +4144,7 @@ export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3430
4144
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3431
4145
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3432
4146
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4147
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3433
4148
  };
3434
4149
  export type ShipUpsertWithoutEventsInput = {
3435
4150
  update: Prisma.XOR<Prisma.ShipUpdateWithoutEventsInput, Prisma.ShipUncheckedUpdateWithoutEventsInput>;
@@ -3453,6 +4168,8 @@ export type ShipUpdateWithoutEventsInput = {
3453
4168
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3454
4169
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3455
4170
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4171
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4172
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3456
4173
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3457
4174
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3458
4175
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3471,6 +4188,7 @@ export type ShipUpdateWithoutEventsInput = {
3471
4188
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3472
4189
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3473
4190
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4191
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3474
4192
  };
3475
4193
  export type ShipUncheckedUpdateWithoutEventsInput = {
3476
4194
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3485,6 +4203,8 @@ export type ShipUncheckedUpdateWithoutEventsInput = {
3485
4203
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3486
4204
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3487
4205
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4206
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4207
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3488
4208
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3489
4209
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3490
4210
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3503,6 +4223,7 @@ export type ShipUncheckedUpdateWithoutEventsInput = {
3503
4223
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3504
4224
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3505
4225
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4226
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3506
4227
  };
3507
4228
  export type ShipCreateWithoutConsoleSessionsInput = {
3508
4229
  id: string;
@@ -3517,6 +4238,8 @@ export type ShipCreateWithoutConsoleSessionsInput = {
3517
4238
  commissionKey?: string | null;
3518
4239
  commissionRequestHash?: string | null;
3519
4240
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4241
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4242
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3520
4243
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3521
4244
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3522
4245
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3535,6 +4258,7 @@ export type ShipCreateWithoutConsoleSessionsInput = {
3535
4258
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3536
4259
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3537
4260
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4261
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3538
4262
  };
3539
4263
  export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3540
4264
  id: string;
@@ -3549,6 +4273,8 @@ export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3549
4273
  commissionedBy?: string | null;
3550
4274
  commissionKey?: string | null;
3551
4275
  commissionRequestHash?: string | null;
4276
+ ownerShipId?: string | null;
4277
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3552
4278
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3553
4279
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3554
4280
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3567,6 +4293,7 @@ export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3567
4293
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3568
4294
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3569
4295
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4296
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3570
4297
  };
3571
4298
  export type ShipCreateOrConnectWithoutConsoleSessionsInput = {
3572
4299
  where: Prisma.ShipWhereUniqueInput;
@@ -3594,6 +4321,8 @@ export type ShipUpdateWithoutConsoleSessionsInput = {
3594
4321
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3595
4322
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3596
4323
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4324
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4325
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3597
4326
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3598
4327
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3599
4328
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3612,6 +4341,7 @@ export type ShipUpdateWithoutConsoleSessionsInput = {
3612
4341
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3613
4342
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3614
4343
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4344
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3615
4345
  };
3616
4346
  export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3617
4347
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3626,6 +4356,8 @@ export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3626
4356
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3627
4357
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3628
4358
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4359
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4360
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3629
4361
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3630
4362
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3631
4363
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3644,6 +4376,7 @@ export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3644
4376
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3645
4377
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3646
4378
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4379
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3647
4380
  };
3648
4381
  export type ShipCreateManyFleetInput = {
3649
4382
  id: string;
@@ -3657,6 +4390,7 @@ export type ShipCreateManyFleetInput = {
3657
4390
  commissionedBy?: string | null;
3658
4391
  commissionKey?: string | null;
3659
4392
  commissionRequestHash?: string | null;
4393
+ ownerShipId?: string | null;
3660
4394
  };
3661
4395
  export type ShipUpdateWithoutFleetInput = {
3662
4396
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3670,6 +4404,8 @@ export type ShipUpdateWithoutFleetInput = {
3670
4404
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3671
4405
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3672
4406
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4407
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4408
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3673
4409
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3674
4410
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3675
4411
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3689,6 +4425,7 @@ export type ShipUpdateWithoutFleetInput = {
3689
4425
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3690
4426
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3691
4427
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4428
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3692
4429
  };
3693
4430
  export type ShipUncheckedUpdateWithoutFleetInput = {
3694
4431
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3702,6 +4439,8 @@ export type ShipUncheckedUpdateWithoutFleetInput = {
3702
4439
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3703
4440
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3704
4441
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4442
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4443
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3705
4444
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3706
4445
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3707
4446
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3721,6 +4460,7 @@ export type ShipUncheckedUpdateWithoutFleetInput = {
3721
4460
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3722
4461
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3723
4462
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4463
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3724
4464
  };
3725
4465
  export type ShipUncheckedUpdateManyWithoutFleetInput = {
3726
4466
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3734,11 +4474,108 @@ export type ShipUncheckedUpdateManyWithoutFleetInput = {
3734
4474
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3735
4475
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3736
4476
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4477
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4478
+ };
4479
+ export type ShipCreateManyOwnerInput = {
4480
+ id: string;
4481
+ name: string;
4482
+ type: string;
4483
+ kind: $Enums.ShipKind;
4484
+ scopes?: Prisma.ShipCreatescopesInput | string[];
4485
+ note?: string | null;
4486
+ createdAt: Date | string;
4487
+ retiredAt?: Date | string | null;
4488
+ commissionedBy?: string | null;
4489
+ commissionKey?: string | null;
4490
+ commissionRequestHash?: string | null;
4491
+ };
4492
+ export type ShipUpdateWithoutOwnerInput = {
4493
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4494
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4495
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4496
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4497
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4498
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4499
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4500
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4501
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4502
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4503
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4504
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4505
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
4506
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
4507
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
4508
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
4509
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
4510
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
4511
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
4512
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
4513
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
4514
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
4515
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
4516
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
4517
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
4518
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
4519
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
4520
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
4521
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
4522
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
4523
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
4524
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4525
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4526
+ };
4527
+ export type ShipUncheckedUpdateWithoutOwnerInput = {
4528
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4529
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4530
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4531
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4532
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4533
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4534
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4535
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4536
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4537
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4538
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4539
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
4540
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
4541
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
4542
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
4543
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
4544
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
4545
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
4546
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
4547
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
4548
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
4549
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
4550
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
4551
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
4552
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
4553
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
4554
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
4555
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
4556
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
4557
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
4558
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4559
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4560
+ };
4561
+ export type ShipUncheckedUpdateManyWithoutOwnerInput = {
4562
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4563
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4564
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4565
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4566
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4567
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4568
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4569
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4570
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4571
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4572
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3737
4573
  };
3738
4574
  /**
3739
4575
  * Count Type ShipCountOutputType
3740
4576
  */
3741
4577
  export type ShipCountOutputType = {
4578
+ ownedShips: number;
3742
4579
  leases: number;
3743
4580
  credentials: number;
3744
4581
  sentMessages: number;
@@ -3759,6 +4596,7 @@ export type ShipCountOutputType = {
3759
4596
  declaredNetworkRules: number;
3760
4597
  };
3761
4598
  export type ShipCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4599
+ ownedShips?: boolean | ShipCountOutputTypeCountOwnedShipsArgs;
3762
4600
  leases?: boolean | ShipCountOutputTypeCountLeasesArgs;
3763
4601
  credentials?: boolean | ShipCountOutputTypeCountCredentialsArgs;
3764
4602
  sentMessages?: boolean | ShipCountOutputTypeCountSentMessagesArgs;
@@ -3787,6 +4625,12 @@ export type ShipCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensi
3787
4625
  */
3788
4626
  select?: Prisma.ShipCountOutputTypeSelect<ExtArgs> | null;
3789
4627
  };
4628
+ /**
4629
+ * ShipCountOutputType without action
4630
+ */
4631
+ export type ShipCountOutputTypeCountOwnedShipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4632
+ where?: Prisma.ShipWhereInput;
4633
+ };
3790
4634
  /**
3791
4635
  * ShipCountOutputType without action
3792
4636
  */
@@ -3908,7 +4752,10 @@ export type ShipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3908
4752
  commissionedBy?: boolean;
3909
4753
  commissionKey?: boolean;
3910
4754
  commissionRequestHash?: boolean;
4755
+ ownerShipId?: boolean;
3911
4756
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4757
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4758
+ ownedShips?: boolean | Prisma.Ship$ownedShipsArgs<ExtArgs>;
3912
4759
  leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
3913
4760
  credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
3914
4761
  sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
@@ -3928,6 +4775,7 @@ export type ShipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3928
4775
  ownedLabels?: boolean | Prisma.Ship$ownedLabelsArgs<ExtArgs>;
3929
4776
  labels?: boolean | Prisma.Ship$labelsArgs<ExtArgs>;
3930
4777
  declaredNetworkRules?: boolean | Prisma.Ship$declaredNetworkRulesArgs<ExtArgs>;
4778
+ declaredNamespace?: boolean | Prisma.Ship$declaredNamespaceArgs<ExtArgs>;
3931
4779
  _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
3932
4780
  }, ExtArgs["result"]["ship"]>;
3933
4781
  export type ShipSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -3943,7 +4791,9 @@ export type ShipSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensio
3943
4791
  commissionedBy?: boolean;
3944
4792
  commissionKey?: boolean;
3945
4793
  commissionRequestHash?: boolean;
4794
+ ownerShipId?: boolean;
3946
4795
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4796
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
3947
4797
  }, ExtArgs["result"]["ship"]>;
3948
4798
  export type ShipSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3949
4799
  id?: boolean;
@@ -3958,7 +4808,9 @@ export type ShipSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensio
3958
4808
  commissionedBy?: boolean;
3959
4809
  commissionKey?: boolean;
3960
4810
  commissionRequestHash?: boolean;
4811
+ ownerShipId?: boolean;
3961
4812
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4813
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
3962
4814
  }, ExtArgs["result"]["ship"]>;
3963
4815
  export type ShipSelectScalar = {
3964
4816
  id?: boolean;
@@ -3973,10 +4825,13 @@ export type ShipSelectScalar = {
3973
4825
  commissionedBy?: boolean;
3974
4826
  commissionKey?: boolean;
3975
4827
  commissionRequestHash?: boolean;
4828
+ ownerShipId?: boolean;
3976
4829
  };
3977
- export type ShipOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "name" | "type" | "kind" | "scopes" | "note" | "createdAt" | "retiredAt" | "commissionedBy" | "commissionKey" | "commissionRequestHash", ExtArgs["result"]["ship"]>;
4830
+ export type ShipOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "name" | "type" | "kind" | "scopes" | "note" | "createdAt" | "retiredAt" | "commissionedBy" | "commissionKey" | "commissionRequestHash" | "ownerShipId", ExtArgs["result"]["ship"]>;
3978
4831
  export type ShipInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3979
4832
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4833
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4834
+ ownedShips?: boolean | Prisma.Ship$ownedShipsArgs<ExtArgs>;
3980
4835
  leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
3981
4836
  credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
3982
4837
  sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
@@ -3996,18 +4851,23 @@ export type ShipInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3996
4851
  ownedLabels?: boolean | Prisma.Ship$ownedLabelsArgs<ExtArgs>;
3997
4852
  labels?: boolean | Prisma.Ship$labelsArgs<ExtArgs>;
3998
4853
  declaredNetworkRules?: boolean | Prisma.Ship$declaredNetworkRulesArgs<ExtArgs>;
4854
+ declaredNamespace?: boolean | Prisma.Ship$declaredNamespaceArgs<ExtArgs>;
3999
4855
  _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
4000
4856
  };
4001
4857
  export type ShipIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4002
4858
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4859
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4003
4860
  };
4004
4861
  export type ShipIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4005
4862
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
4863
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4006
4864
  };
4007
4865
  export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4008
4866
  name: "Ship";
4009
4867
  objects: {
4010
4868
  fleet: Prisma.$FleetPayload<ExtArgs>;
4869
+ owner: Prisma.$ShipPayload<ExtArgs> | null;
4870
+ ownedShips: Prisma.$ShipPayload<ExtArgs>[];
4011
4871
  leases: Prisma.$LeasePayload<ExtArgs>[];
4012
4872
  credentials: Prisma.$CredentialPayload<ExtArgs>[];
4013
4873
  sentMessages: Prisma.$MessagePayload<ExtArgs>[];
@@ -4027,6 +4887,7 @@ export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
4027
4887
  ownedLabels: Prisma.$LabelPayload<ExtArgs>[];
4028
4888
  labels: Prisma.$ShipLabelPayload<ExtArgs>[];
4029
4889
  declaredNetworkRules: Prisma.$DeclaredNetworkRulesPayload<ExtArgs>[];
4890
+ declaredNamespace: Prisma.$ScopeNamespacePayload<ExtArgs> | null;
4030
4891
  };
4031
4892
  scalars: runtime.Types.Extensions.GetPayloadResult<{
4032
4893
  id: string;
@@ -4044,6 +4905,10 @@ export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
4044
4905
  commissionedBy: string | null;
4045
4906
  commissionKey: string | null;
4046
4907
  commissionRequestHash: string | null;
4908
+ /**
4909
+ * The ship that answers for it, a person's ship or argo (decision 0045); null for argo and the viewer.
4910
+ */
4911
+ ownerShipId: string | null;
4047
4912
  }, ExtArgs["result"]["ship"]>;
4048
4913
  composites: {};
4049
4914
  };
@@ -4374,6 +5239,8 @@ export interface ShipDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
4374
5239
  export interface Prisma__ShipClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
4375
5240
  readonly [Symbol.toStringTag]: "PrismaPromise";
4376
5241
  fleet<T extends Prisma.FleetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FleetDefaultArgs<ExtArgs>>): Prisma.Prisma__FleetClient<runtime.Types.Result.GetResult<Prisma.$FleetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
5242
+ owner<T extends Prisma.Ship$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$ownerArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
5243
+ ownedShips<T extends Prisma.Ship$ownedShipsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$ownedShipsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4377
5244
  leases<T extends Prisma.Ship$leasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$leasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4378
5245
  credentials<T extends Prisma.Ship$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4379
5246
  sentMessages<T extends Prisma.Ship$sentMessagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$sentMessagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -4393,6 +5260,7 @@ export interface Prisma__ShipClient<T, Null = never, ExtArgs extends runtime.Typ
4393
5260
  ownedLabels<T extends Prisma.Ship$ownedLabelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$ownedLabelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4394
5261
  labels<T extends Prisma.Ship$labelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$labelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShipLabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4395
5262
  declaredNetworkRules<T extends Prisma.Ship$declaredNetworkRulesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$declaredNetworkRulesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeclaredNetworkRulesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
5263
+ declaredNamespace<T extends Prisma.Ship$declaredNamespaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$declaredNamespaceArgs<ExtArgs>>): Prisma.Prisma__ScopeNamespaceClient<runtime.Types.Result.GetResult<Prisma.$ScopeNamespacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
4396
5264
  /**
4397
5265
  * Attaches callbacks for the resolution and/or rejection of the Promise.
4398
5266
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4430,6 +5298,7 @@ export interface ShipFieldRefs {
4430
5298
  readonly commissionedBy: Prisma.FieldRef<"Ship", 'String'>;
4431
5299
  readonly commissionKey: Prisma.FieldRef<"Ship", 'String'>;
4432
5300
  readonly commissionRequestHash: Prisma.FieldRef<"Ship", 'String'>;
5301
+ readonly ownerShipId: Prisma.FieldRef<"Ship", 'String'>;
4433
5302
  }
4434
5303
  /**
4435
5304
  * Ship findUnique
@@ -4813,6 +5682,47 @@ export type ShipDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
4813
5682
  */
4814
5683
  limit?: number;
4815
5684
  };
5685
+ /**
5686
+ * Ship.owner
5687
+ */
5688
+ export type Ship$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5689
+ /**
5690
+ * Select specific fields to fetch from the Ship
5691
+ */
5692
+ select?: Prisma.ShipSelect<ExtArgs> | null;
5693
+ /**
5694
+ * Omit specific fields from the Ship
5695
+ */
5696
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
5697
+ /**
5698
+ * Choose, which related nodes to fetch as well
5699
+ */
5700
+ include?: Prisma.ShipInclude<ExtArgs> | null;
5701
+ where?: Prisma.ShipWhereInput;
5702
+ };
5703
+ /**
5704
+ * Ship.ownedShips
5705
+ */
5706
+ export type Ship$ownedShipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5707
+ /**
5708
+ * Select specific fields to fetch from the Ship
5709
+ */
5710
+ select?: Prisma.ShipSelect<ExtArgs> | null;
5711
+ /**
5712
+ * Omit specific fields from the Ship
5713
+ */
5714
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
5715
+ /**
5716
+ * Choose, which related nodes to fetch as well
5717
+ */
5718
+ include?: Prisma.ShipInclude<ExtArgs> | null;
5719
+ where?: Prisma.ShipWhereInput;
5720
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
5721
+ cursor?: Prisma.ShipWhereUniqueInput;
5722
+ take?: number;
5723
+ skip?: number;
5724
+ distinct?: Prisma.ShipScalarFieldEnum | Prisma.ShipScalarFieldEnum[];
5725
+ };
4816
5726
  /**
4817
5727
  * Ship.leases
4818
5728
  */
@@ -5245,6 +6155,24 @@ export type Ship$declaredNetworkRulesArgs<ExtArgs extends runtime.Types.Extensio
5245
6155
  skip?: number;
5246
6156
  distinct?: Prisma.DeclaredNetworkRulesScalarFieldEnum | Prisma.DeclaredNetworkRulesScalarFieldEnum[];
5247
6157
  };
6158
+ /**
6159
+ * Ship.declaredNamespace
6160
+ */
6161
+ export type Ship$declaredNamespaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6162
+ /**
6163
+ * Select specific fields to fetch from the ScopeNamespace
6164
+ */
6165
+ select?: Prisma.ScopeNamespaceSelect<ExtArgs> | null;
6166
+ /**
6167
+ * Omit specific fields from the ScopeNamespace
6168
+ */
6169
+ omit?: Prisma.ScopeNamespaceOmit<ExtArgs> | null;
6170
+ /**
6171
+ * Choose, which related nodes to fetch as well
6172
+ */
6173
+ include?: Prisma.ScopeNamespaceInclude<ExtArgs> | null;
6174
+ where?: Prisma.ScopeNamespaceWhereInput;
6175
+ };
5248
6176
  /**
5249
6177
  * Ship without action
5250
6178
  */