@aeolus-fleet/core 0.26.1 → 0.27.1

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 (364) 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 +14 -0
  10. package/dist/adapters/prisma/generated/client.d.ts +14 -0
  11. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +30 -0
  12. package/dist/adapters/prisma/generated/enums.d.ts +10 -0
  13. package/dist/adapters/prisma/generated/enums.js +10 -1
  14. package/dist/adapters/prisma/generated/enums.js.map +1 -1
  15. package/dist/adapters/prisma/generated/internal/class.d.ts +22 -0
  16. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  17. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  18. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +186 -1
  19. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +27 -2
  20. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  21. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +27 -0
  22. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +27 -2
  23. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  24. package/dist/adapters/prisma/generated/models/Delivery.d.ts +71 -1
  25. package/dist/adapters/prisma/generated/models/Fleet.d.ts +558 -0
  26. package/dist/adapters/prisma/generated/models/Lease.d.ts +172 -1
  27. package/dist/adapters/prisma/generated/models/NetworkSettings.d.ts +185 -21
  28. package/dist/adapters/prisma/generated/models/PluginConnection.d.ts +1180 -0
  29. package/dist/adapters/prisma/generated/models/PluginConnection.js +2 -0
  30. package/dist/adapters/prisma/generated/models/PluginConnection.js.map +1 -0
  31. package/dist/adapters/prisma/generated/models/ReachRefusal.d.ts +71 -1
  32. package/dist/adapters/prisma/generated/models/ScopeNamespace.d.ts +1220 -0
  33. package/dist/adapters/prisma/generated/models/ScopeNamespace.js +2 -0
  34. package/dist/adapters/prisma/generated/models/ScopeNamespace.js.map +1 -0
  35. package/dist/adapters/prisma/generated/models/Ship.d.ts +1269 -51
  36. package/dist/adapters/prisma/generated/models.d.ts +2 -0
  37. package/dist/adapters/prisma/health.js +27 -7
  38. package/dist/adapters/prisma/health.js.map +1 -1
  39. package/dist/adapters/prisma/history.js +18 -72
  40. package/dist/adapters/prisma/history.js.map +1 -1
  41. package/dist/adapters/prisma/messaging.js +31 -35
  42. package/dist/adapters/prisma/messaging.js.map +1 -1
  43. package/dist/adapters/prisma/network.js +45 -15
  44. package/dist/adapters/prisma/network.js.map +1 -1
  45. package/dist/adapters/prisma/overdue.js +4 -3
  46. package/dist/adapters/prisma/overdue.js.map +1 -1
  47. package/dist/adapters/prisma/plugin-connections.d.ts +4 -0
  48. package/dist/adapters/prisma/plugin-connections.js +20 -0
  49. package/dist/adapters/prisma/plugin-connections.js.map +1 -0
  50. package/dist/adapters/prisma/registry.js +68 -13
  51. package/dist/adapters/prisma/registry.js.map +1 -1
  52. package/dist/adapters/prisma/rows.d.ts +3 -0
  53. package/dist/adapters/prisma/rows.js +22 -7
  54. package/dist/adapters/prisma/rows.js.map +1 -1
  55. package/dist/adapters/prisma/scope-namespaces.d.ts +4 -0
  56. package/dist/adapters/prisma/scope-namespaces.js +39 -0
  57. package/dist/adapters/prisma/scope-namespaces.js.map +1 -0
  58. package/dist/adapters/prisma/unit-of-work.d.ts +3 -1
  59. package/dist/adapters/prisma/unit-of-work.js +4 -0
  60. package/dist/adapters/prisma/unit-of-work.js.map +1 -1
  61. package/dist/adapters/rest/rest-api.js +2 -2
  62. package/dist/adapters/rest/rest-api.js.map +1 -1
  63. package/dist/adapters/trpc/console.d.ts +1 -1
  64. package/dist/adapters/trpc/console.js +6 -4
  65. package/dist/adapters/trpc/console.js.map +1 -1
  66. package/dist/adapters/trpc/context.d.ts +28 -4
  67. package/dist/adapters/trpc/fleet.d.ts +243 -90
  68. package/dist/adapters/trpc/fleet.js +146 -57
  69. package/dist/adapters/trpc/fleet.js.map +1 -1
  70. package/dist/adapters/trpc/router.d.ts +366 -86
  71. package/dist/adapters/trpc/ship-contract.js +5 -0
  72. package/dist/adapters/trpc/ship-contract.js.map +1 -1
  73. package/dist/adapters/trpc/ship-protocol.js +7 -5
  74. package/dist/adapters/trpc/ship-protocol.js.map +1 -1
  75. package/dist/adapters/trpc/ship.d.ts +156 -3
  76. package/dist/adapters/trpc/ship.js +89 -8
  77. package/dist/adapters/trpc/ship.js.map +1 -1
  78. package/dist/adapters/trpc/trpc.d.ts +13 -9
  79. package/dist/adapters/trpc/trpc.js +90 -26
  80. package/dist/adapters/trpc/trpc.js.map +1 -1
  81. package/dist/domain/messaging/check-inbox.d.ts +5 -5
  82. package/dist/domain/messaging/check-inbox.js +9 -7
  83. package/dist/domain/messaging/check-inbox.js.map +1 -1
  84. package/dist/domain/messaging/delivery.d.ts +8 -2
  85. package/dist/domain/messaging/delivery.js +14 -9
  86. package/dist/domain/messaging/delivery.js.map +1 -1
  87. package/dist/domain/messaging/dismiss-delivery.d.ts +9 -4
  88. package/dist/domain/messaging/dismiss-delivery.js +26 -19
  89. package/dist/domain/messaging/dismiss-delivery.js.map +1 -1
  90. package/dist/domain/messaging/hand-over-delivery.d.ts +1 -0
  91. package/dist/domain/messaging/hand-over-delivery.js +1 -0
  92. package/dist/domain/messaging/hand-over-delivery.js.map +1 -1
  93. package/dist/domain/messaging/message.d.ts +11 -5
  94. package/dist/domain/messaging/message.js +11 -4
  95. package/dist/domain/messaging/message.js.map +1 -1
  96. package/dist/domain/messaging/overdue.d.ts +2 -0
  97. package/dist/domain/messaging/overdue.js +3 -0
  98. package/dist/domain/messaging/overdue.js.map +1 -1
  99. package/dist/domain/messaging/ping-ship.d.ts +3 -3
  100. package/dist/domain/messaging/ping-ship.js +6 -2
  101. package/dist/domain/messaging/ping-ship.js.map +1 -1
  102. package/dist/domain/messaging/ports.d.ts +11 -3
  103. package/dist/domain/messaging/push-receive-deliveries.d.ts +4 -1
  104. package/dist/domain/messaging/push-receive-deliveries.js +5 -3
  105. package/dist/domain/messaging/push-receive-deliveries.js.map +1 -1
  106. package/dist/domain/messaging/receive-deliveries.d.ts +23 -0
  107. package/dist/domain/messaging/receive-deliveries.js +6 -3
  108. package/dist/domain/messaging/receive-deliveries.js.map +1 -1
  109. package/dist/domain/messaging/receive-reply.d.ts +32 -0
  110. package/dist/domain/messaging/receive-reply.js +25 -0
  111. package/dist/domain/messaging/receive-reply.js.map +1 -0
  112. package/dist/domain/messaging/resend-delivery.d.ts +5 -2
  113. package/dist/domain/messaging/resend-delivery.js +8 -4
  114. package/dist/domain/messaging/resend-delivery.js.map +1 -1
  115. package/dist/domain/messaging/send-message.d.ts +9 -2
  116. package/dist/domain/messaging/send-message.js +12 -2
  117. package/dist/domain/messaging/send-message.js.map +1 -1
  118. package/dist/domain/messaging/send-request.d.ts +3 -1
  119. package/dist/domain/messaging/send-request.js +4 -2
  120. package/dist/domain/messaging/send-request.js.map +1 -1
  121. package/dist/domain/registry/assign-label.d.ts +2 -1
  122. package/dist/domain/registry/assign-label.js +3 -2
  123. package/dist/domain/registry/assign-label.js.map +1 -1
  124. package/dist/domain/registry/check-reach.d.ts +69 -6
  125. package/dist/domain/registry/check-reach.js +109 -12
  126. package/dist/domain/registry/check-reach.js.map +1 -1
  127. package/dist/domain/registry/commission-ship.d.ts +21 -8
  128. package/dist/domain/registry/commission-ship.js +55 -10
  129. package/dist/domain/registry/commission-ship.js.map +1 -1
  130. package/dist/domain/registry/connect-plugin.d.ts +30 -0
  131. package/dist/domain/registry/connect-plugin.js +35 -0
  132. package/dist/domain/registry/connect-plugin.js.map +1 -0
  133. package/dist/domain/registry/crew-request.d.ts +1 -1
  134. package/dist/domain/registry/declare-scopes.d.ts +38 -0
  135. package/dist/domain/registry/declare-scopes.js +34 -0
  136. package/dist/domain/registry/declare-scopes.js.map +1 -0
  137. package/dist/domain/registry/declared-network-rules.d.ts +2 -1
  138. package/dist/domain/registry/declared-network-rules.js +11 -5
  139. package/dist/domain/registry/declared-network-rules.js.map +1 -1
  140. package/dist/domain/registry/discover.d.ts +29 -0
  141. package/dist/domain/registry/discover.js +54 -0
  142. package/dist/domain/registry/discover.js.map +1 -0
  143. package/dist/domain/registry/explain-reach.d.ts +13 -12
  144. package/dist/domain/registry/explain-reach.js +35 -12
  145. package/dist/domain/registry/explain-reach.js.map +1 -1
  146. package/dist/domain/registry/get-ship.d.ts +11 -3
  147. package/dist/domain/registry/get-ship.js +8 -2
  148. package/dist/domain/registry/get-ship.js.map +1 -1
  149. package/dist/domain/registry/get-starting-prompt.d.ts +18 -2
  150. package/dist/domain/registry/get-starting-prompt.js +7 -7
  151. package/dist/domain/registry/get-starting-prompt.js.map +1 -1
  152. package/dist/domain/registry/grant-scopes.d.ts +34 -0
  153. package/dist/domain/registry/grant-scopes.js +35 -0
  154. package/dist/domain/registry/grant-scopes.js.map +1 -0
  155. package/dist/domain/registry/label.d.ts +12 -7
  156. package/dist/domain/registry/label.js +21 -4
  157. package/dist/domain/registry/label.js.map +1 -1
  158. package/dist/domain/registry/leases.d.ts +6 -3
  159. package/dist/domain/registry/leases.js +7 -5
  160. package/dist/domain/registry/leases.js.map +1 -1
  161. package/dist/domain/registry/list-fleet.d.ts +19 -6
  162. package/dist/domain/registry/list-fleet.js +18 -3
  163. package/dist/domain/registry/list-fleet.js.map +1 -1
  164. package/dist/domain/registry/list-scopes.d.ts +24 -0
  165. package/dist/domain/registry/list-scopes.js +22 -0
  166. package/dist/domain/registry/list-scopes.js.map +1 -0
  167. package/dist/domain/registry/managed-or-assigned.d.ts +25 -0
  168. package/dist/domain/registry/managed-or-assigned.js +23 -0
  169. package/dist/domain/registry/managed-or-assigned.js.map +1 -0
  170. package/dist/domain/registry/named-namespaces.d.ts +19 -0
  171. package/dist/domain/registry/named-namespaces.js +19 -0
  172. package/dist/domain/registry/named-namespaces.js.map +1 -0
  173. package/dist/domain/registry/network-settings.d.ts +95 -24
  174. package/dist/domain/registry/network-settings.js +146 -46
  175. package/dist/domain/registry/network-settings.js.map +1 -1
  176. package/dist/domain/registry/plugin-connection.d.ts +48 -0
  177. package/dist/domain/registry/plugin-connection.js +35 -0
  178. package/dist/domain/registry/plugin-connection.js.map +1 -0
  179. package/dist/domain/registry/ports.d.ts +75 -1
  180. package/dist/domain/registry/public.d.ts +3 -2
  181. package/dist/domain/registry/public.js +3 -2
  182. package/dist/domain/registry/public.js.map +1 -1
  183. package/dist/domain/registry/reach-refusal.d.ts +12 -4
  184. package/dist/domain/registry/read-assigned-crew-requests.d.ts +12 -3
  185. package/dist/domain/registry/read-assigned-crew-requests.js +8 -8
  186. package/dist/domain/registry/read-assigned-crew-requests.js.map +1 -1
  187. package/dist/domain/registry/read-built-in-rules.d.ts +20 -0
  188. package/dist/domain/registry/read-built-in-rules.js +24 -0
  189. package/dist/domain/registry/read-built-in-rules.js.map +1 -0
  190. package/dist/domain/registry/read-clear-requests.d.ts +5 -3
  191. package/dist/domain/registry/read-clear-requests.js +7 -5
  192. package/dist/domain/registry/read-clear-requests.js.map +1 -1
  193. package/dist/domain/registry/read-network-plugin.d.ts +23 -0
  194. package/dist/domain/registry/read-network-plugin.js +15 -0
  195. package/dist/domain/registry/read-network-plugin.js.map +1 -0
  196. package/dist/domain/registry/read-on-behalf.d.ts +20 -0
  197. package/dist/domain/registry/read-on-behalf.js +31 -0
  198. package/dist/domain/registry/read-on-behalf.js.map +1 -0
  199. package/dist/domain/registry/read-reach.d.ts +64 -0
  200. package/dist/domain/registry/read-reach.js +83 -0
  201. package/dist/domain/registry/read-reach.js.map +1 -0
  202. package/dist/domain/registry/recrew-ship.d.ts +3 -2
  203. package/dist/domain/registry/recrew-ship.js +8 -1
  204. package/dist/domain/registry/recrew-ship.js.map +1 -1
  205. package/dist/domain/registry/release-ship.d.ts +10 -5
  206. package/dist/domain/registry/release-ship.js +11 -8
  207. package/dist/domain/registry/release-ship.js.map +1 -1
  208. package/dist/domain/registry/remove-crew-request.d.ts +4 -3
  209. package/dist/domain/registry/remove-crew-request.js +6 -1
  210. package/dist/domain/registry/remove-crew-request.js.map +1 -1
  211. package/dist/domain/registry/rename-ship.d.ts +7 -5
  212. package/dist/domain/registry/rename-ship.js +9 -3
  213. package/dist/domain/registry/rename-ship.js.map +1 -1
  214. package/dist/domain/registry/request-crew.d.ts +5 -4
  215. package/dist/domain/registry/request-crew.js +6 -1
  216. package/dist/domain/registry/request-crew.js.map +1 -1
  217. package/dist/domain/registry/request-worktree-clear.d.ts +3 -2
  218. package/dist/domain/registry/request-worktree-clear.js +6 -1
  219. package/dist/domain/registry/request-worktree-clear.js.map +1 -1
  220. package/dist/domain/registry/retire-ship.d.ts +17 -7
  221. package/dist/domain/registry/retire-ship.js +48 -5
  222. package/dist/domain/registry/retire-ship.js.map +1 -1
  223. package/dist/domain/registry/scope-grant.d.ts +53 -0
  224. package/dist/domain/registry/scope-grant.js +74 -0
  225. package/dist/domain/registry/scope-grant.js.map +1 -0
  226. package/dist/domain/registry/scope-namespace.d.ts +68 -0
  227. package/dist/domain/registry/scope-namespace.js +82 -0
  228. package/dist/domain/registry/scope-namespace.js.map +1 -0
  229. package/dist/domain/registry/set-built-in-rule.d.ts +28 -0
  230. package/dist/domain/registry/set-built-in-rule.js +33 -0
  231. package/dist/domain/registry/set-built-in-rule.js.map +1 -0
  232. package/dist/domain/registry/set-network-rules.d.ts +3 -3
  233. package/dist/domain/registry/set-network-rules.js +2 -2
  234. package/dist/domain/registry/set-owner.d.ts +30 -0
  235. package/dist/domain/registry/set-owner.js +37 -0
  236. package/dist/domain/registry/set-owner.js.map +1 -0
  237. package/dist/domain/registry/set-statement.d.ts +27 -0
  238. package/dist/domain/registry/set-statement.js +28 -0
  239. package/dist/domain/registry/set-statement.js.map +1 -0
  240. package/dist/domain/registry/ship.d.ts +74 -10
  241. package/dist/domain/registry/ship.js +128 -10
  242. package/dist/domain/registry/ship.js.map +1 -1
  243. package/dist/domain/registry/statement.d.ts +32 -0
  244. package/dist/domain/registry/statement.js +39 -0
  245. package/dist/domain/registry/statement.js.map +1 -0
  246. package/dist/domain/registry/unassign-label.js +1 -1
  247. package/dist/domain/registry/unassign-label.js.map +1 -1
  248. package/dist/domain/registry/whoami.d.ts +5 -1
  249. package/dist/domain/registry/whoami.js +7 -4
  250. package/dist/domain/registry/whoami.js.map +1 -1
  251. package/dist/domain/shared/caller.d.ts +5 -2
  252. package/dist/domain/shared/caller.js.map +1 -1
  253. package/dist/domain/shared/delivery-way.d.ts +9 -5
  254. package/dist/domain/shared/delivery-way.js +17 -5
  255. package/dist/domain/shared/delivery-way.js.map +1 -1
  256. package/dist/domain/shared/errors.d.ts +1 -1
  257. package/dist/domain/shared/errors.js.map +1 -1
  258. package/dist/domain/shared/events-read.d.ts +16 -0
  259. package/dist/domain/shared/events-read.js +15 -0
  260. package/dist/domain/shared/events-read.js.map +1 -0
  261. package/dist/domain/shared/follow-fleet.d.ts +8 -2
  262. package/dist/domain/shared/follow-fleet.js +14 -4
  263. package/dist/domain/shared/follow-fleet.js.map +1 -1
  264. package/dist/domain/shared/health.d.ts +11 -2
  265. package/dist/domain/shared/health.js +11 -3
  266. package/dist/domain/shared/health.js.map +1 -1
  267. package/dist/domain/shared/history.d.ts +11 -42
  268. package/dist/domain/shared/history.js +9 -0
  269. package/dist/domain/shared/history.js.map +1 -1
  270. package/dist/domain/shared/read-fleet-events.d.ts +8 -2
  271. package/dist/domain/shared/read-fleet-events.js +10 -4
  272. package/dist/domain/shared/read-fleet-events.js.map +1 -1
  273. package/dist/domain/shared/read-health.d.ts +5 -1
  274. package/dist/domain/shared/read-health.js +13 -2
  275. package/dist/domain/shared/read-health.js.map +1 -1
  276. package/dist/domain/shared/read-inbox.d.ts +6 -3
  277. package/dist/domain/shared/read-inbox.js +14 -4
  278. package/dist/domain/shared/read-inbox.js.map +1 -1
  279. package/dist/domain/shared/read-message.d.ts +6 -2
  280. package/dist/domain/shared/read-message.js +6 -2
  281. package/dist/domain/shared/read-message.js.map +1 -1
  282. package/dist/domain/shared/read-needs-attention.d.ts +4 -1
  283. package/dist/domain/shared/read-needs-attention.js +8 -3
  284. package/dist/domain/shared/read-needs-attention.js.map +1 -1
  285. package/dist/domain/shared/read-sent-message.d.ts +31 -0
  286. package/dist/domain/shared/read-sent-message.js +28 -0
  287. package/dist/domain/shared/read-sent-message.js.map +1 -0
  288. package/dist/domain/shared/read-ship-messages.d.ts +6 -2
  289. package/dist/domain/shared/read-ship-messages.js +7 -2
  290. package/dist/domain/shared/read-ship-messages.js.map +1 -1
  291. package/dist/domain/shared/read-ship-timeline.d.ts +5 -2
  292. package/dist/domain/shared/read-ship-timeline.js +11 -6
  293. package/dist/domain/shared/read-ship-timeline.js.map +1 -1
  294. package/dist/domain/shared/read-ship-way.d.ts +11 -4
  295. package/dist/domain/shared/read-ship-way.js +9 -2
  296. package/dist/domain/shared/read-ship-way.js.map +1 -1
  297. package/dist/domain/shared/stuck.d.ts +10 -1
  298. package/dist/domain/shared/stuck.js +5 -3
  299. package/dist/domain/shared/stuck.js.map +1 -1
  300. package/dist/testing/container-images.d.ts +14 -0
  301. package/dist/testing/container-images.js +18 -0
  302. package/dist/testing/container-images.js.map +1 -0
  303. package/dist/testing/database.d.ts +14 -0
  304. package/dist/testing/database.js +48 -0
  305. package/dist/testing/database.js.map +1 -0
  306. package/dist/testing/fleet.d.ts +13 -0
  307. package/dist/testing/fleet.js +17 -0
  308. package/dist/testing/fleet.js.map +1 -0
  309. package/dist/testing/index.d.ts +12 -0
  310. package/dist/testing/index.js +12 -0
  311. package/dist/testing/index.js.map +1 -0
  312. package/dist/testing/keys.d.ts +1 -0
  313. package/dist/testing/keys.js +7 -0
  314. package/dist/testing/keys.js.map +1 -0
  315. package/dist/testing/migrate-lock.d.ts +12 -0
  316. package/dist/testing/migrate-lock.js +51 -0
  317. package/dist/testing/migrate-lock.js.map +1 -0
  318. package/dist/testing/migrated-template.d.ts +12 -0
  319. package/dist/testing/migrated-template.js +29 -0
  320. package/dist/testing/migrated-template.js.map +1 -0
  321. package/dist/testing/postgres-container.d.ts +16 -0
  322. package/dist/testing/postgres-container.js +30 -0
  323. package/dist/testing/postgres-container.js.map +1 -0
  324. package/dist/testing/postgres-global-setup.d.ts +15 -0
  325. package/dist/testing/postgres-global-setup.js +20 -0
  326. package/dist/testing/postgres-global-setup.js.map +1 -0
  327. package/dist/testing/prisma-cli.d.ts +5 -0
  328. package/dist/testing/prisma-cli.js +15 -0
  329. package/dist/testing/prisma-cli.js.map +1 -0
  330. package/dist/testing/result.d.ts +5 -0
  331. package/dist/testing/result.js +15 -0
  332. package/dist/testing/result.js.map +1 -0
  333. package/dist/wiring.d.ts +26 -4
  334. package/dist/wiring.js +51 -18
  335. package/dist/wiring.js.map +1 -1
  336. package/package.json +28 -2
  337. package/src/adapters/prisma/migrations/20261018100000_force_scope/migration.sql +8 -0
  338. package/src/adapters/prisma/migrations/20261018110000_forced_delivery/migration.sql +4 -0
  339. package/src/adapters/prisma/migrations/20261018120000_person_and_app_ships/migration.sql +3 -0
  340. package/src/adapters/prisma/migrations/20261018130000_owners/migration.sql +14 -0
  341. package/src/adapters/prisma/migrations/20261018140000_owners_on_reach_refusals/migration.sql +14 -0
  342. package/src/adapters/prisma/migrations/20261018150000_network_verbs/migration.sql +9 -0
  343. package/src/adapters/prisma/migrations/20261018160000_built_in_rules/migration.sql +13 -0
  344. package/src/adapters/prisma/migrations/20261018170000_network_rules_a_list/migration.sql +5 -0
  345. package/src/adapters/prisma/migrations/20261018180000_verb_on_reach_refusals/migration.sql +4 -0
  346. package/src/adapters/prisma/migrations/20261018200000_lease_statements/migration.sql +3 -0
  347. package/src/adapters/prisma/migrations/20261018210000_declare_and_grant_scopes/migration.sql +8 -0
  348. package/src/adapters/prisma/migrations/20261018220000_plugin_scopes/migration.sql +14 -0
  349. package/src/adapters/prisma/migrations/20261018230000_scope_namespaces/migration.sql +20 -0
  350. package/src/adapters/prisma/migrations/20261018240000_trierarch_plugin_crew_run/migration.sql +44 -0
  351. package/src/adapters/prisma/migrations/20261018250000_scope_catalogue/migration.sql +67 -0
  352. package/src/adapters/prisma/migrations/20261019090000_reach_refusal_asked_by/migration.sql +2 -0
  353. package/src/adapters/prisma/migrations/20261019100000_on_behalf_scope/migration.sql +61 -0
  354. package/src/adapters/prisma/migrations/20261019110000_events_fleet_id_occurred_at/migration.sql +2 -0
  355. package/src/adapters/prisma/migrations/20261019130000_plugin_connections/migration.sql +54 -0
  356. package/src/adapters/prisma/migrations/20261019150000_network_plugin_registered_at/migration.sql +23 -0
  357. package/src/adapters/prisma/migrations/20261019160000_lease_waker/migration.sql +4 -0
  358. package/src/adapters/prisma/schema.prisma +81 -7
  359. package/dist/domain/shared/read-no-ship-can-take.d.ts +0 -13
  360. package/dist/domain/shared/read-no-ship-can-take.js +0 -12
  361. package/dist/domain/shared/read-no-ship-can-take.js.map +0 -1
  362. package/dist/domain/shared/read-overdue.d.ts +0 -13
  363. package/dist/domain/shared/read-overdue.js +0 -12
  364. 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,8 @@ 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;
