Piotoru

selected prisma types

Jan 22nd, 2023
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. // index.d.ts
  2.  
  3. //FRIENDS
  4. export type FriendsCreateInput = {
  5. id?: string
  6. createAt?: Date | string
  7. updateAt?: Date | string
  8. usersFriends: UsersCreateNestedOneWithoutUserInFriendInput
  9. friend: UsersCreateNestedOneWithoutFriendInput
  10. }
  11.  
  12. export type FriendsUncheckedCreateInput = {
  13. id?: string
  14. usernameId: string
  15. friendId: string
  16. createAt?: Date | string
  17. updateAt?: Date | string
  18. }
  19.  
  20.  
  21. export type FriendsWhereUniqueInput = {
  22. id?: string
  23. usernameId?: string
  24. }
  25.  
  26. //GROUPS
  27. export type GroupsCreateInput = {
  28. groupId?: string
  29. name: string
  30. description: string
  31. logoUrl?: string | null
  32. createAt?: Date | string
  33. updateAt?: Date | string
  34. owner: UsersCreateNestedOneWithoutOwnerInput
  35. moderator?: UsersCreateNestedOneWithoutModeratorInput
  36. user?: UsersCreateNestedOneWithoutUserInput
  37. }
  38.  
  39. export type GroupsUncheckedCreateInput = {
  40. groupId?: string
  41. name: string
  42. description: string
  43. adminId: string
  44. moderatorsId?: string | null
  45. usersId?: string | null
  46. logoUrl?: string | null
  47. createAt?: Date | string
  48. updateAt?: Date | string
  49. }
  50.  
  51. export type GroupsWhereUniqueInput = {
  52. groupId?: string
  53. name?: string
  54. adminId?: string
  55. }
  56.  
  57.  
  58. //USERS
  59. export type UsersCreateInput = {
  60. id?: string
  61. username?: string | null
  62. pseudonym?: string | null
  63. email: string
  64. password: string
  65. description?: string | null
  66. profilePhoto?: string | null
  67. plan?: Plan
  68. createAt?: Date | string
  69. updateAt?: Date | string
  70. userInFriend?: FriendsCreateNestedOneWithoutUsersFriendsInput
  71. friend?: FriendsCreateNestedManyWithoutFriendInput
  72. owner?: GroupsCreateNestedOneWithoutOwnerInput
  73. moderator?: GroupsCreateNestedManyWithoutModeratorInput
  74. user?: GroupsCreateNestedManyWithoutUserInput
  75. profile?: FilesCreateNestedOneWithoutProfileInput
  76. ownerFile?: FilesCreateNestedManyWithoutOwnerInput
  77. }
  78.  
  79. export type UsersUncheckedCreateInput = {
  80. id?: string
  81. username?: string | null
  82. pseudonym?: string | null
  83. email: string
  84. password: string
  85. description?: string | null
  86. profilePhoto?: string | null
  87. plan?: Plan
  88. createAt?: Date | string
  89. updateAt?: Date | string
  90. userInFriend?: FriendsUncheckedCreateNestedOneWithoutUsersFriendsInput
  91. friend?: FriendsUncheckedCreateNestedManyWithoutFriendInput
  92. owner?: GroupsUncheckedCreateNestedOneWithoutOwnerInput
  93. moderator?: GroupsUncheckedCreateNestedManyWithoutModeratorInput
  94. user?: GroupsUncheckedCreateNestedManyWithoutUserInput
  95. profile?: FilesUncheckedCreateNestedOneWithoutProfileInput
  96. ownerFile?: FilesUncheckedCreateNestedManyWithoutOwnerInput
  97. }
  98.  
  99. export type UsersWhereUniqueInput = {
  100. id?: string
  101. pseudonym?: string
  102. email?: string
  103. profilePhoto?: string
  104. }
  105.  
Advertisement
Add Comment
Please, Sign In to add comment