Expanded groups scheme. Expanded addGroups mutation. Refactored addGroups mutation to update username and title of a group when used. Added an incrementGroups mutation that updates the new deletedLinks row in the scheme.

This commit is contained in:
2025-11-27 18:19:48 -05:00
parent 0cfa09de42
commit 4a2d8b2b3d
9 changed files with 219 additions and 120 deletions

View File

@@ -654,6 +654,8 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
export const GroupsScalarFieldEnum = {
telegramID: 'telegramID',
name: 'name',
username: 'username',
linksDeleted: 'linksDeleted',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
@@ -706,16 +708,16 @@ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
/**
* Reference to a field of type 'Int'
* Reference to a field of type 'BigInt'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
/**
* Reference to a field of type 'Int[]'
* Reference to a field of type 'BigInt[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
@@ -748,16 +750,16 @@ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaM
/**
* Reference to a field of type 'BigInt'
* Reference to a field of type 'Int'
*/
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'BigInt[]'
* Reference to a field of type 'Int[]'
*/
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>