226
+ pluginConnection?: Prisma.XOR<Prisma.PluginConnectionNullableScalarRelationFilter, Prisma.PluginConnectionWhereInput> | null;
215
227
  };
216
228
  export type ShipOrderByWithRelationInput = {
217
229
  id?: Prisma.SortOrder;
@@ -226,7 +238,10 @@ export type ShipOrderByWithRelationInput = {
226
238
  commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
227
239
  commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
228
240
  commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
241
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
229
242
  fleet?: Prisma.FleetOrderByWithRelationInput;
243
+ owner?: Prisma.ShipOrderByWithRelationInput;
244
+ ownedShips?: Prisma.ShipOrderByRelationAggregateInput;
230
245
  leases?: Prisma.LeaseOrderByRelationAggregateInput;
231
246
  credentials?: Prisma.CredentialOrderByRelationAggregateInput;
232
247
  sentMessages?: Prisma.MessageOrderByRelationAggregateInput;
@@ -246,6 +261,8 @@ export type ShipOrderByWithRelationInput = {
246
261
  ownedLabels?: Prisma.LabelOrderByRelationAggregateInput;
247
262
  labels?: Prisma.ShipLabelOrderByRelationAggregateInput;
248
263
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesOrderByRelationAggregateInput;
264
+ declaredNamespace?: Prisma.ScopeNamespaceOrderByWithRelationInput;
265
+ pluginConnection?: Prisma.PluginConnectionOrderByWithRelationInput;
249
266
  };
250
267
  export type ShipWhereUniqueInput = Prisma.AtLeast<{
251
268
  id?: string;
@@ -266,7 +283,10 @@ export type ShipWhereUniqueInput = Prisma.AtLeast<{
266
283
  commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
267
284
  commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
268
285
  commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
286
+ ownerShipId?: Prisma.StringNullableFilter<"Ship"> | string | null;
269
287
  fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
288
+ owner?: Prisma.XOR<Prisma.ShipNullableScalarRelationFilter, Prisma.ShipWhereInput> | null;
289
+ ownedShips?: Prisma.ShipListRelationFilter;
270
290
  leases?: Prisma.LeaseListRelationFilter;
271
291
  credentials?: Prisma.CredentialListRelationFilter;
272
292
  sentMessages?: Prisma.MessageListRelationFilter;
@@ -286,6 +306,8 @@ export type ShipWhereUniqueInput = Prisma.AtLeast<{
286
306
  ownedLabels?: Prisma.LabelListRelationFilter;
287
307
  labels?: Prisma.ShipLabelListRelationFilter;
288
308
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesListRelationFilter;
309
+ declaredNamespace?: Prisma.XOR<Prisma.ScopeNamespaceNullableScalarRelationFilter, Prisma.ScopeNamespaceWhereInput> | null;
310
+ pluginConnection?: Prisma.XOR<Prisma.PluginConnectionNullableScalarRelationFilter, Prisma.PluginConnectionWhereInput> | null;
289
311
  }, "id" | "fleetId_id" | "fleetId_commissionedBy_commissionKey" | "fleetId_name" | "fleetId" | "fleetId">;
290
312
  export type ShipOrderByWithAggregationInput = {
291
313
  id?: Prisma.SortOrder;
@@ -300,6 +322,7 @@ export type ShipOrderByWithAggregationInput = {
300
322
  commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
301
323
  commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
302
324
  commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
325
+ ownerShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
303
326
  _count?: Prisma.ShipCountOrderByAggregateInput;
304
327
  _max?: Prisma.ShipMaxOrderByAggregateInput;
305
328
  _min?: Prisma.ShipMinOrderByAggregateInput;
@@ -320,6 +343,7 @@ export type ShipScalarWhereWithAggregatesInput = {
320
343
  commissionedBy?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
321
344
  commissionKey?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
322
345
  commissionRequestHash?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
346
+ ownerShipId?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
323
347
  };
324
348
  export type ShipCreateInput = {
325
349
  id: string;
@@ -334,6 +358,8 @@ export type ShipCreateInput = {
334
358
  commissionKey?: string | null;
335
359
  commissionRequestHash?: string | null;
336
360
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
361
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
362
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
337
363
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
338
364
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
339
365
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -353,6 +379,8 @@ export type ShipCreateInput = {
353
379
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
354
380
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
355
381
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
382
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
383
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
356
384
  };
357
385
  export type ShipUncheckedCreateInput = {
358
386
  id: string;
@@ -367,6 +395,8 @@ export type ShipUncheckedCreateInput = {
367
395
  commissionedBy?: string | null;
368
396
  commissionKey?: string | null;
369
397
  commissionRequestHash?: string | null;
398
+ ownerShipId?: string | null;
399
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
370
400
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
371
401
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
372
402
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -386,6 +416,8 @@ export type ShipUncheckedCreateInput = {
386
416
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
387
417
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
388
418
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
419
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
420
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
389
421
  };
390
422
  export type ShipUpdateInput = {
391
423
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -400,6 +432,8 @@ export type ShipUpdateInput = {
400
432
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
401
433
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
402
434
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
435
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
436
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
403
437
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
404
438
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
405
439
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -419,6 +453,8 @@ export type ShipUpdateInput = {
419
453
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
420
454
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
421
455
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
456
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
457
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
422
458
  };
423
459
  export type ShipUncheckedUpdateInput = {
424
460
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -433,6 +469,8 @@ export type ShipUncheckedUpdateInput = {
433
469
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
470
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
471
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
472
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
436
474
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
437
475
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
438
476
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -452,6 +490,8 @@ export type ShipUncheckedUpdateInput = {
452
490
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
453
491
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
454
492
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
493
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
494
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
455
495
  };
456
496
  export type ShipCreateManyInput = {
457
497
  id: string;
@@ -466,6 +506,7 @@ export type ShipCreateManyInput = {
466
506
  commissionedBy?: string | null;
467
507
  commissionKey?: string | null;
468
508
  commissionRequestHash?: string | null;
509
+ ownerShipId?: string | null;
469
510
  };
470
511
  export type ShipUpdateManyMutationInput = {
471
512
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -493,6 +534,7 @@ export type ShipUncheckedUpdateManyInput = {
493
534
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
535
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
495
536
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
538
  };
497
539
  export type ShipListRelationFilter = {
498
540
  every?: Prisma.ShipWhereInput;
@@ -509,6 +551,10 @@ export type StringNullableListFilter<$PrismaModel = never> = {
509
551
  hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
510
552
  isEmpty?: boolean;
511
553
  };
554
+ export type ShipNullableScalarRelationFilter = {
555
+ is?: Prisma.ShipWhereInput | null;
556
+ isNot?: Prisma.ShipWhereInput | null;
557
+ };
512
558
  export type ShipFleetIdIdCompoundUniqueInput = {
513
559
  fleetId: string;
514
560
  id: string;
@@ -535,6 +581,7 @@ export type ShipCountOrderByAggregateInput = {
535
581
  commissionedBy?: Prisma.SortOrder;
536
582
  commissionKey?: Prisma.SortOrder;
537
583
  commissionRequestHash?: Prisma.SortOrder;
584
+ ownerShipId?: Prisma.SortOrder;
538
585
  };
539
586
  export type ShipMaxOrderByAggregateInput = {
540
587
  id?: Prisma.SortOrder;
@@ -548,6 +595,7 @@ export type ShipMaxOrderByAggregateInput = {
548
595
  commissionedBy?: Prisma.SortOrder;
549
596
  commissionKey?: Prisma.SortOrder;
550
597
  commissionRequestHash?: Prisma.SortOrder;
598
+ ownerShipId?: Prisma.SortOrder;
551
599
  };
552
600
  export type ShipMinOrderByAggregateInput = {
553
601
  id?: Prisma.SortOrder;
@@ -561,15 +609,12 @@ export type ShipMinOrderByAggregateInput = {
561
609
  commissionedBy?: Prisma.SortOrder;
562
610
  commissionKey?: Prisma.SortOrder;
563
611
  commissionRequestHash?: Prisma.SortOrder;
612
+ ownerShipId?: Prisma.SortOrder;
564
613
  };
565
614
  export type ShipScalarRelationFilter = {
566
615
  is?: Prisma.ShipWhereInput;
567
616
  isNot?: Prisma.ShipWhereInput;
568
617
  };
569
- export type ShipNullableScalarRelationFilter = {
570
- is?: Prisma.ShipWhereInput | null;
571
- isNot?: Prisma.ShipWhereInput | null;
572
- };
573
618
  export type ShipCreateNestedManyWithoutFleetInput = {
574
619
  create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
575
620
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
@@ -611,6 +656,23 @@ export type ShipUncheckedUpdateManyWithoutFleetNestedInput = {
611
656
  export type ShipCreatescopesInput = {
612
657
  set: string[];
613
658
  };
659
+ export type ShipCreateNestedOneWithoutOwnedShipsInput = {
660
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
661
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnedShipsInput;
662
+ connect?: Prisma.ShipWhereUniqueInput;
663
+ };
664
+ export type ShipCreateNestedManyWithoutOwnerInput = {
665
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
666
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
667
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
668
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
669
+ };
670
+ export type ShipUncheckedCreateNestedManyWithoutOwnerInput = {
671
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
672
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
673
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
674
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
675
+ };
614
676
  export type EnumShipKindFieldUpdateOperationsInput = {
615
677
  set?: $Enums.ShipKind;
616
678
  };
@@ -624,6 +686,41 @@ export type NullableStringFieldUpdateOperationsInput = {
624
686
  export type NullableDateTimeFieldUpdateOperationsInput = {
625
687
  set?: Date | string | null;
626
688
  };
689
+ export type ShipUpdateOneWithoutOwnedShipsNestedInput = {
690
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
691
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnedShipsInput;
692
+ upsert?: Prisma.ShipUpsertWithoutOwnedShipsInput;
693
+ disconnect?: Prisma.ShipWhereInput | boolean;
694
+ delete?: Prisma.ShipWhereInput | boolean;
695
+ connect?: Prisma.ShipWhereUniqueInput;
696
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutOwnedShipsInput, Prisma.ShipUpdateWithoutOwnedShipsInput>, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
697
+ };
698
+ export type ShipUpdateManyWithoutOwnerNestedInput = {
699
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
700
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
701
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput[];
702
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
703
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
704
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
705
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
706
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
707
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput[];
708
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutOwnerInput | Prisma.ShipUpdateManyWithWhereWithoutOwnerInput[];
709
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
710
+ };
711
+ export type ShipUncheckedUpdateManyWithoutOwnerNestedInput = {
712
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput> | Prisma.ShipCreateWithoutOwnerInput[] | Prisma.ShipUncheckedCreateWithoutOwnerInput[];
713
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutOwnerInput | Prisma.ShipCreateOrConnectWithoutOwnerInput[];
714
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpsertWithWhereUniqueWithoutOwnerInput[];
715
+ createMany?: Prisma.ShipCreateManyOwnerInputEnvelope;
716
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
717
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
718
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
719
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
720
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ShipUpdateWithWhereUniqueWithoutOwnerInput[];
721
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutOwnerInput | Prisma.ShipUpdateManyWithWhereWithoutOwnerInput[];
722
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
723
+ };
627
724
  export type ShipCreateNestedOneWithoutLeasesInput = {
628
725
  create?: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
629
726
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutLeasesInput;
@@ -746,6 +843,30 @@ export type ShipUpdateOneRequiredWithoutDeclaredNetworkRulesNestedInput = {
746
843
  connect?: Prisma.ShipWhereUniqueInput;
747
844
  update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput, Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput>, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
748
845
  };
846
+ export type ShipCreateNestedOneWithoutDeclaredNamespaceInput = {
847
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
848
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeclaredNamespaceInput;
849
+ connect?: Prisma.ShipWhereUniqueInput;
850
+ };
851
+ export type ShipUpdateOneRequiredWithoutDeclaredNamespaceNestedInput = {
852
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
853
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeclaredNamespaceInput;
854
+ upsert?: Prisma.ShipUpsertWithoutDeclaredNamespaceInput;
855
+ connect?: Prisma.ShipWhereUniqueInput;
856
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutDeclaredNamespaceInput, Prisma.ShipUpdateWithoutDeclaredNamespaceInput>, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
857
+ };
858
+ export type ShipCreateNestedOneWithoutPluginConnectionInput = {
859
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutPluginConnectionInput, Prisma.ShipUncheckedCreateWithoutPluginConnectionInput>;
860
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutPluginConnectionInput;
861
+ connect?: Prisma.ShipWhereUniqueInput;
862
+ };
863
+ export type ShipUpdateOneRequiredWithoutPluginConnectionNestedInput = {
864
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutPluginConnectionInput, Prisma.ShipUncheckedCreateWithoutPluginConnectionInput>;
865
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutPluginConnectionInput;
866
+ upsert?: Prisma.ShipUpsertWithoutPluginConnectionInput;
867
+ connect?: Prisma.ShipWhereUniqueInput;
868
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutPluginConnectionInput, Prisma.ShipUpdateWithoutPluginConnectionInput>, Prisma.ShipUncheckedUpdateWithoutPluginConnectionInput>;
869
+ };
749
870
  export type ShipCreateNestedOneWithoutCredentialsInput = {
750
871
  create?: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
751
872
  connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCredentialsInput;
@@ -876,6 +997,8 @@ export type ShipCreateWithoutFleetInput = {
876
997
  commissionedBy?: string | null;
877
998
  commissionKey?: string | null;
878
999
  commissionRequestHash?: string | null;
1000
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1001
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
879
1002
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
880
1003
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
881
1004
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -895,6 +1018,8 @@ export type ShipCreateWithoutFleetInput = {
895
1018
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
896
1019
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
897
1020
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1021
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1022
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
898
1023
  };
899
1024
  export type ShipUncheckedCreateWithoutFleetInput = {
900
1025
  id: string;
@@ -908,6 +1033,8 @@ export type ShipUncheckedCreateWithoutFleetInput = {
908
1033
  commissionedBy?: string | null;
909
1034
  commissionKey?: string | null;
910
1035
  commissionRequestHash?: string | null;
1036
+ ownerShipId?: string | null;
1037
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
911
1038
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
912
1039
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
913
1040
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -927,6 +1054,8 @@ export type ShipUncheckedCreateWithoutFleetInput = {
927
1054
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
928
1055
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
929
1056
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1057
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1058
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
930
1059
  };
931
1060
  export type ShipCreateOrConnectWithoutFleetInput = {
932
1061
  where: Prisma.ShipWhereUniqueInput;
@@ -965,6 +1094,256 @@ export type ShipScalarWhereInput = {
965
1094
  commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
966
1095
  commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
967
1096
  commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
1097
+ ownerShipId?: Prisma.StringNullableFilter<"Ship"> | string | null;
1098
+ };
1099
+ export type ShipCreateWithoutOwnedShipsInput = {
1100
+ id: string;
1101
+ name: string;
1102
+ type: string;
1103
+ kind: $Enums.ShipKind;
1104
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1105
+ note?: string | null;
1106
+ createdAt: Date | string;
1107
+ retiredAt?: Date | string | null;
1108
+ commissionedBy?: string | null;
1109
+ commissionKey?: string | null;
1110
+ commissionRequestHash?: string | null;
1111
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1112
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1113
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1114
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1115
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1116
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1117
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1118
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1119
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
1120
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1121
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1122
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1123
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1124
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1125
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
1126
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1127
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1128
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
1129
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1130
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1131
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1132
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1133
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1134
+ };
1135
+ export type ShipUncheckedCreateWithoutOwnedShipsInput = {
1136
+ id: string;
1137
+ fleetId: string;
1138
+ name: string;
1139
+ type: string;
1140
+ kind: $Enums.ShipKind;
1141
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1142
+ note?: string | null;
1143
+ createdAt: Date | string;
1144
+ retiredAt?: Date | string | null;
1145
+ commissionedBy?: string | null;
1146
+ commissionKey?: string | null;
1147
+ commissionRequestHash?: string | null;
1148
+ ownerShipId?: string | null;
1149
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1150
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1151
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1152
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1153
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1154
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1155
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
1156
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1157
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1158
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1159
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1160
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1161
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
1162
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
1163
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
1164
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
1165
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1166
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1167
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1168
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1169
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1170
+ };
1171
+ export type ShipCreateOrConnectWithoutOwnedShipsInput = {
1172
+ where: Prisma.ShipWhereUniqueInput;
1173
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
1174
+ };
1175
+ export type ShipCreateWithoutOwnerInput = {
1176
+ id: string;
1177
+ name: string;
1178
+ type: string;
1179
+ kind: $Enums.ShipKind;
1180
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1181
+ note?: string | null;
1182
+ createdAt: Date | string;
1183
+ retiredAt?: Date | string | null;
1184
+ commissionedBy?: string | null;
1185
+ commissionKey?: string | null;
1186
+ commissionRequestHash?: string | null;
1187
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1188
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1189
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1190
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1191
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1192
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1193
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1194
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1195
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
1196
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1197
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1198
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1199
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1200
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1201
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
1202
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1203
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1204
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
1205
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1206
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1207
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1208
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1209
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1210
+ };
1211
+ export type ShipUncheckedCreateWithoutOwnerInput = {
1212
+ id: string;
1213
+ name: string;
1214
+ type: string;
1215
+ kind: $Enums.ShipKind;
1216
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1217
+ note?: string | null;
1218
+ createdAt: Date | string;
1219
+ retiredAt?: Date | string | null;
1220
+ commissionedBy?: string | null;
1221
+ commissionKey?: string | null;
1222
+ commissionRequestHash?: string | null;
1223
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1224
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1225
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1226
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1227
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1228
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1229
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1230
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
1231
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1232
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1233
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1234
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1235
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1236
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
1237
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
1238
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
1239
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
1240
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1241
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1242
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1243
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1244
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1245
+ };
1246
+ export type ShipCreateOrConnectWithoutOwnerInput = {
1247
+ where: Prisma.ShipWhereUniqueInput;
1248
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput>;
1249
+ };
1250
+ export type ShipCreateManyOwnerInputEnvelope = {
1251
+ data: Prisma.ShipCreateManyOwnerInput | Prisma.ShipCreateManyOwnerInput[];
1252
+ skipDuplicates?: boolean;
1253
+ };
1254
+ export type ShipUpsertWithoutOwnedShipsInput = {
1255
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedShipsInput, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
1256
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedShipsInput, Prisma.ShipUncheckedCreateWithoutOwnedShipsInput>;
1257
+ where?: Prisma.ShipWhereInput;
1258
+ };
1259
+ export type ShipUpdateToOneWithWhereWithoutOwnedShipsInput = {
1260
+ where?: Prisma.ShipWhereInput;
1261
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedShipsInput, Prisma.ShipUncheckedUpdateWithoutOwnedShipsInput>;
1262
+ };
1263
+ export type ShipUpdateWithoutOwnedShipsInput = {
1264
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1265
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1266
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1267
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1268
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1269
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1270
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1271
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1272
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1273
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1274
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1276
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1277
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1278
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1279
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1280
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1281
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1282
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1283
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
1284
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1285
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1286
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1287
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1288
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1289
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
1290
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
1291
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
1292
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
1293
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1294
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1295
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1296
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1297
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1298
+ };
1299
+ export type ShipUncheckedUpdateWithoutOwnedShipsInput = {
1300
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1301
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1302
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1303
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1304
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1305
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1306
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1307
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1308
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1309
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1310
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1311
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1312
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1313
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1314
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1315
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1316
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1317
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1318
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1319
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
1320
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1321
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1322
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1323
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1324
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1325
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
1326
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
1327
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
1328
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
1329
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1330
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1331
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1332
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1333
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1334
+ };
1335
+ export type ShipUpsertWithWhereUniqueWithoutOwnerInput = {
1336
+ where: Prisma.ShipWhereUniqueInput;
1337
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnerInput, Prisma.ShipUncheckedUpdateWithoutOwnerInput>;
1338
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnerInput, Prisma.ShipUncheckedCreateWithoutOwnerInput>;
1339
+ };
1340
+ export type ShipUpdateWithWhereUniqueWithoutOwnerInput = {
1341
+ where: Prisma.ShipWhereUniqueInput;
1342
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnerInput, Prisma.ShipUncheckedUpdateWithoutOwnerInput>;
1343
+ };
1344
+ export type ShipUpdateManyWithWhereWithoutOwnerInput = {
1345
+ where: Prisma.ShipScalarWhereInput;
1346
+ data: Prisma.XOR<Prisma.ShipUpdateManyMutationInput, Prisma.ShipUncheckedUpdateManyWithoutOwnerInput>;
968
1347
  };
969
1348
  export type ShipCreateWithoutLeasesInput = {
970
1349
  id: string;
@@ -979,6 +1358,8 @@ export type ShipCreateWithoutLeasesInput = {
979
1358
  commissionKey?: string | null;
980
1359
  commissionRequestHash?: string | null;
981
1360
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1361
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1362
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
982
1363
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
983
1364
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
984
1365
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -997,6 +1378,8 @@ export type ShipCreateWithoutLeasesInput = {
997
1378
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
998
1379
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
999
1380
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1381
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1382
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1000
1383
  };
1001
1384
  export type ShipUncheckedCreateWithoutLeasesInput = {
1002
1385
  id: string;
@@ -1011,6 +1394,8 @@ export type ShipUncheckedCreateWithoutLeasesInput = {
1011
1394
  commissionedBy?: string | null;
1012
1395
  commissionKey?: string | null;
1013
1396
  commissionRequestHash?: string | null;
1397
+ ownerShipId?: string | null;
1398
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1014
1399
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1015
1400
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1016
1401
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -1029,6 +1414,8 @@ export type ShipUncheckedCreateWithoutLeasesInput = {
1029
1414
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1030
1415
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1031
1416
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1417
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1418
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1032
1419
  };
1033
1420
  export type ShipCreateOrConnectWithoutLeasesInput = {
1034
1421
  where: Prisma.ShipWhereUniqueInput;
@@ -1056,6 +1443,8 @@ export type ShipUpdateWithoutLeasesInput = {
1056
1443
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
1444
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
1445
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1446
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1447
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1059
1448
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1060
1449
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1061
1450
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -1074,6 +1463,8 @@ export type ShipUpdateWithoutLeasesInput = {
1074
1463
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1075
1464
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1076
1465
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1466
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1467
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1077
1468
  };
1078
1469
  export type ShipUncheckedUpdateWithoutLeasesInput = {
1079
1470
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1088,6 +1479,8 @@ export type ShipUncheckedUpdateWithoutLeasesInput = {
1088
1479
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1089
1480
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1090
1481
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1482
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1483
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1091
1484
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1092
1485
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1093
1486
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -1106,6 +1499,8 @@ export type ShipUncheckedUpdateWithoutLeasesInput = {
1106
1499
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1107
1500
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1108
1501
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1502
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1503
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1109
1504
  };
1110
1505
  export type ShipCreateWithoutCrewRequestInput = {
1111
1506
  id: string;
@@ -1120,6 +1515,8 @@ export type ShipCreateWithoutCrewRequestInput = {
1120
1515
  commissionKey?: string | null;
1121
1516
  commissionRequestHash?: string | null;
1122
1517
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1518
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1519
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1123
1520
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1124
1521
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1125
1522
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1138,6 +1535,8 @@ export type ShipCreateWithoutCrewRequestInput = {
1138
1535
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1139
1536
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1140
1537
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1538
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1539
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1141
1540
  };
1142
1541
  export type ShipUncheckedCreateWithoutCrewRequestInput = {
1143
1542
  id: string;
@@ -1152,6 +1551,8 @@ export type ShipUncheckedCreateWithoutCrewRequestInput = {
1152
1551
  commissionedBy?: string | null;
1153
1552
  commissionKey?: string | null;
1154
1553
  commissionRequestHash?: string | null;
1554
+ ownerShipId?: string | null;
1555
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1155
1556
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1156
1557
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1157
1558
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1170,6 +1571,8 @@ export type ShipUncheckedCreateWithoutCrewRequestInput = {
1170
1571
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1171
1572
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1172
1573
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1574
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1575
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1173
1576
  };
1174
1577
  export type ShipCreateOrConnectWithoutCrewRequestInput = {
1175
1578
  where: Prisma.ShipWhereUniqueInput;
@@ -1188,6 +1591,8 @@ export type ShipCreateWithoutAssignedCrewsInput = {
1188
1591
  commissionKey?: string | null;
1189
1592
  commissionRequestHash?: string | null;
1190
1593
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1594
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1595
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1191
1596
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1192
1597
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1193
1598
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1206,6 +1611,8 @@ export type ShipCreateWithoutAssignedCrewsInput = {
1206
1611
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1207
1612
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1208
1613
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1614
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1615
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1209
1616
  };
1210
1617
  export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1211
1618
  id: string;
@@ -1220,6 +1627,8 @@ export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1220
1627
  commissionedBy?: string | null;
1221
1628
  commissionKey?: string | null;
1222
1629
  commissionRequestHash?: string | null;
1630
+ ownerShipId?: string | null;
1631
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1223
1632
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1224
1633
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1225
1634
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1238,6 +1647,8 @@ export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
1238
1647
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1239
1648
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1240
1649
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1650
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1651
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1241
1652
  };
1242
1653
  export type ShipCreateOrConnectWithoutAssignedCrewsInput = {
1243
1654
  where: Prisma.ShipWhereUniqueInput;
@@ -1265,6 +1676,8 @@ export type ShipUpdateWithoutCrewRequestInput = {
1265
1676
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1266
1677
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1267
1678
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1679
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1680
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1268
1681
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1269
1682
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1270
1683
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1283,6 +1696,8 @@ export type ShipUpdateWithoutCrewRequestInput = {
1283
1696
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1284
1697
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1285
1698
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1699
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1700
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1286
1701
  };
1287
1702
  export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1288
1703
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1297,6 +1712,8 @@ export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1297
1712
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1298
1713
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1299
1714
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1715
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1716
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1300
1717
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1301
1718
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1302
1719
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1315,6 +1732,8 @@ export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1315
1732
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1316
1733
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1317
1734
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1735
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1736
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1318
1737
  };
1319
1738
  export type ShipUpsertWithoutAssignedCrewsInput = {
1320
1739
  update: Prisma.XOR<Prisma.ShipUpdateWithoutAssignedCrewsInput, Prisma.ShipUncheckedUpdateWithoutAssignedCrewsInput>;
@@ -1338,6 +1757,8 @@ export type ShipUpdateWithoutAssignedCrewsInput = {
1338
1757
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1339
1758
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1340
1759
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1760
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1761
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1341
1762
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1342
1763
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1343
1764
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1356,6 +1777,8 @@ export type ShipUpdateWithoutAssignedCrewsInput = {
1356
1777
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1357
1778
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1358
1779
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1780
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1781
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1359
1782
  };
1360
1783
  export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1361
1784
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1370,6 +1793,8 @@ export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1370
1793
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1371
1794
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1372
1795
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1796
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1797
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1373
1798
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1374
1799
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1375
1800
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1388,6 +1813,8 @@ export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1388
1813
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1389
1814
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1390
1815
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1816
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1817
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1391
1818
  };
1392
1819
  export type ShipCreateWithoutGivenBackCrewsInput = {
1393
1820
  id: string;
@@ -1402,6 +1829,8 @@ export type ShipCreateWithoutGivenBackCrewsInput = {
1402
1829
  commissionKey?: string | null;
1403
1830
  commissionRequestHash?: string | null;
1404
1831
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1832
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1833
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1405
1834
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1406
1835
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1407
1836
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1420,6 +1849,8 @@ export type ShipCreateWithoutGivenBackCrewsInput = {
1420
1849
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1421
1850
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1422
1851
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
1852
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
1853
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1423
1854
  };
1424
1855
  export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1425
1856
  id: string;
@@ -1434,6 +1865,8 @@ export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1434
1865
  commissionedBy?: string | null;
1435
1866
  commissionKey?: string | null;
1436
1867
  commissionRequestHash?: string | null;
1868
+ ownerShipId?: string | null;
1869
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1437
1870
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1438
1871
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1439
1872
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1452,6 +1885,8 @@ export type ShipUncheckedCreateWithoutGivenBackCrewsInput = {
1452
1885
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1453
1886
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1454
1887
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
1888
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
1889
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1455
1890
  };
1456
1891
  export type ShipCreateOrConnectWithoutGivenBackCrewsInput = {
1457
1892
  where: Prisma.ShipWhereUniqueInput;
@@ -1479,6 +1914,8 @@ export type ShipUpdateWithoutGivenBackCrewsInput = {
1479
1914
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1480
1915
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1481
1916
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1917
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
1918
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1482
1919
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1483
1920
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1484
1921
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1497,6 +1934,8 @@ export type ShipUpdateWithoutGivenBackCrewsInput = {
1497
1934
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1498
1935
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1499
1936
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
1937
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
1938
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1500
1939
  };
1501
1940
  export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1502
1941
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1511,6 +1950,8 @@ export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1511
1950
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1512
1951
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1513
1952
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1953
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1954
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1514
1955
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1515
1956
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1516
1957
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1529,6 +1970,8 @@ export type ShipUncheckedUpdateWithoutGivenBackCrewsInput = {
1529
1970
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1530
1971
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1531
1972
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
1973
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
1974
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1532
1975
  };
1533
1976
  export type ShipCreateWithoutClearRequestsInput = {
1534
1977
  id: string;
@@ -1543,6 +1986,8 @@ export type ShipCreateWithoutClearRequestsInput = {
1543
1986
  commissionKey?: string | null;
1544
1987
  commissionRequestHash?: string | null;
1545
1988
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1989
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
1990
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1546
1991
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1547
1992
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1548
1993
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1561,6 +2006,8 @@ export type ShipCreateWithoutClearRequestsInput = {
1561
2006
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1562
2007
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1563
2008
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2009
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2010
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1564
2011
  };
1565
2012
  export type ShipUncheckedCreateWithoutClearRequestsInput = {
1566
2013
  id: string;
@@ -1575,6 +2022,8 @@ export type ShipUncheckedCreateWithoutClearRequestsInput = {
1575
2022
  commissionedBy?: string | null;
1576
2023
  commissionKey?: string | null;
1577
2024
  commissionRequestHash?: string | null;
2025
+ ownerShipId?: string | null;
2026
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1578
2027
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1579
2028
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1580
2029
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1593,6 +2042,8 @@ export type ShipUncheckedCreateWithoutClearRequestsInput = {
1593
2042
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1594
2043
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1595
2044
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2045
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2046
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1596
2047
  };
1597
2048
  export type ShipCreateOrConnectWithoutClearRequestsInput = {
1598
2049
  where: Prisma.ShipWhereUniqueInput;
@@ -1611,6 +2062,8 @@ export type ShipCreateWithoutClearedWorktreesInput = {
1611
2062
  commissionKey?: string | null;
1612
2063
  commissionRequestHash?: string | null;
1613
2064
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2065
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2066
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1614
2067
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1615
2068
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1616
2069
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1629,6 +2082,8 @@ export type ShipCreateWithoutClearedWorktreesInput = {
1629
2082
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1630
2083
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1631
2084
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2085
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2086
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1632
2087
  };
1633
2088
  export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1634
2089
  id: string;
@@ -1643,6 +2098,8 @@ export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1643
2098
  commissionedBy?: string | null;
1644
2099
  commissionKey?: string | null;
1645
2100
  commissionRequestHash?: string | null;
2101
+ ownerShipId?: string | null;
2102
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1646
2103
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1647
2104
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1648
2105
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1661,6 +2118,8 @@ export type ShipUncheckedCreateWithoutClearedWorktreesInput = {
1661
2118
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1662
2119
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1663
2120
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2121
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2122
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1664
2123
  };
1665
2124
  export type ShipCreateOrConnectWithoutClearedWorktreesInput = {
1666
2125
  where: Prisma.ShipWhereUniqueInput;
@@ -1679,6 +2138,8 @@ export type ShipCreateWithoutRequestedClearsInput = {
1679
2138
  commissionKey?: string | null;
1680
2139
  commissionRequestHash?: string | null;
1681
2140
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2141
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2142
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1682
2143
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1683
2144
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1684
2145
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1697,6 +2158,8 @@ export type ShipCreateWithoutRequestedClearsInput = {
1697
2158
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1698
2159
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1699
2160
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2161
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2162
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1700
2163
  };
1701
2164
  export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1702
2165
  id: string;
@@ -1711,6 +2174,8 @@ export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1711
2174
  commissionedBy?: string | null;
1712
2175
  commissionKey?: string | null;
1713
2176
  commissionRequestHash?: string | null;
2177
+ ownerShipId?: string | null;
2178
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
1714
2179
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1715
2180
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1716
2181
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -1729,6 +2194,8 @@ export type ShipUncheckedCreateWithoutRequestedClearsInput = {
1729
2194
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
1730
2195
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
1731
2196
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2197
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2198
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1732
2199
  };
1733
2200
  export type ShipCreateOrConnectWithoutRequestedClearsInput = {
1734
2201
  where: Prisma.ShipWhereUniqueInput;
@@ -1756,6 +2223,8 @@ export type ShipUpdateWithoutClearRequestsInput = {
1756
2223
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
2224
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
2225
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2226
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2227
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1759
2228
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1760
2229
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1761
2230
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1774,6 +2243,8 @@ export type ShipUpdateWithoutClearRequestsInput = {
1774
2243
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1775
2244
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1776
2245
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2246
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2247
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1777
2248
  };
1778
2249
  export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1779
2250
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1788,6 +2259,8 @@ export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1788
2259
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1789
2260
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1790
2261
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2262
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2263
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1791
2264
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1792
2265
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1793
2266
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1806,6 +2279,8 @@ export type ShipUncheckedUpdateWithoutClearRequestsInput = {
1806
2279
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1807
2280
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1808
2281
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2282
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2283
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1809
2284
  };
1810
2285
  export type ShipUpsertWithoutClearedWorktreesInput = {
1811
2286
  update: Prisma.XOR<Prisma.ShipUpdateWithoutClearedWorktreesInput, Prisma.ShipUncheckedUpdateWithoutClearedWorktreesInput>;
@@ -1829,6 +2304,8 @@ export type ShipUpdateWithoutClearedWorktreesInput = {
1829
2304
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1830
2305
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1831
2306
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2307
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2308
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1832
2309
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1833
2310
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1834
2311
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1847,6 +2324,8 @@ export type ShipUpdateWithoutClearedWorktreesInput = {
1847
2324
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1848
2325
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1849
2326
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2327
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2328
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1850
2329
  };
1851
2330
  export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1852
2331
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1861,6 +2340,8 @@ export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1861
2340
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1862
2341
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1863
2342
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2343
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2344
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1864
2345
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1865
2346
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1866
2347
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1879,17 +2360,333 @@ export type ShipUncheckedUpdateWithoutClearedWorktreesInput = {
1879
2360
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1880
2361
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1881
2362
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2363
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2364
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2365
+ };
2366
+ export type ShipUpsertWithoutRequestedClearsInput = {
2367
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2368
+ create: Prisma.XOR<Prisma.ShipCreateWithoutRequestedClearsInput, Prisma.ShipUncheckedCreateWithoutRequestedClearsInput>;
2369
+ where?: Prisma.ShipWhereInput;
2370
+ };
2371
+ export type ShipUpdateToOneWithWhereWithoutRequestedClearsInput = {
2372
+ where?: Prisma.ShipWhereInput;
2373
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2374
+ };
2375
+ export type ShipUpdateWithoutRequestedClearsInput = {
2376
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2377
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2378
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2379
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2380
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2381
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2383
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2384
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2385
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2386
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2387
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2388
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2389
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2390
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2391
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2392
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2393
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
2394
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
2395
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
2396
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
2397
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
2398
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
2399
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
2400
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
2401
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
2402
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
2403
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
2404
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2405
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2406
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2407
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2408
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2409
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2410
+ };
2411
+ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
2412
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2413
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2414
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2415
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2416
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2417
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2418
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2419
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2420
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2421
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2422
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2423
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2424
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2425
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2426
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2427
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2428
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2429
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
2430
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
2431
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
2432
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
2433
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
2434
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
2435
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
2436
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
2437
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
2438
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
2439
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
2440
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2441
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2442
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2443
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2444
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2445
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2446
+ };
2447
+ export type ShipCreateWithoutOwnedLabelsInput = {
2448
+ id: string;
2449
+ name: string;
2450
+ type: string;
2451
+ kind: $Enums.ShipKind;
2452
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2453
+ note?: string | null;
2454
+ createdAt: Date | string;
2455
+ retiredAt?: Date | string | null;
2456
+ commissionedBy?: string | null;
2457
+ commissionKey?: string | null;
2458
+ commissionRequestHash?: string | null;
2459
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2460
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2461
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2462
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2463
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2464
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
2465
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
2466
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
2467
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
2468
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
2469
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
2470
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
2471
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
2472
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
2473
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
2474
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
2475
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
2476
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
2477
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2478
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2479
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2480
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2481
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2482
+ };
2483
+ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2484
+ id: string;
2485
+ fleetId: string;
2486
+ name: string;
2487
+ type: string;
2488
+ kind: $Enums.ShipKind;
2489
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2490
+ note?: string | null;
2491
+ createdAt: Date | string;
2492
+ retiredAt?: Date | string | null;
2493
+ commissionedBy?: string | null;
2494
+ commissionKey?: string | null;
2495
+ commissionRequestHash?: string | null;
2496
+ ownerShipId?: string | null;
2497
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2498
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2499
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2500
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
2501
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
2502
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
2503
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
2504
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
2505
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
2506
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
2507
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
2508
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
2509
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
2510
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
2511
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
2512
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2513
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2514
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2515
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2516
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2517
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2518
+ };
2519
+ export type ShipCreateOrConnectWithoutOwnedLabelsInput = {
2520
+ where: Prisma.ShipWhereUniqueInput;
2521
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2522
+ };
2523
+ export type ShipUpsertWithoutOwnedLabelsInput = {
2524
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2525
+ create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2526
+ where?: Prisma.ShipWhereInput;
2527
+ };
2528
+ export type ShipUpdateToOneWithWhereWithoutOwnedLabelsInput = {
2529
+ where?: Prisma.ShipWhereInput;
2530
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2531
+ };
2532
+ export type ShipUpdateWithoutOwnedLabelsInput = {
2533
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2534
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2535
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2536
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2537
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2538
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2539
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2540
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2541
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2542
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2543
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2544
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2545
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2546
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2547
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2548
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2549
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2550
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
2551
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
2552
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
2553
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
2554
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
2555
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
2556
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
2557
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
2558
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
2559
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
2560
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
2561
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2562
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2563
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2564
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2565
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2566
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2567
+ };
2568
+ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2569
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2570
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2571
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2572
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2573
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2574
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2575
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2576
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2577
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2578
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2579
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2580
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2581
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2582
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2583
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2584
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2585
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2586
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
2587
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
2588
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
2589
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
2590
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
2591
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
2592
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
2593
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
2594
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
2595
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
2596
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
2597
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2598
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2599
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2600
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2601
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2602
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2603
+ };
2604
+ export type ShipCreateWithoutLabelsInput = {
2605
+ id: string;
2606
+ name: string;
2607
+ type: string;
2608
+ kind: $Enums.ShipKind;
2609
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2610
+ note?: string | null;
2611
+ createdAt: Date | string;
2612
+ retiredAt?: Date | string | null;
2613
+ commissionedBy?: string | null;
2614
+ commissionKey?: string | null;
2615
+ commissionRequestHash?: string | null;
2616
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2617
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2618
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2619
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2620
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2621
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
2622
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
2623
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
2624
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
2625
+ overdueDeliveries?: Prisma.OverdueDeliveryCreateNestedManyWithoutShipInput;
2626
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
2627
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
2628
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
2629
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
2630
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
2631
+ givenBackCrews?: Prisma.CrewRequestGiveBackCreateNestedManyWithoutTrierarchInput;
2632
+ clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
2633
+ clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
2634
+ requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2635
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2636
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2637
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2638
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2639
+ };
2640
+ export type ShipUncheckedCreateWithoutLabelsInput = {
2641
+ id: string;
2642
+ fleetId: string;
2643
+ name: string;
2644
+ type: string;
2645
+ kind: $Enums.ShipKind;
2646
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2647
+ note?: string | null;
2648
+ createdAt: Date | string;
2649
+ retiredAt?: Date | string | null;
2650
+ commissionedBy?: string | null;
2651
+ commissionKey?: string | null;
2652
+ commissionRequestHash?: string | null;
2653
+ ownerShipId?: string | null;
2654
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2655
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2656
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2657
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
2658
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
2659
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
2660
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
2661
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedCreateNestedManyWithoutShipInput;
2662
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
2663
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
2664
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
2665
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
2666
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
2667
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedCreateNestedManyWithoutTrierarchInput;
2668
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
2669
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2670
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2671
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2672
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2673
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2674
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
1882
2675
  };
1883
- export type ShipUpsertWithoutRequestedClearsInput = {
1884
- update: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
1885
- create: Prisma.XOR<Prisma.ShipCreateWithoutRequestedClearsInput, Prisma.ShipUncheckedCreateWithoutRequestedClearsInput>;
2676
+ export type ShipCreateOrConnectWithoutLabelsInput = {
2677
+ where: Prisma.ShipWhereUniqueInput;
2678
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2679
+ };
2680
+ export type ShipUpsertWithoutLabelsInput = {
2681
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2682
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
1886
2683
  where?: Prisma.ShipWhereInput;
1887
2684
  };
1888
- export type ShipUpdateToOneWithWhereWithoutRequestedClearsInput = {
2685
+ export type ShipUpdateToOneWithWhereWithoutLabelsInput = {
1889
2686
  where?: Prisma.ShipWhereInput;
1890
- data: Prisma.XOR<Prisma.ShipUpdateWithoutRequestedClearsInput, Prisma.ShipUncheckedUpdateWithoutRequestedClearsInput>;
2687
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
1891
2688
  };
1892
- export type ShipUpdateWithoutRequestedClearsInput = {
2689
+ export type ShipUpdateWithoutLabelsInput = {
1893
2690
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1894
2691
  name?: Prisma.StringFieldUpdateOperationsInput | string;
1895
2692
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1902,6 +2699,8 @@ export type ShipUpdateWithoutRequestedClearsInput = {
1902
2699
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1903
2700
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1904
2701
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2702
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2703
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
1905
2704
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1906
2705
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1907
2706
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -1917,11 +2716,13 @@ export type ShipUpdateWithoutRequestedClearsInput = {
1917
2716
  givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
1918
2717
  clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
1919
2718
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2719
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
1920
2720
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
1921
- labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
1922
2721
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2722
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2723
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
1923
2724
  };
1924
- export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
2725
+ export type ShipUncheckedUpdateWithoutLabelsInput = {
1925
2726
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1926
2727
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1927
2728
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1934,6 +2735,8 @@ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
1934
2735
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1935
2736
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1936
2737
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2738
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2739
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
1937
2740
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1938
2741
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1939
2742
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -1949,11 +2752,13 @@ export type ShipUncheckedUpdateWithoutRequestedClearsInput = {
1949
2752
  givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
1950
2753
  clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
1951
2754
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2755
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
1952
2756
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
1953
- labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
1954
2757
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2758
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2759
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
1955
2760
  };
1956
- export type ShipCreateWithoutOwnedLabelsInput = {
2761
+ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
1957
2762
  id: string;
1958
2763
  name: string;
1959
2764
  type: string;
@@ -1966,6 +2771,8 @@ export type ShipCreateWithoutOwnedLabelsInput = {
1966
2771
  commissionKey?: string | null;
1967
2772
  commissionRequestHash?: string | null;
1968
2773
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2774
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2775
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
1969
2776
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1970
2777
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1971
2778
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -1982,10 +2789,12 @@ export type ShipCreateWithoutOwnedLabelsInput = {
1982
2789
  clearRequests?: Prisma.WorktreeClearRequestCreateNestedManyWithoutTrierarchInput;
1983
2790
  clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
1984
2791
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2792
+ ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
1985
2793
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
1986
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2794
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2795
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
1987
2796
  };
1988
- export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2797
+ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
1989
2798
  id: string;
1990
2799
  fleetId: string;
1991
2800
  name: string;
@@ -1998,6 +2807,8 @@ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
1998
2807
  commissionedBy?: string | null;
1999
2808
  commissionKey?: string | null;
2000
2809
  commissionRequestHash?: string | null;
2810
+ ownerShipId?: string | null;
2811
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2001
2812
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2002
2813
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2003
2814
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2014,23 +2825,25 @@ export type ShipUncheckedCreateWithoutOwnedLabelsInput = {
2014
2825
  clearRequests?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutTrierarchInput;
2015
2826
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2016
2827
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2828
+ ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2017
2829
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2018
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2830
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2831
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2019
2832
  };
2020
- export type ShipCreateOrConnectWithoutOwnedLabelsInput = {
2833
+ export type ShipCreateOrConnectWithoutDeclaredNetworkRulesInput = {
2021
2834
  where: Prisma.ShipWhereUniqueInput;
2022
- create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2835
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2023
2836
  };
2024
- export type ShipUpsertWithoutOwnedLabelsInput = {
2025
- update: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2026
- create: Prisma.XOR<Prisma.ShipCreateWithoutOwnedLabelsInput, Prisma.ShipUncheckedCreateWithoutOwnedLabelsInput>;
2837
+ export type ShipUpsertWithoutDeclaredNetworkRulesInput = {
2838
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2839
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
2027
2840
  where?: Prisma.ShipWhereInput;
2028
2841
  };
2029
- export type ShipUpdateToOneWithWhereWithoutOwnedLabelsInput = {
2842
+ export type ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput = {
2030
2843
  where?: Prisma.ShipWhereInput;
2031
- data: Prisma.XOR<Prisma.ShipUpdateWithoutOwnedLabelsInput, Prisma.ShipUncheckedUpdateWithoutOwnedLabelsInput>;
2844
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2032
2845
  };
2033
- export type ShipUpdateWithoutOwnedLabelsInput = {
2846
+ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2034
2847
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2035
2848
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2036
2849
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2043,6 +2856,8 @@ export type ShipUpdateWithoutOwnedLabelsInput = {
2043
2856
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2044
2857
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2045
2858
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
2859
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
2860
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2046
2861
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2047
2862
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2048
2863
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2059,10 +2874,12 @@ export type ShipUpdateWithoutOwnedLabelsInput = {
2059
2874
  clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
2060
2875
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2061
2876
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2877
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2062
2878
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2063
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
2879
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2880
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2064
2881
  };
2065
- export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2882
+ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2066
2883
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2067
2884
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2068
2885
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2075,6 +2892,8 @@ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2075
2892
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2076
2893
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2077
2894
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2895
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2896
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2078
2897
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2079
2898
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2080
2899
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2091,10 +2910,12 @@ export type ShipUncheckedUpdateWithoutOwnedLabelsInput = {
2091
2910
  clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
2092
2911
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2093
2912
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2913
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2094
2914
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2095
- declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
2915
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2916
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2096
2917
  };
2097
- export type ShipCreateWithoutLabelsInput = {
2918
+ export type ShipCreateWithoutDeclaredNamespaceInput = {
2098
2919
  id: string;
2099
2920
  name: string;
2100
2921
  type: string;
@@ -2107,6 +2928,8 @@ export type ShipCreateWithoutLabelsInput = {
2107
2928
  commissionKey?: string | null;
2108
2929
  commissionRequestHash?: string | null;
2109
2930
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
2931
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
2932
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2110
2933
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2111
2934
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2112
2935
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2124,9 +2947,11 @@ export type ShipCreateWithoutLabelsInput = {
2124
2947
  clearedWorktrees?: Prisma.WorktreeClearRequestCreateNestedManyWithoutShipInput;
2125
2948
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2126
2949
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2950
+ labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2127
2951
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
2952
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2128
2953
  };
2129
- export type ShipUncheckedCreateWithoutLabelsInput = {
2954
+ export type ShipUncheckedCreateWithoutDeclaredNamespaceInput = {
2130
2955
  id: string;
2131
2956
  fleetId: string;
2132
2957
  name: string;
@@ -2139,6 +2964,8 @@ export type ShipUncheckedCreateWithoutLabelsInput = {
2139
2964
  commissionedBy?: string | null;
2140
2965
  commissionKey?: string | null;
2141
2966
  commissionRequestHash?: string | null;
2967
+ ownerShipId?: string | null;
2968
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2142
2969
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2143
2970
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2144
2971
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2156,22 +2983,24 @@ export type ShipUncheckedCreateWithoutLabelsInput = {
2156
2983
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutShipInput;
2157
2984
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2158
2985
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2986
+ labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2159
2987
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
2988
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2160
2989
  };
2161
- export type ShipCreateOrConnectWithoutLabelsInput = {
2990
+ export type ShipCreateOrConnectWithoutDeclaredNamespaceInput = {
2162
2991
  where: Prisma.ShipWhereUniqueInput;
2163
- create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2992
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
2164
2993
  };
2165
- export type ShipUpsertWithoutLabelsInput = {
2166
- update: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
2167
- create: Prisma.XOR<Prisma.ShipCreateWithoutLabelsInput, Prisma.ShipUncheckedCreateWithoutLabelsInput>;
2994
+ export type ShipUpsertWithoutDeclaredNamespaceInput = {
2995
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
2996
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedCreateWithoutDeclaredNamespaceInput>;
2168
2997
  where?: Prisma.ShipWhereInput;
2169
2998
  };
2170
- export type ShipUpdateToOneWithWhereWithoutLabelsInput = {
2999
+ export type ShipUpdateToOneWithWhereWithoutDeclaredNamespaceInput = {
2171
3000
  where?: Prisma.ShipWhereInput;
2172
- data: Prisma.XOR<Prisma.ShipUpdateWithoutLabelsInput, Prisma.ShipUncheckedUpdateWithoutLabelsInput>;
3001
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNamespaceInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNamespaceInput>;
2173
3002
  };
2174
- export type ShipUpdateWithoutLabelsInput = {
3003
+ export type ShipUpdateWithoutDeclaredNamespaceInput = {
2175
3004
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2176
3005
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2177
3006
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2184,6 +3013,8 @@ export type ShipUpdateWithoutLabelsInput = {
2184
3013
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2185
3014
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2186
3015
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3016
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3017
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2187
3018
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2188
3019
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2189
3020
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2201,9 +3032,11 @@ export type ShipUpdateWithoutLabelsInput = {
2201
3032
  clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
2202
3033
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2203
3034
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3035
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2204
3036
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3037
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2205
3038
  };
2206
- export type ShipUncheckedUpdateWithoutLabelsInput = {
3039
+ export type ShipUncheckedUpdateWithoutDeclaredNamespaceInput = {
2207
3040
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2208
3041
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2209
3042
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2216,6 +3049,8 @@ export type ShipUncheckedUpdateWithoutLabelsInput = {
2216
3049
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2217
3050
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2218
3051
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3052
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3053
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2219
3054
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2220
3055
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2221
3056
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2233,9 +3068,11 @@ export type ShipUncheckedUpdateWithoutLabelsInput = {
2233
3068
  clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
2234
3069
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2235
3070
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3071
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2236
3072
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3073
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2237
3074
  };
2238
- export type ShipCreateWithoutDeclaredNetworkRulesInput = {
3075
+ export type ShipCreateWithoutPluginConnectionInput = {
2239
3076
  id: string;
2240
3077
  name: string;
2241
3078
  type: string;
@@ -2248,6 +3085,8 @@ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2248
3085
  commissionKey?: string | null;
2249
3086
  commissionRequestHash?: string | null;
2250
3087
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3088
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3089
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2251
3090
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2252
3091
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2253
3092
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2266,8 +3105,10 @@ export type ShipCreateWithoutDeclaredNetworkRulesInput = {
2266
3105
  requestedClears?: Prisma.WorktreeClearRequestCreateNestedManyWithoutRequesterInput;
2267
3106
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2268
3107
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3108
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3109
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
2269
3110
  };
2270
- export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
3111
+ export type ShipUncheckedCreateWithoutPluginConnectionInput = {
2271
3112
  id: string;
2272
3113
  fleetId: string;
2273
3114
  name: string;
@@ -2280,6 +3121,8 @@ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2280
3121
  commissionedBy?: string | null;
2281
3122
  commissionKey?: string | null;
2282
3123
  commissionRequestHash?: string | null;
3124
+ ownerShipId?: string | null;
3125
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2283
3126
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2284
3127
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2285
3128
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2298,21 +3141,23 @@ export type ShipUncheckedCreateWithoutDeclaredNetworkRulesInput = {
2298
3141
  requestedClears?: Prisma.WorktreeClearRequestUncheckedCreateNestedManyWithoutRequesterInput;
2299
3142
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2300
3143
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3144
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3145
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
2301
3146
  };
2302
- export type ShipCreateOrConnectWithoutDeclaredNetworkRulesInput = {
3147
+ export type ShipCreateOrConnectWithoutPluginConnectionInput = {
2303
3148
  where: Prisma.ShipWhereUniqueInput;
2304
- create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
3149
+ create: Prisma.XOR<Prisma.ShipCreateWithoutPluginConnectionInput, Prisma.ShipUncheckedCreateWithoutPluginConnectionInput>;
2305
3150
  };
2306
- export type ShipUpsertWithoutDeclaredNetworkRulesInput = {
2307
- update: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
2308
- create: Prisma.XOR<Prisma.ShipCreateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedCreateWithoutDeclaredNetworkRulesInput>;
3151
+ export type ShipUpsertWithoutPluginConnectionInput = {
3152
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutPluginConnectionInput, Prisma.ShipUncheckedUpdateWithoutPluginConnectionInput>;
3153
+ create: Prisma.XOR<Prisma.ShipCreateWithoutPluginConnectionInput, Prisma.ShipUncheckedCreateWithoutPluginConnectionInput>;
2309
3154
  where?: Prisma.ShipWhereInput;
2310
3155
  };
2311
- export type ShipUpdateToOneWithWhereWithoutDeclaredNetworkRulesInput = {
3156
+ export type ShipUpdateToOneWithWhereWithoutPluginConnectionInput = {
2312
3157
  where?: Prisma.ShipWhereInput;
2313
- data: Prisma.XOR<Prisma.ShipUpdateWithoutDeclaredNetworkRulesInput, Prisma.ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput>;
3158
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutPluginConnectionInput, Prisma.ShipUncheckedUpdateWithoutPluginConnectionInput>;
2314
3159
  };
2315
- export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
3160
+ export type ShipUpdateWithoutPluginConnectionInput = {
2316
3161
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2317
3162
  name?: Prisma.StringFieldUpdateOperationsInput | string;
2318
3163
  type?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2325,6 +3170,8 @@ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2325
3170
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2326
3171
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2327
3172
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3173
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3174
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2328
3175
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2329
3176
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2330
3177
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2343,8 +3190,10 @@ export type ShipUpdateWithoutDeclaredNetworkRulesInput = {
2343
3190
  requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
2344
3191
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2345
3192
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3193
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3194
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
2346
3195
  };
2347
- export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
3196
+ export type ShipUncheckedUpdateWithoutPluginConnectionInput = {
2348
3197
  id?: Prisma.StringFieldUpdateOperationsInput | string;
2349
3198
  fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
2350
3199
  name?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2357,6 +3206,8 @@ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2357
3206
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2358
3207
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2359
3208
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3209
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3210
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2360
3211
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2361
3212
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2362
3213
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2375,6 +3226,8 @@ export type ShipUncheckedUpdateWithoutDeclaredNetworkRulesInput = {
2375
3226
  requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
2376
3227
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2377
3228
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3229
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3230
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
2378
3231
  };
2379
3232
  export type ShipCreateWithoutCredentialsInput = {
2380
3233
  id: string;
@@ -2389,6 +3242,8 @@ export type ShipCreateWithoutCredentialsInput = {
2389
3242
  commissionKey?: string | null;
2390
3243
  commissionRequestHash?: string | null;
2391
3244
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3245
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3246
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2392
3247
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2393
3248
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
2394
3249
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -2407,6 +3262,8 @@ export type ShipCreateWithoutCredentialsInput = {
2407
3262
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2408
3263
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2409
3264
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3265
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3266
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2410
3267
  };
2411
3268
  export type ShipUncheckedCreateWithoutCredentialsInput = {
2412
3269
  id: string;
@@ -2421,6 +3278,8 @@ export type ShipUncheckedCreateWithoutCredentialsInput = {
2421
3278
  commissionedBy?: string | null;
2422
3279
  commissionKey?: string | null;
2423
3280
  commissionRequestHash?: string | null;
3281
+ ownerShipId?: string | null;
3282
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2424
3283
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2425
3284
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
2426
3285
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -2439,6 +3298,8 @@ export type ShipUncheckedCreateWithoutCredentialsInput = {
2439
3298
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2440
3299
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2441
3300
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3301
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3302
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2442
3303
  };
2443
3304
  export type ShipCreateOrConnectWithoutCredentialsInput = {
2444
3305
  where: Prisma.ShipWhereUniqueInput;
@@ -2466,6 +3327,8 @@ export type ShipUpdateWithoutCredentialsInput = {
2466
3327
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2467
3328
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2468
3329
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3330
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3331
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2469
3332
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2470
3333
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2471
3334
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -2484,6 +3347,8 @@ export type ShipUpdateWithoutCredentialsInput = {
2484
3347
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2485
3348
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2486
3349
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3350
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3351
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2487
3352
  };
2488
3353
  export type ShipUncheckedUpdateWithoutCredentialsInput = {
2489
3354
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2498,6 +3363,8 @@ export type ShipUncheckedUpdateWithoutCredentialsInput = {
2498
3363
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2499
3364
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2500
3365
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3366
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3367
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2501
3368
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2502
3369
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2503
3370
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -2516,6 +3383,8 @@ export type ShipUncheckedUpdateWithoutCredentialsInput = {
2516
3383
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2517
3384
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2518
3385
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3386
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3387
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2519
3388
  };
2520
3389
  export type ShipCreateWithoutSentMessagesInput = {
2521
3390
  id: string;
@@ -2530,6 +3399,8 @@ export type ShipCreateWithoutSentMessagesInput = {
2530
3399
  commissionKey?: string | null;
2531
3400
  commissionRequestHash?: string | null;
2532
3401
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3402
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3403
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2533
3404
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2534
3405
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2535
3406
  addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
@@ -2548,6 +3419,8 @@ export type ShipCreateWithoutSentMessagesInput = {
2548
3419
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2549
3420
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2550
3421
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3422
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3423
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2551
3424
  };
2552
3425
  export type ShipUncheckedCreateWithoutSentMessagesInput = {
2553
3426
  id: string;
@@ -2562,6 +3435,8 @@ export type ShipUncheckedCreateWithoutSentMessagesInput = {
2562
3435
  commissionedBy?: string | null;
2563
3436
  commissionKey?: string | null;
2564
3437
  commissionRequestHash?: string | null;
3438
+ ownerShipId?: string | null;
3439
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2565
3440
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2566
3441
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2567
3442
  addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
@@ -2580,6 +3455,8 @@ export type ShipUncheckedCreateWithoutSentMessagesInput = {
2580
3455
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2581
3456
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2582
3457
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3458
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3459
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2583
3460
  };
2584
3461
  export type ShipCreateOrConnectWithoutSentMessagesInput = {
2585
3462
  where: Prisma.ShipWhereUniqueInput;
@@ -2598,6 +3475,8 @@ export type ShipCreateWithoutAddressedMessagesInput = {
2598
3475
  commissionKey?: string | null;
2599
3476
  commissionRequestHash?: string | null;
2600
3477
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3478
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3479
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2601
3480
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2602
3481
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2603
3482
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2616,6 +3495,8 @@ export type ShipCreateWithoutAddressedMessagesInput = {
2616
3495
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2617
3496
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2618
3497
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3498
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3499
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2619
3500
  };
2620
3501
  export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2621
3502
  id: string;
@@ -2630,6 +3511,8 @@ export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2630
3511
  commissionedBy?: string | null;
2631
3512
  commissionKey?: string | null;
2632
3513
  commissionRequestHash?: string | null;
3514
+ ownerShipId?: string | null;
3515
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2633
3516
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2634
3517
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2635
3518
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2648,6 +3531,8 @@ export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
2648
3531
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2649
3532
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2650
3533
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3534
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3535
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2651
3536
  };
2652
3537
  export type ShipCreateOrConnectWithoutAddressedMessagesInput = {
2653
3538
  where: Prisma.ShipWhereUniqueInput;
@@ -2675,6 +3560,8 @@ export type ShipUpdateWithoutSentMessagesInput = {
2675
3560
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2676
3561
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2677
3562
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3563
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3564
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2678
3565
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2679
3566
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2680
3567
  addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
@@ -2693,6 +3580,8 @@ export type ShipUpdateWithoutSentMessagesInput = {
2693
3580
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2694
3581
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2695
3582
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3583
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3584
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2696
3585
  };
2697
3586
  export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2698
3587
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2707,6 +3596,8 @@ export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2707
3596
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2708
3597
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2709
3598
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3599
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3600
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2710
3601
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2711
3602
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2712
3603
  addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
@@ -2725,6 +3616,8 @@ export type ShipUncheckedUpdateWithoutSentMessagesInput = {
2725
3616
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2726
3617
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2727
3618
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3619
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3620
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2728
3621
  };
2729
3622
  export type ShipUpsertWithoutAddressedMessagesInput = {
2730
3623
  update: Prisma.XOR<Prisma.ShipUpdateWithoutAddressedMessagesInput, Prisma.ShipUncheckedUpdateWithoutAddressedMessagesInput>;
@@ -2748,6 +3641,8 @@ export type ShipUpdateWithoutAddressedMessagesInput = {
2748
3641
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2749
3642
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2750
3643
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3644
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3645
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2751
3646
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2752
3647
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2753
3648
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2766,6 +3661,8 @@ export type ShipUpdateWithoutAddressedMessagesInput = {
2766
3661
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2767
3662
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2768
3663
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3664
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3665
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2769
3666
  };
2770
3667
  export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2771
3668
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2780,6 +3677,8 @@ export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2780
3677
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2781
3678
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2782
3679
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3680
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3681
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2783
3682
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2784
3683
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2785
3684
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -2798,6 +3697,8 @@ export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
2798
3697
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
2799
3698
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
2800
3699
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3700
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3701
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
2801
3702
  };
2802
3703
  export type ShipCreateWithoutDeliveriesInput = {
2803
3704
  id: string;
@@ -2812,6 +3713,8 @@ export type ShipCreateWithoutDeliveriesInput = {
2812
3713
  commissionKey?: string | null;
2813
3714
  commissionRequestHash?: string | null;
2814
3715
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3716
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3717
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2815
3718
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2816
3719
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2817
3720
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2830,6 +3733,8 @@ export type ShipCreateWithoutDeliveriesInput = {
2830
3733
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2831
3734
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2832
3735
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3736
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3737
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2833
3738
  };
2834
3739
  export type ShipUncheckedCreateWithoutDeliveriesInput = {
2835
3740
  id: string;
@@ -2844,6 +3749,8 @@ export type ShipUncheckedCreateWithoutDeliveriesInput = {
2844
3749
  commissionedBy?: string | null;
2845
3750
  commissionKey?: string | null;
2846
3751
  commissionRequestHash?: string | null;
3752
+ ownerShipId?: string | null;
3753
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2847
3754
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2848
3755
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2849
3756
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2862,6 +3769,8 @@ export type ShipUncheckedCreateWithoutDeliveriesInput = {
2862
3769
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2863
3770
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2864
3771
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3772
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3773
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2865
3774
  };
2866
3775
  export type ShipCreateOrConnectWithoutDeliveriesInput = {
2867
3776
  where: Prisma.ShipWhereUniqueInput;
@@ -2880,6 +3789,8 @@ export type ShipCreateWithoutClaimedDeliveriesInput = {
2880
3789
  commissionKey?: string | null;
2881
3790
  commissionRequestHash?: string | null;
2882
3791
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
3792
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
3793
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
2883
3794
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
2884
3795
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
2885
3796
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -2898,6 +3809,8 @@ export type ShipCreateWithoutClaimedDeliveriesInput = {
2898
3809
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
2899
3810
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
2900
3811
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
3812
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
3813
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
2901
3814
  };
2902
3815
  export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2903
3816
  id: string;
@@ -2912,6 +3825,8 @@ export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2912
3825
  commissionedBy?: string | null;
2913
3826
  commissionKey?: string | null;
2914
3827
  commissionRequestHash?: string | null;
3828
+ ownerShipId?: string | null;
3829
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
2915
3830
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
2916
3831
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
2917
3832
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -2930,6 +3845,8 @@ export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
2930
3845
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
2931
3846
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
2932
3847
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
3848
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
3849
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
2933
3850
  };
2934
3851
  export type ShipCreateOrConnectWithoutClaimedDeliveriesInput = {
2935
3852
  where: Prisma.ShipWhereUniqueInput;
@@ -2957,6 +3874,8 @@ export type ShipUpdateWithoutDeliveriesInput = {
2957
3874
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2958
3875
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2959
3876
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3877
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3878
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
2960
3879
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2961
3880
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2962
3881
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -2975,6 +3894,8 @@ export type ShipUpdateWithoutDeliveriesInput = {
2975
3894
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
2976
3895
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
2977
3896
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3897
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3898
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
2978
3899
  };
2979
3900
  export type ShipUncheckedUpdateWithoutDeliveriesInput = {
2980
3901
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2989,6 +3910,8 @@ export type ShipUncheckedUpdateWithoutDeliveriesInput = {
2989
3910
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2990
3911
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2991
3912
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3913
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3914
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
2992
3915
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2993
3916
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2994
3917
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3007,6 +3930,8 @@ export type ShipUncheckedUpdateWithoutDeliveriesInput = {
3007
3930
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3008
3931
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3009
3932
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
3933
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
3934
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3010
3935
  };
3011
3936
  export type ShipUpsertWithoutClaimedDeliveriesInput = {
3012
3937
  update: Prisma.XOR<Prisma.ShipUpdateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutClaimedDeliveriesInput>;
@@ -3030,6 +3955,8 @@ export type ShipUpdateWithoutClaimedDeliveriesInput = {
3030
3955
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3031
3956
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3032
3957
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
3958
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
3959
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3033
3960
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3034
3961
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3035
3962
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3048,6 +3975,8 @@ export type ShipUpdateWithoutClaimedDeliveriesInput = {
3048
3975
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3049
3976
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3050
3977
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
3978
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
3979
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3051
3980
  };
3052
3981
  export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3053
3982
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3062,6 +3991,8 @@ export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3062
3991
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3063
3992
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3064
3993
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3994
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3995
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3065
3996
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3066
3997
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3067
3998
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3080,6 +4011,8 @@ export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
3080
4011
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3081
4012
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3082
4013
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4014
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4015
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3083
4016
  };
3084
4017
  export type ShipCreateWithoutOverdueDeliveriesInput = {
3085
4018
  id: string;
@@ -3094,6 +4027,8 @@ export type ShipCreateWithoutOverdueDeliveriesInput = {
3094
4027
  commissionKey?: string | null;
3095
4028
  commissionRequestHash?: string | null;
3096
4029
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4030
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4031
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3097
4032
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3098
4033
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3099
4034
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3112,6 +4047,8 @@ export type ShipCreateWithoutOverdueDeliveriesInput = {
3112
4047
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3113
4048
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3114
4049
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4050
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
4051
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
3115
4052
  };
3116
4053
  export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3117
4054
  id: string;
@@ -3126,6 +4063,8 @@ export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3126
4063
  commissionedBy?: string | null;
3127
4064
  commissionKey?: string | null;
3128
4065
  commissionRequestHash?: string | null;
4066
+ ownerShipId?: string | null;
4067
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3129
4068
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3130
4069
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3131
4070
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3144,6 +4083,8 @@ export type ShipUncheckedCreateWithoutOverdueDeliveriesInput = {
3144
4083
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3145
4084
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3146
4085
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4086
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
4087
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
3147
4088
  };
3148
4089
  export type ShipCreateOrConnectWithoutOverdueDeliveriesInput = {
3149
4090
  where: Prisma.ShipWhereUniqueInput;
@@ -3171,6 +4112,8 @@ export type ShipUpdateWithoutOverdueDeliveriesInput = {
3171
4112
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3172
4113
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3173
4114
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4115
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4116
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3174
4117
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3175
4118
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3176
4119
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3189,6 +4132,8 @@ export type ShipUpdateWithoutOverdueDeliveriesInput = {
3189
4132
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3190
4133
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3191
4134
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4135
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4136
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3192
4137
  };
3193
4138
  export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3194
4139
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3203,6 +4148,8 @@ export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3203
4148
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3204
4149
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3205
4150
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4151
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4152
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3206
4153
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3207
4154
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3208
4155
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3221,6 +4168,8 @@ export type ShipUncheckedUpdateWithoutOverdueDeliveriesInput = {
3221
4168
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3222
4169
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3223
4170
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4171
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4172
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3224
4173
  };
3225
4174
  export type ShipCreateWithoutActorOfEventsInput = {
3226
4175
  id: string;
@@ -3235,6 +4184,8 @@ export type ShipCreateWithoutActorOfEventsInput = {
3235
4184
  commissionKey?: string | null;
3236
4185
  commissionRequestHash?: string | null;
3237
4186
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4187
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4188
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3238
4189
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3239
4190
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3240
4191
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3253,6 +4204,8 @@ export type ShipCreateWithoutActorOfEventsInput = {
3253
4204
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3254
4205
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3255
4206
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4207
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
4208
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
3256
4209
  };
3257
4210
  export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3258
4211
  id: string;
@@ -3267,6 +4220,8 @@ export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3267
4220
  commissionedBy?: string | null;
3268
4221
  commissionKey?: string | null;
3269
4222
  commissionRequestHash?: string | null;
4223
+ ownerShipId?: string | null;
4224
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3270
4225
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3271
4226
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3272
4227
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3285,6 +4240,8 @@ export type ShipUncheckedCreateWithoutActorOfEventsInput = {
3285
4240
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3286
4241
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3287
4242
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4243
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
4244
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
3288
4245
  };
3289
4246
  export type ShipCreateOrConnectWithoutActorOfEventsInput = {
3290
4247
  where: Prisma.ShipWhereUniqueInput;
@@ -3303,6 +4260,8 @@ export type ShipCreateWithoutEventsInput = {
3303
4260
  commissionKey?: string | null;
3304
4261
  commissionRequestHash?: string | null;
3305
4262
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4263
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4264
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3306
4265
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3307
4266
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3308
4267
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3321,6 +4280,8 @@ export type ShipCreateWithoutEventsInput = {
3321
4280
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3322
4281
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3323
4282
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4283
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
4284
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
3324
4285
  };
3325
4286
  export type ShipUncheckedCreateWithoutEventsInput = {
3326
4287
  id: string;
@@ -3335,6 +4296,8 @@ export type ShipUncheckedCreateWithoutEventsInput = {
3335
4296
  commissionedBy?: string | null;
3336
4297
  commissionKey?: string | null;
3337
4298
  commissionRequestHash?: string | null;
4299
+ ownerShipId?: string | null;
4300
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3338
4301
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3339
4302
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3340
4303
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3353,6 +4316,8 @@ export type ShipUncheckedCreateWithoutEventsInput = {
3353
4316
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3354
4317
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3355
4318
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4319
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
4320
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
3356
4321
  };
3357
4322
  export type ShipCreateOrConnectWithoutEventsInput = {
3358
4323
  where: Prisma.ShipWhereUniqueInput;
@@ -3380,6 +4345,8 @@ export type ShipUpdateWithoutActorOfEventsInput = {
3380
4345
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3381
4346
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3382
4347
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4348
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4349
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3383
4350
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3384
4351
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3385
4352
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3398,6 +4365,8 @@ export type ShipUpdateWithoutActorOfEventsInput = {
3398
4365
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3399
4366
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3400
4367
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4368
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4369
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3401
4370
  };
3402
4371
  export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3403
4372
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3412,6 +4381,8 @@ export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3412
4381
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3413
4382
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3414
4383
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4384
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4385
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3415
4386
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3416
4387
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3417
4388
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3430,6 +4401,8 @@ export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
3430
4401
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3431
4402
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3432
4403
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4404
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4405
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3433
4406
  };
3434
4407
  export type ShipUpsertWithoutEventsInput = {
3435
4408
  update: Prisma.XOR<Prisma.ShipUpdateWithoutEventsInput, Prisma.ShipUncheckedUpdateWithoutEventsInput>;
@@ -3453,6 +4426,8 @@ export type ShipUpdateWithoutEventsInput = {
3453
4426
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3454
4427
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3455
4428
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4429
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4430
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3456
4431
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3457
4432
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3458
4433
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3471,6 +4446,8 @@ export type ShipUpdateWithoutEventsInput = {
3471
4446
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3472
4447
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3473
4448
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4449
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4450
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3474
4451
  };
3475
4452
  export type ShipUncheckedUpdateWithoutEventsInput = {
3476
4453
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3485,6 +4462,8 @@ export type ShipUncheckedUpdateWithoutEventsInput = {
3485
4462
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3486
4463
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3487
4464
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4465
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4466
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3488
4467
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3489
4468
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3490
4469
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3503,6 +4482,8 @@ export type ShipUncheckedUpdateWithoutEventsInput = {
3503
4482
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3504
4483
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3505
4484
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4485
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4486
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3506
4487
  };
3507
4488
  export type ShipCreateWithoutConsoleSessionsInput = {
3508
4489
  id: string;
@@ -3517,6 +4498,8 @@ export type ShipCreateWithoutConsoleSessionsInput = {
3517
4498
  commissionKey?: string | null;
3518
4499
  commissionRequestHash?: string | null;
3519
4500
  fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
4501
+ owner?: Prisma.ShipCreateNestedOneWithoutOwnedShipsInput;
4502
+ ownedShips?: Prisma.ShipCreateNestedManyWithoutOwnerInput;
3520
4503
  leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
3521
4504
  credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
3522
4505
  sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
@@ -3535,6 +4518,8 @@ export type ShipCreateWithoutConsoleSessionsInput = {
3535
4518
  ownedLabels?: Prisma.LabelCreateNestedManyWithoutOwnerInput;
3536
4519
  labels?: Prisma.ShipLabelCreateNestedManyWithoutShipInput;
3537
4520
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesCreateNestedManyWithoutShipInput;
4521
+ declaredNamespace?: Prisma.ScopeNamespaceCreateNestedOneWithoutDeclarerInput;
4522
+ pluginConnection?: Prisma.PluginConnectionCreateNestedOneWithoutShipInput;
3538
4523
  };
3539
4524
  export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3540
4525
  id: string;
@@ -3549,6 +4534,8 @@ export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3549
4534
  commissionedBy?: string | null;
3550
4535
  commissionKey?: string | null;
3551
4536
  commissionRequestHash?: string | null;
4537
+ ownerShipId?: string | null;
4538
+ ownedShips?: Prisma.ShipUncheckedCreateNestedManyWithoutOwnerInput;
3552
4539
  leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
3553
4540
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
3554
4541
  sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
@@ -3567,6 +4554,8 @@ export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
3567
4554
  ownedLabels?: Prisma.LabelUncheckedCreateNestedManyWithoutOwnerInput;
3568
4555
  labels?: Prisma.ShipLabelUncheckedCreateNestedManyWithoutShipInput;
3569
4556
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedCreateNestedManyWithoutShipInput;
4557
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedCreateNestedOneWithoutDeclarerInput;
4558
+ pluginConnection?: Prisma.PluginConnectionUncheckedCreateNestedOneWithoutShipInput;
3570
4559
  };
3571
4560
  export type ShipCreateOrConnectWithoutConsoleSessionsInput = {
3572
4561
  where: Prisma.ShipWhereUniqueInput;
@@ -3594,6 +4583,8 @@ export type ShipUpdateWithoutConsoleSessionsInput = {
3594
4583
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3595
4584
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3596
4585
  fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4586
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4587
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3597
4588
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3598
4589
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3599
4590
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3612,6 +4603,8 @@ export type ShipUpdateWithoutConsoleSessionsInput = {
3612
4603
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3613
4604
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3614
4605
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4606
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4607
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3615
4608
  };
3616
4609
  export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3617
4610
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3626,6 +4619,8 @@ export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3626
4619
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3627
4620
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3628
4621
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4622
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4623
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3629
4624
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3630
4625
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3631
4626
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3644,6 +4639,8 @@ export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
3644
4639
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3645
4640
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3646
4641
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4642
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4643
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3647
4644
  };
3648
4645
  export type ShipCreateManyFleetInput = {
3649
4646
  id: string;
@@ -3657,6 +4654,7 @@ export type ShipCreateManyFleetInput = {
3657
4654
  commissionedBy?: string | null;
3658
4655
  commissionKey?: string | null;
3659
4656
  commissionRequestHash?: string | null;
4657
+ ownerShipId?: string | null;
3660
4658
  };
3661
4659
  export type ShipUpdateWithoutFleetInput = {
3662
4660
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3670,6 +4668,8 @@ export type ShipUpdateWithoutFleetInput = {
3670
4668
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3671
4669
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3672
4670
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4671
+ owner?: Prisma.ShipUpdateOneWithoutOwnedShipsNestedInput;
4672
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
3673
4673
  leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
3674
4674
  credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
3675
4675
  sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
@@ -3689,6 +4689,8 @@ export type ShipUpdateWithoutFleetInput = {
3689
4689
  ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
3690
4690
  labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
3691
4691
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4692
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4693
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
3692
4694
  };
3693
4695
  export type ShipUncheckedUpdateWithoutFleetInput = {
3694
4696
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3702,6 +4704,8 @@ export type ShipUncheckedUpdateWithoutFleetInput = {
3702
4704
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3703
4705
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3704
4706
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4707
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4708
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
3705
4709
  leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
3706
4710
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
3707
4711
  sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
@@ -3721,6 +4725,8 @@ export type ShipUncheckedUpdateWithoutFleetInput = {
3721
4725
  ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
3722
4726
  labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
3723
4727
  declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4728
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4729
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
3724
4730
  };
3725
4731
  export type ShipUncheckedUpdateManyWithoutFleetInput = {
3726
4732
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -3734,11 +4740,110 @@ export type ShipUncheckedUpdateManyWithoutFleetInput = {
3734
4740
  commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3735
4741
  commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3736
4742
  commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4743
+ ownerShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4744
+ };
4745
+ export type ShipCreateManyOwnerInput = {
4746
+ id: string;
4747
+ name: string;
4748
+ type: string;
4749
+ kind: $Enums.ShipKind;
4750
+ scopes?: Prisma.ShipCreatescopesInput | string[];
4751
+ note?: string | null;
4752
+ createdAt: Date | string;
4753
+ retiredAt?: Date | string | null;
4754
+ commissionedBy?: string | null;
4755
+ commissionKey?: string | null;
4756
+ commissionRequestHash?: string | null;
4757
+ };
4758
+ export type ShipUpdateWithoutOwnerInput = {
4759
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4760
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4761
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4762
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4763
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4764
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4765
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4766
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4767
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4768
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4769
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4770
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
4771
+ ownedShips?: Prisma.ShipUpdateManyWithoutOwnerNestedInput;
4772
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
4773
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
4774
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
4775
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
4776
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
4777
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
4778
+ overdueDeliveries?: Prisma.OverdueDeliveryUpdateManyWithoutShipNestedInput;
4779
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
4780
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
4781
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
4782
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
4783
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
4784
+ givenBackCrews?: Prisma.CrewRequestGiveBackUpdateManyWithoutTrierarchNestedInput;
4785
+ clearRequests?: Prisma.WorktreeClearRequestUpdateManyWithoutTrierarchNestedInput;
4786
+ clearedWorktrees?: Prisma.WorktreeClearRequestUpdateManyWithoutShipNestedInput;
4787
+ requestedClears?: Prisma.WorktreeClearRequestUpdateManyWithoutRequesterNestedInput;
4788
+ ownedLabels?: Prisma.LabelUpdateManyWithoutOwnerNestedInput;
4789
+ labels?: Prisma.ShipLabelUpdateManyWithoutShipNestedInput;
4790
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUpdateManyWithoutShipNestedInput;
4791
+ declaredNamespace?: Prisma.ScopeNamespaceUpdateOneWithoutDeclarerNestedInput;
4792
+ pluginConnection?: Prisma.PluginConnectionUpdateOneWithoutShipNestedInput;
4793
+ };
4794
+ export type ShipUncheckedUpdateWithoutOwnerInput = {
4795
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4796
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4797
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4798
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4799
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4800
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4802
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4803
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4804
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4805
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4806
+ ownedShips?: Prisma.ShipUncheckedUpdateManyWithoutOwnerNestedInput;
4807
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
4808
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
4809
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
4810
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
4811
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
4812
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
4813
+ overdueDeliveries?: Prisma.OverdueDeliveryUncheckedUpdateManyWithoutShipNestedInput;
4814
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
4815
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
4816
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
4817
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
4818
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
4819
+ givenBackCrews?: Prisma.CrewRequestGiveBackUncheckedUpdateManyWithoutTrierarchNestedInput;
4820
+ clearRequests?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutTrierarchNestedInput;
4821
+ clearedWorktrees?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutShipNestedInput;
4822
+ requestedClears?: Prisma.WorktreeClearRequestUncheckedUpdateManyWithoutRequesterNestedInput;
4823
+ ownedLabels?: Prisma.LabelUncheckedUpdateManyWithoutOwnerNestedInput;
4824
+ labels?: Prisma.ShipLabelUncheckedUpdateManyWithoutShipNestedInput;
4825
+ declaredNetworkRules?: Prisma.DeclaredNetworkRulesUncheckedUpdateManyWithoutShipNestedInput;
4826
+ declaredNamespace?: Prisma.ScopeNamespaceUncheckedUpdateOneWithoutDeclarerNestedInput;
4827
+ pluginConnection?: Prisma.PluginConnectionUncheckedUpdateOneWithoutShipNestedInput;
4828
+ };
4829
+ export type ShipUncheckedUpdateManyWithoutOwnerInput = {
4830
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
4831
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
4832
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
4833
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
4834
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
4835
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4836
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
4837
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
4838
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4839
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
4840
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3737
4841
  };
3738
4842
  /**
3739
4843
  * Count Type ShipCountOutputType
3740
4844
  */
3741
4845
  export type ShipCountOutputType = {
4846
+ ownedShips: number;
3742
4847
  leases: number;
3743
4848
  credentials: number;
3744
4849
  sentMessages: number;
@@ -3759,6 +4864,7 @@ export type ShipCountOutputType = {
3759
4864
  declaredNetworkRules: number;
3760
4865
  };
3761
4866
  export type ShipCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4867
+ ownedShips?: boolean | ShipCountOutputTypeCountOwnedShipsArgs;
3762
4868
  leases?: boolean | ShipCountOutputTypeCountLeasesArgs;
3763
4869
  credentials?: boolean | ShipCountOutputTypeCountCredentialsArgs;
3764
4870
  sentMessages?: boolean | ShipCountOutputTypeCountSentMessagesArgs;
@@ -3787,6 +4893,12 @@ export type ShipCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensi
3787
4893
  */
3788
4894
  select?: Prisma.ShipCountOutputTypeSelect<ExtArgs> | null;
3789
4895
  };
4896
+ /**
4897
+ * ShipCountOutputType without action
4898
+ */
4899
+ export type ShipCountOutputTypeCountOwnedShipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4900
+ where?: Prisma.ShipWhereInput;
4901
+ };
3790
4902
  /**
3791
4903
  * ShipCountOutputType without action
3792
4904
  */
@@ -3908,7 +5020,10 @@ export type ShipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3908
5020
  commissionedBy?: boolean;
3909
5021
  commissionKey?: boolean;
3910
5022
  commissionRequestHash?: boolean;
5023
+ ownerShipId?: boolean;
3911
5024
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5025
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
5026
+ ownedShips?: boolean | Prisma.Ship$ownedShipsArgs<ExtArgs>;
3912
5027
  leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
3913
5028
  credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
3914
5029
  sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
@@ -3928,6 +5043,8 @@ export type ShipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3928
5043
  ownedLabels?: boolean | Prisma.Ship$ownedLabelsArgs<ExtArgs>;
3929
5044
  labels?: boolean | Prisma.Ship$labelsArgs<ExtArgs>;
3930
5045
  declaredNetworkRules?: boolean | Prisma.Ship$declaredNetworkRulesArgs<ExtArgs>;
5046
+ declaredNamespace?: boolean | Prisma.Ship$declaredNamespaceArgs<ExtArgs>;
5047
+ pluginConnection?: boolean | Prisma.Ship$pluginConnectionArgs<ExtArgs>;
3931
5048
  _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
3932
5049
  }, ExtArgs["result"]["ship"]>;
3933
5050
  export type ShipSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -3943,7 +5060,9 @@ export type ShipSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensio
3943
5060
  commissionedBy?: boolean;
3944
5061
  commissionKey?: boolean;
3945
5062
  commissionRequestHash?: boolean;
5063
+ ownerShipId?: boolean;
3946
5064
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5065
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
3947
5066
  }, ExtArgs["result"]["ship"]>;
3948
5067
  export type ShipSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3949
5068
  id?: boolean;
@@ -3958,7 +5077,9 @@ export type ShipSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensio
3958
5077
  commissionedBy?: boolean;
3959
5078
  commissionKey?: boolean;
3960
5079
  commissionRequestHash?: boolean;
5080
+ ownerShipId?: boolean;
3961
5081
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5082
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
3962
5083
  }, ExtArgs["result"]["ship"]>;
3963
5084
  export type ShipSelectScalar = {
3964
5085
  id?: boolean;
@@ -3973,10 +5094,13 @@ export type ShipSelectScalar = {
3973
5094
  commissionedBy?: boolean;
3974
5095
  commissionKey?: boolean;
3975
5096
  commissionRequestHash?: boolean;
5097
+ ownerShipId?: boolean;
3976
5098
  };
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"]>;
5099
+ 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
5100
  export type ShipInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3979
5101
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5102
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
5103
+ ownedShips?: boolean | Prisma.Ship$ownedShipsArgs<ExtArgs>;
3980
5104
  leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
3981
5105
  credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
3982
5106
  sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
@@ -3996,18 +5120,24 @@ export type ShipInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3996
5120
  ownedLabels?: boolean | Prisma.Ship$ownedLabelsArgs<ExtArgs>;
3997
5121
  labels?: boolean | Prisma.Ship$labelsArgs<ExtArgs>;
3998
5122
  declaredNetworkRules?: boolean | Prisma.Ship$declaredNetworkRulesArgs<ExtArgs>;
5123
+ declaredNamespace?: boolean | Prisma.Ship$declaredNamespaceArgs<ExtArgs>;
5124
+ pluginConnection?: boolean | Prisma.Ship$pluginConnectionArgs<ExtArgs>;
3999
5125
  _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
4000
5126
  };
4001
5127
  export type ShipIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4002
5128
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5129
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4003
5130
  };
4004
5131
  export type ShipIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4005
5132
  fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
5133
+ owner?: boolean | Prisma.Ship$ownerArgs<ExtArgs>;
4006
5134
  };
4007
5135
  export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4008
5136
  name: "Ship";
4009
5137
  objects: {
4010
5138
  fleet: Prisma.$FleetPayload<ExtArgs>;
5139
+ owner: Prisma.$ShipPayload<ExtArgs> | null;
5140
+ ownedShips: Prisma.$ShipPayload<ExtArgs>[];
4011
5141
  leases: Prisma.$LeasePayload<ExtArgs>[];
4012
5142
  credentials: Prisma.$CredentialPayload<ExtArgs>[];
4013
5143
  sentMessages: Prisma.$MessagePayload<ExtArgs>[];
@@ -4027,6 +5157,8 @@ export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
4027
5157
  ownedLabels: Prisma.$LabelPayload<ExtArgs>[];
4028
5158
  labels: Prisma.$ShipLabelPayload<ExtArgs>[];
4029
5159
  declaredNetworkRules: Prisma.$DeclaredNetworkRulesPayload<ExtArgs>[];
5160
+ declaredNamespace: Prisma.$ScopeNamespacePayload<ExtArgs> | null;
5161
+ pluginConnection: Prisma.$PluginConnectionPayload<ExtArgs> | null;
4030
5162
  };
4031
5163
  scalars: runtime.Types.Extensions.GetPayloadResult<{
4032
5164
  id: string;
@@ -4044,6 +5176,10 @@ export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
4044
5176
  commissionedBy: string | null;
4045
5177
  commissionKey: string | null;
4046
5178
  commissionRequestHash: string | null;
5179
+ /**
5180
+ * The ship that answers for it, a person's ship or argo (decision 0045); null for argo and the viewer.
5181
+ */
5182
+ ownerShipId: string | null;
4047
5183
  }, ExtArgs["result"]["ship"]>;
4048
5184
  composites: {};
4049
5185
  };
@@ -4374,6 +5510,8 @@ export interface ShipDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
4374
5510
  export interface Prisma__ShipClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
4375
5511
  readonly [Symbol.toStringTag]: "PrismaPromise";
4376
5512
  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>;
5513
+ 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>;
5514
+ 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
5515
  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
5516
  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
5517
  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 +5531,8 @@ export interface Prisma__ShipClient<T, Null = never, ExtArgs extends runtime.Typ
4393
5531
  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
5532
  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
5533
  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>;
5534
+ 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>;
5535
+ pluginConnection<T extends Prisma.Ship$pluginConnectionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$pluginConnectionArgs<ExtArgs>>): Prisma.Prisma__PluginConnectionClient<runtime.Types.Result.GetResult<Prisma.$PluginConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
4396
5536
  /**
4397
5537
  * Attaches callbacks for the resolution and/or rejection of the Promise.
4398
5538
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4430,6 +5570,7 @@ export interface ShipFieldRefs {
4430
5570
  readonly commissionedBy: Prisma.FieldRef<"Ship", 'String'>;
4431
5571
  readonly commissionKey: Prisma.FieldRef<"Ship", 'String'>;
4432
5572
  readonly commissionRequestHash: Prisma.FieldRef<"Ship", 'String'>;
5573
+ readonly ownerShipId: Prisma.FieldRef<"Ship", 'String'>;
4433
5574
  }
4434
5575
  /**
4435
5576
  * Ship findUnique
@@ -4813,6 +5954,47 @@ export type ShipDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
4813
5954
  */
4814
5955
  limit?: number;
4815
5956
  };
5957
+ /**
5958
+ * Ship.owner
5959
+ */
5960
+ export type Ship$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5961
+ /**
5962
+ * Select specific fields to fetch from the Ship
5963
+ */
5964
+ select?: Prisma.ShipSelect<ExtArgs> | null;
5965
+ /**
5966
+ * Omit specific fields from the Ship
5967
+ */
5968
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
5969
+ /**
5970
+ * Choose, which related nodes to fetch as well
5971
+ */
5972
+ include?: Prisma.ShipInclude<ExtArgs> | null;
5973
+ where?: Prisma.ShipWhereInput;
5974
+ };
5975
+ /**
5976
+ * Ship.ownedShips
5977
+ */
5978
+ export type Ship$ownedShipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
5979
+ /**
5980
+ * Select specific fields to fetch from the Ship
5981
+ */
5982
+ select?: Prisma.ShipSelect<ExtArgs> | null;
5983
+ /**
5984
+ * Omit specific fields from the Ship
5985
+ */
5986
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
5987
+ /**
5988
+ * Choose, which related nodes to fetch as well
5989
+ */
5990
+ include?: Prisma.ShipInclude<ExtArgs> | null;
5991
+ where?: Prisma.ShipWhereInput;
5992
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
5993
+ cursor?: Prisma.ShipWhereUniqueInput;
5994
+ take?: number;
5995
+ skip?: number;
5996
+ distinct?: Prisma.ShipScalarFieldEnum | Prisma.ShipScalarFieldEnum[];
5997
+ };
4816
5998
  /**
4817
5999
  * Ship.leases
4818
6000
  */
@@ -5245,6 +6427,42 @@ export type Ship$declaredNetworkRulesArgs<ExtArgs extends runtime.Types.Extensio
5245
6427
  skip?: number;
5246
6428
  distinct?: Prisma.DeclaredNetworkRulesScalarFieldEnum | Prisma.DeclaredNetworkRulesScalarFieldEnum[];
5247
6429
  };
6430
+ /**
6431
+ * Ship.declaredNamespace
6432
+ */
6433
+ export type Ship$declaredNamespaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6434
+ /**
6435
+ * Select specific fields to fetch from the ScopeNamespace
6436
+ */
6437
+ select?: Prisma.ScopeNamespaceSelect<ExtArgs> | null;
6438
+ /**
6439
+ * Omit specific fields from the ScopeNamespace
6440
+ */
6441
+ omit?: Prisma.ScopeNamespaceOmit<ExtArgs> | null;
6442
+ /**
6443
+ * Choose, which related nodes to fetch as well
6444
+ */
6445
+ include?: Prisma.ScopeNamespaceInclude<ExtArgs> | null;
6446
+ where?: Prisma.ScopeNamespaceWhereInput;
6447
+ };
6448
+ /**
6449
+ * Ship.pluginConnection
6450
+ */
6451
+ export type Ship$pluginConnectionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
6452
+ /**
6453
+ * Select specific fields to fetch from the PluginConnection
6454
+ */
6455
+ select?: Prisma.PluginConnectionSelect<ExtArgs> | null;
6456
+ /**
6457
+ * Omit specific fields from the PluginConnection
6458
+ */
6459
+ omit?: Prisma.PluginConnectionOmit<ExtArgs> | null;
6460
+ /**
6461
+ * Choose, which related nodes to fetch as well
6462
+ */
6463
+ include?: Prisma.PluginConnectionInclude<ExtArgs> | null;
6464
+ where?: Prisma.PluginConnectionWhereInput;
6465
+ };
5248
6466
  /**
5249
6467
  * Ship without action
5250
6468
  */