/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ProjectTemplate` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model ProjectTemplate * */ export type ProjectTemplateModel = runtime.Types.Result.DefaultSelection export type AggregateProjectTemplate = { _count: ProjectTemplateCountAggregateOutputType | null _min: ProjectTemplateMinAggregateOutputType | null _max: ProjectTemplateMaxAggregateOutputType | null } export type ProjectTemplateMinAggregateOutputType = { id: string | null tenantId: string | null name: string | null defaultPipelineId: string | null defaultStageId: string | null isDemoData: boolean | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type ProjectTemplateMaxAggregateOutputType = { id: string | null tenantId: string | null name: string | null defaultPipelineId: string | null defaultStageId: string | null isDemoData: boolean | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null } export type ProjectTemplateCountAggregateOutputType = { id: number tenantId: number name: number defaultPipelineId: number defaultStageId: number defaultMembers: number defaultTasks: number customFields: number isDemoData: number createdAt: number updatedAt: number archivedAt: number _all: number } export type ProjectTemplateMinAggregateInputType = { id?: true tenantId?: true name?: true defaultPipelineId?: true defaultStageId?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true } export type ProjectTemplateMaxAggregateInputType = { id?: true tenantId?: true name?: true defaultPipelineId?: true defaultStageId?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true } export type ProjectTemplateCountAggregateInputType = { id?: true tenantId?: true name?: true defaultPipelineId?: true defaultStageId?: true defaultMembers?: true defaultTasks?: true customFields?: true isDemoData?: true createdAt?: true updatedAt?: true archivedAt?: true _all?: true } export type ProjectTemplateAggregateArgs = { /** * Filter which ProjectTemplate to aggregate. */ where?: Prisma.ProjectTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjectTemplates to fetch. */ orderBy?: Prisma.ProjectTemplateOrderByWithRelationInput | Prisma.ProjectTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProjectTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjectTemplates from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProjectTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProjectTemplates **/ _count?: true | ProjectTemplateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProjectTemplateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProjectTemplateMaxAggregateInputType } export type GetProjectTemplateAggregateType = { [P in keyof T & keyof AggregateProjectTemplate]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProjectTemplateGroupByArgs = { where?: Prisma.ProjectTemplateWhereInput orderBy?: Prisma.ProjectTemplateOrderByWithAggregationInput | Prisma.ProjectTemplateOrderByWithAggregationInput[] by: Prisma.ProjectTemplateScalarFieldEnum[] | Prisma.ProjectTemplateScalarFieldEnum having?: Prisma.ProjectTemplateScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProjectTemplateCountAggregateInputType | true _min?: ProjectTemplateMinAggregateInputType _max?: ProjectTemplateMaxAggregateInputType } export type ProjectTemplateGroupByOutputType = { id: string tenantId: string name: string defaultPipelineId: string | null defaultStageId: string | null defaultMembers: runtime.JsonValue defaultTasks: runtime.JsonValue customFields: runtime.JsonValue isDemoData: boolean createdAt: Date updatedAt: Date archivedAt: Date | null _count: ProjectTemplateCountAggregateOutputType | null _min: ProjectTemplateMinAggregateOutputType | null _max: ProjectTemplateMaxAggregateOutputType | null } export type GetProjectTemplateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProjectTemplateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProjectTemplateWhereInput = { AND?: Prisma.ProjectTemplateWhereInput | Prisma.ProjectTemplateWhereInput[] OR?: Prisma.ProjectTemplateWhereInput[] NOT?: Prisma.ProjectTemplateWhereInput | Prisma.ProjectTemplateWhereInput[] id?: Prisma.StringFilter<"ProjectTemplate"> | string tenantId?: Prisma.StringFilter<"ProjectTemplate"> | string name?: Prisma.StringFilter<"ProjectTemplate"> | string defaultPipelineId?: Prisma.StringNullableFilter<"ProjectTemplate"> | string | null defaultStageId?: Prisma.StringNullableFilter<"ProjectTemplate"> | string | null defaultMembers?: Prisma.JsonFilter<"ProjectTemplate"> defaultTasks?: Prisma.JsonFilter<"ProjectTemplate"> customFields?: Prisma.JsonFilter<"ProjectTemplate"> isDemoData?: Prisma.BoolFilter<"ProjectTemplate"> | boolean createdAt?: Prisma.DateTimeFilter<"ProjectTemplate"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjectTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"ProjectTemplate"> | Date | string | null } export type ProjectTemplateOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder defaultPipelineId?: Prisma.SortOrderInput | Prisma.SortOrder defaultStageId?: Prisma.SortOrderInput | Prisma.SortOrder defaultMembers?: Prisma.SortOrder defaultTasks?: Prisma.SortOrder customFields?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder } export type ProjectTemplateWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_name?: Prisma.ProjectTemplateTenantIdNameCompoundUniqueInput AND?: Prisma.ProjectTemplateWhereInput | Prisma.ProjectTemplateWhereInput[] OR?: Prisma.ProjectTemplateWhereInput[] NOT?: Prisma.ProjectTemplateWhereInput | Prisma.ProjectTemplateWhereInput[] tenantId?: Prisma.StringFilter<"ProjectTemplate"> | string name?: Prisma.StringFilter<"ProjectTemplate"> | string defaultPipelineId?: Prisma.StringNullableFilter<"ProjectTemplate"> | string | null defaultStageId?: Prisma.StringNullableFilter<"ProjectTemplate"> | string | null defaultMembers?: Prisma.JsonFilter<"ProjectTemplate"> defaultTasks?: Prisma.JsonFilter<"ProjectTemplate"> customFields?: Prisma.JsonFilter<"ProjectTemplate"> isDemoData?: Prisma.BoolFilter<"ProjectTemplate"> | boolean createdAt?: Prisma.DateTimeFilter<"ProjectTemplate"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ProjectTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"ProjectTemplate"> | Date | string | null }, "id" | "tenantId_name"> export type ProjectTemplateOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder defaultPipelineId?: Prisma.SortOrderInput | Prisma.SortOrder defaultStageId?: Prisma.SortOrderInput | Prisma.SortOrder defaultMembers?: Prisma.SortOrder defaultTasks?: Prisma.SortOrder customFields?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ProjectTemplateCountOrderByAggregateInput _max?: Prisma.ProjectTemplateMaxOrderByAggregateInput _min?: Prisma.ProjectTemplateMinOrderByAggregateInput } export type ProjectTemplateScalarWhereWithAggregatesInput = { AND?: Prisma.ProjectTemplateScalarWhereWithAggregatesInput | Prisma.ProjectTemplateScalarWhereWithAggregatesInput[] OR?: Prisma.ProjectTemplateScalarWhereWithAggregatesInput[] NOT?: Prisma.ProjectTemplateScalarWhereWithAggregatesInput | Prisma.ProjectTemplateScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ProjectTemplate"> | string tenantId?: Prisma.StringWithAggregatesFilter<"ProjectTemplate"> | string name?: Prisma.StringWithAggregatesFilter<"ProjectTemplate"> | string defaultPipelineId?: Prisma.StringNullableWithAggregatesFilter<"ProjectTemplate"> | string | null defaultStageId?: Prisma.StringNullableWithAggregatesFilter<"ProjectTemplate"> | string | null defaultMembers?: Prisma.JsonWithAggregatesFilter<"ProjectTemplate"> defaultTasks?: Prisma.JsonWithAggregatesFilter<"ProjectTemplate"> customFields?: Prisma.JsonWithAggregatesFilter<"ProjectTemplate"> isDemoData?: Prisma.BoolWithAggregatesFilter<"ProjectTemplate"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProjectTemplate"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProjectTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProjectTemplate"> | Date | string | null } export type ProjectTemplateCreateInput = { id?: string tenantId: string name: string defaultPipelineId?: string | null defaultStageId?: string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjectTemplateUncheckedCreateInput = { id?: string tenantId: string name: string defaultPipelineId?: string | null defaultStageId?: string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjectTemplateUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string defaultPipelineId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultStageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjectTemplateUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string defaultPipelineId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultStageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjectTemplateCreateManyInput = { id?: string tenantId: string name: string defaultPipelineId?: string | null defaultStageId?: string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: boolean createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null } export type ProjectTemplateUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string defaultPipelineId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultStageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjectTemplateUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string defaultPipelineId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultStageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null defaultMembers?: Prisma.JsonNullValueInput | runtime.InputJsonValue defaultTasks?: Prisma.JsonNullValueInput | runtime.InputJsonValue customFields?: Prisma.JsonNullValueInput | runtime.InputJsonValue isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ProjectTemplateTenantIdNameCompoundUniqueInput = { tenantId: string name: string } export type ProjectTemplateCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder defaultPipelineId?: Prisma.SortOrder defaultStageId?: Prisma.SortOrder defaultMembers?: Prisma.SortOrder defaultTasks?: Prisma.SortOrder customFields?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type ProjectTemplateMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder defaultPipelineId?: Prisma.SortOrder defaultStageId?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type ProjectTemplateMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder name?: Prisma.SortOrder defaultPipelineId?: Prisma.SortOrder defaultStageId?: Prisma.SortOrder isDemoData?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type ProjectTemplateSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean defaultPipelineId?: boolean defaultStageId?: boolean defaultMembers?: boolean defaultTasks?: boolean customFields?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projectTemplate"]> export type ProjectTemplateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean defaultPipelineId?: boolean defaultStageId?: boolean defaultMembers?: boolean defaultTasks?: boolean customFields?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projectTemplate"]> export type ProjectTemplateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean name?: boolean defaultPipelineId?: boolean defaultStageId?: boolean defaultMembers?: boolean defaultTasks?: boolean customFields?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean }, ExtArgs["result"]["projectTemplate"]> export type ProjectTemplateSelectScalar = { id?: boolean tenantId?: boolean name?: boolean defaultPipelineId?: boolean defaultStageId?: boolean defaultMembers?: boolean defaultTasks?: boolean customFields?: boolean isDemoData?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean } export type ProjectTemplateOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "defaultPipelineId" | "defaultStageId" | "defaultMembers" | "defaultTasks" | "customFields" | "isDemoData" | "createdAt" | "updatedAt" | "archivedAt", ExtArgs["result"]["projectTemplate"]> export type $ProjectTemplatePayload = { name: "ProjectTemplate" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string name: string defaultPipelineId: string | null defaultStageId: string | null defaultMembers: runtime.JsonValue defaultTasks: runtime.JsonValue customFields: runtime.JsonValue isDemoData: boolean createdAt: Date updatedAt: Date archivedAt: Date | null }, ExtArgs["result"]["projectTemplate"]> composites: {} } export type ProjectTemplateGetPayload = runtime.Types.Result.GetResult export type ProjectTemplateCountArgs = Omit & { select?: ProjectTemplateCountAggregateInputType | true } export interface ProjectTemplateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProjectTemplate'], meta: { name: 'ProjectTemplate' } } /** * Find zero or one ProjectTemplate that matches the filter. * @param {ProjectTemplateFindUniqueArgs} args - Arguments to find a ProjectTemplate * @example * // Get one ProjectTemplate * const projectTemplate = await prisma.projectTemplate.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProjectTemplate that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProjectTemplateFindUniqueOrThrowArgs} args - Arguments to find a ProjectTemplate * @example * // Get one ProjectTemplate * const projectTemplate = await prisma.projectTemplate.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProjectTemplate that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateFindFirstArgs} args - Arguments to find a ProjectTemplate * @example * // Get one ProjectTemplate * const projectTemplate = await prisma.projectTemplate.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProjectTemplate that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateFindFirstOrThrowArgs} args - Arguments to find a ProjectTemplate * @example * // Get one ProjectTemplate * const projectTemplate = await prisma.projectTemplate.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProjectTemplates that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProjectTemplates * const projectTemplates = await prisma.projectTemplate.findMany() * * // Get first 10 ProjectTemplates * const projectTemplates = await prisma.projectTemplate.findMany({ take: 10 }) * * // Only select the `id` * const projectTemplateWithIdOnly = await prisma.projectTemplate.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ProjectTemplate. * @param {ProjectTemplateCreateArgs} args - Arguments to create a ProjectTemplate. * @example * // Create one ProjectTemplate * const ProjectTemplate = await prisma.projectTemplate.create({ * data: { * // ... data to create a ProjectTemplate * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProjectTemplates. * @param {ProjectTemplateCreateManyArgs} args - Arguments to create many ProjectTemplates. * @example * // Create many ProjectTemplates * const projectTemplate = await prisma.projectTemplate.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ProjectTemplates and returns the data saved in the database. * @param {ProjectTemplateCreateManyAndReturnArgs} args - Arguments to create many ProjectTemplates. * @example * // Create many ProjectTemplates * const projectTemplate = await prisma.projectTemplate.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProjectTemplates and only return the `id` * const projectTemplateWithIdOnly = await prisma.projectTemplate.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ProjectTemplate. * @param {ProjectTemplateDeleteArgs} args - Arguments to delete one ProjectTemplate. * @example * // Delete one ProjectTemplate * const ProjectTemplate = await prisma.projectTemplate.delete({ * where: { * // ... filter to delete one ProjectTemplate * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProjectTemplate. * @param {ProjectTemplateUpdateArgs} args - Arguments to update one ProjectTemplate. * @example * // Update one ProjectTemplate * const projectTemplate = await prisma.projectTemplate.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProjectTemplates. * @param {ProjectTemplateDeleteManyArgs} args - Arguments to filter ProjectTemplates to delete. * @example * // Delete a few ProjectTemplates * const { count } = await prisma.projectTemplate.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjectTemplates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProjectTemplates * const projectTemplate = await prisma.projectTemplate.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProjectTemplates and returns the data updated in the database. * @param {ProjectTemplateUpdateManyAndReturnArgs} args - Arguments to update many ProjectTemplates. * @example * // Update many ProjectTemplates * const projectTemplate = await prisma.projectTemplate.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProjectTemplates and only return the `id` * const projectTemplateWithIdOnly = await prisma.projectTemplate.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ProjectTemplate. * @param {ProjectTemplateUpsertArgs} args - Arguments to update or create a ProjectTemplate. * @example * // Update or create a ProjectTemplate * const projectTemplate = await prisma.projectTemplate.upsert({ * create: { * // ... data to create a ProjectTemplate * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProjectTemplate we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectTemplateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProjectTemplates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateCountArgs} args - Arguments to filter ProjectTemplates to count. * @example * // Count the number of ProjectTemplates * const count = await prisma.projectTemplate.count({ * where: { * // ... the filter for the ProjectTemplates we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a ProjectTemplate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by ProjectTemplate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProjectTemplateGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends ProjectTemplateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProjectTemplateGroupByArgs['orderBy'] } : { orderBy?: ProjectTemplateGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetProjectTemplateGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProjectTemplate model */ readonly fields: ProjectTemplateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProjectTemplate. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__ProjectTemplateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the ProjectTemplate model */ export interface ProjectTemplateFieldRefs { readonly id: Prisma.FieldRef<"ProjectTemplate", 'String'> readonly tenantId: Prisma.FieldRef<"ProjectTemplate", 'String'> readonly name: Prisma.FieldRef<"ProjectTemplate", 'String'> readonly defaultPipelineId: Prisma.FieldRef<"ProjectTemplate", 'String'> readonly defaultStageId: Prisma.FieldRef<"ProjectTemplate", 'String'> readonly defaultMembers: Prisma.FieldRef<"ProjectTemplate", 'Json'> readonly defaultTasks: Prisma.FieldRef<"ProjectTemplate", 'Json'> readonly customFields: Prisma.FieldRef<"ProjectTemplate", 'Json'> readonly isDemoData: Prisma.FieldRef<"ProjectTemplate", 'Boolean'> readonly createdAt: Prisma.FieldRef<"ProjectTemplate", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ProjectTemplate", 'DateTime'> readonly archivedAt: Prisma.FieldRef<"ProjectTemplate", 'DateTime'> } // Custom InputTypes /** * ProjectTemplate findUnique */ export type ProjectTemplateFindUniqueArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter, which ProjectTemplate to fetch. */ where: Prisma.ProjectTemplateWhereUniqueInput } /** * ProjectTemplate findUniqueOrThrow */ export type ProjectTemplateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter, which ProjectTemplate to fetch. */ where: Prisma.ProjectTemplateWhereUniqueInput } /** * ProjectTemplate findFirst */ export type ProjectTemplateFindFirstArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter, which ProjectTemplate to fetch. */ where?: Prisma.ProjectTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjectTemplates to fetch. */ orderBy?: Prisma.ProjectTemplateOrderByWithRelationInput | Prisma.ProjectTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjectTemplates. */ cursor?: Prisma.ProjectTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjectTemplates from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProjectTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjectTemplates. */ distinct?: Prisma.ProjectTemplateScalarFieldEnum | Prisma.ProjectTemplateScalarFieldEnum[] } /** * ProjectTemplate findFirstOrThrow */ export type ProjectTemplateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter, which ProjectTemplate to fetch. */ where?: Prisma.ProjectTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjectTemplates to fetch. */ orderBy?: Prisma.ProjectTemplateOrderByWithRelationInput | Prisma.ProjectTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProjectTemplates. */ cursor?: Prisma.ProjectTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjectTemplates from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProjectTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjectTemplates. */ distinct?: Prisma.ProjectTemplateScalarFieldEnum | Prisma.ProjectTemplateScalarFieldEnum[] } /** * ProjectTemplate findMany */ export type ProjectTemplateFindManyArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter, which ProjectTemplates to fetch. */ where?: Prisma.ProjectTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProjectTemplates to fetch. */ orderBy?: Prisma.ProjectTemplateOrderByWithRelationInput | Prisma.ProjectTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProjectTemplates. */ cursor?: Prisma.ProjectTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProjectTemplates from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProjectTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProjectTemplates. */ distinct?: Prisma.ProjectTemplateScalarFieldEnum | Prisma.ProjectTemplateScalarFieldEnum[] } /** * ProjectTemplate create */ export type ProjectTemplateCreateArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * The data needed to create a ProjectTemplate. */ data: Prisma.XOR } /** * ProjectTemplate createMany */ export type ProjectTemplateCreateManyArgs = { /** * The data used to create many ProjectTemplates. */ data: Prisma.ProjectTemplateCreateManyInput | Prisma.ProjectTemplateCreateManyInput[] skipDuplicates?: boolean } /** * ProjectTemplate createManyAndReturn */ export type ProjectTemplateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelectCreateManyAndReturn | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * The data used to create many ProjectTemplates. */ data: Prisma.ProjectTemplateCreateManyInput | Prisma.ProjectTemplateCreateManyInput[] skipDuplicates?: boolean } /** * ProjectTemplate update */ export type ProjectTemplateUpdateArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * The data needed to update a ProjectTemplate. */ data: Prisma.XOR /** * Choose, which ProjectTemplate to update. */ where: Prisma.ProjectTemplateWhereUniqueInput } /** * ProjectTemplate updateMany */ export type ProjectTemplateUpdateManyArgs = { /** * The data used to update ProjectTemplates. */ data: Prisma.XOR /** * Filter which ProjectTemplates to update */ where?: Prisma.ProjectTemplateWhereInput /** * Limit how many ProjectTemplates to update. */ limit?: number } /** * ProjectTemplate updateManyAndReturn */ export type ProjectTemplateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * The data used to update ProjectTemplates. */ data: Prisma.XOR /** * Filter which ProjectTemplates to update */ where?: Prisma.ProjectTemplateWhereInput /** * Limit how many ProjectTemplates to update. */ limit?: number } /** * ProjectTemplate upsert */ export type ProjectTemplateUpsertArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * The filter to search for the ProjectTemplate to update in case it exists. */ where: Prisma.ProjectTemplateWhereUniqueInput /** * In case the ProjectTemplate found by the `where` argument doesn't exist, create a new ProjectTemplate with this data. */ create: Prisma.XOR /** * In case the ProjectTemplate was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ProjectTemplate delete */ export type ProjectTemplateDeleteArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null /** * Filter which ProjectTemplate to delete. */ where: Prisma.ProjectTemplateWhereUniqueInput } /** * ProjectTemplate deleteMany */ export type ProjectTemplateDeleteManyArgs = { /** * Filter which ProjectTemplates to delete */ where?: Prisma.ProjectTemplateWhereInput /** * Limit how many ProjectTemplates to delete. */ limit?: number } /** * ProjectTemplate without action */ export type ProjectTemplateDefaultArgs = { /** * Select specific fields to fetch from the ProjectTemplate */ select?: Prisma.ProjectTemplateSelect | null /** * Omit specific fields from the ProjectTemplate */ omit?: Prisma.ProjectTemplateOmit | null }