feat(schema prisma): dropped attachment related tables and added columns to expenses table to match new needs for garageHQ
This commit is contained in:
parent
6d911014de
commit
0ce1b62d06
|
|
@ -97,21 +97,6 @@ export type OAuthSessions = Prisma.OAuthSessionsModel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Sessions = Prisma.SessionsModel
|
export type Sessions = Prisma.SessionsModel
|
||||||
/**
|
|
||||||
* Model Blobs
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type Blobs = Prisma.BlobsModel
|
|
||||||
/**
|
|
||||||
* Model Attachments
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type Attachments = Prisma.AttachmentsModel
|
|
||||||
/**
|
|
||||||
* Model AttachmentVariants
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type AttachmentVariants = Prisma.AttachmentVariantsModel
|
|
||||||
/**
|
/**
|
||||||
* Model Preferences
|
* Model Preferences
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -117,21 +117,6 @@ export type OAuthSessions = Prisma.OAuthSessionsModel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Sessions = Prisma.SessionsModel
|
export type Sessions = Prisma.SessionsModel
|
||||||
/**
|
|
||||||
* Model Blobs
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type Blobs = Prisma.BlobsModel
|
|
||||||
/**
|
|
||||||
* Model Attachments
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type Attachments = Prisma.AttachmentsModel
|
|
||||||
/**
|
|
||||||
* Model AttachmentVariants
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export type AttachmentVariants = Prisma.AttachmentVariantsModel
|
|
||||||
/**
|
/**
|
||||||
* Model Preferences
|
* Model Preferences
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -402,40 +402,6 @@ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumAttachmentStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> | $Enums.AttachmentStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumRetentionPolicyFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> | $Enums.RetentionPolicy
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumAttachmentStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AttachmentStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumRetentionPolicyWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel> | $Enums.RetentionPolicy
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolNullableFilter<$PrismaModel = never> = {
|
export type BoolNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
|
|
@ -837,40 +803,6 @@ export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumAttachmentStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel> | $Enums.AttachmentStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumRetentionPolicyFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel> | $Enums.RetentionPolicy
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AttachmentStatus | Prisma.EnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.AttachmentStatus[] | Prisma.ListEnumAttachmentStatusFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumAttachmentStatusWithAggregatesFilter<$PrismaModel> | $Enums.AttachmentStatus
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumAttachmentStatusFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.RetentionPolicy | Prisma.EnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: $Enums.RetentionPolicy[] | Prisma.ListEnumRetentionPolicyFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedEnumRetentionPolicyWithAggregatesFilter<$PrismaModel> | $Enums.RetentionPolicy
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumRetentionPolicyFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null
|
||||||
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -400,9 +400,6 @@ export const ModelName = {
|
||||||
ExpensesArchive: 'ExpensesArchive',
|
ExpensesArchive: 'ExpensesArchive',
|
||||||
OAuthSessions: 'OAuthSessions',
|
OAuthSessions: 'OAuthSessions',
|
||||||
Sessions: 'Sessions',
|
Sessions: 'Sessions',
|
||||||
Blobs: 'Blobs',
|
|
||||||
Attachments: 'Attachments',
|
|
||||||
AttachmentVariants: 'AttachmentVariants',
|
|
||||||
Preferences: 'Preferences',
|
Preferences: 'Preferences',
|
||||||
PaidTimeOff: 'PaidTimeOff',
|
PaidTimeOff: 'PaidTimeOff',
|
||||||
PayPeriods: 'PayPeriods'
|
PayPeriods: 'PayPeriods'
|
||||||
|
|
@ -421,7 +418,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||||
omit: GlobalOmitOptions
|
omit: GlobalOmitOptions
|
||||||
}
|
}
|
||||||
meta: {
|
meta: {
|
||||||
modelProps: "users" | "userModuleAccess" | "employees" | "leaveRequests" | "leaveRequestsArchive" | "timesheets" | "timesheetsArchive" | "schedulePresets" | "schedulePresetShifts" | "shifts" | "shiftsArchive" | "bankCodes" | "expenses" | "expensesArchive" | "oAuthSessions" | "sessions" | "blobs" | "attachments" | "attachmentVariants" | "preferences" | "paidTimeOff" | "payPeriods"
|
modelProps: "users" | "userModuleAccess" | "employees" | "leaveRequests" | "leaveRequestsArchive" | "timesheets" | "timesheetsArchive" | "schedulePresets" | "schedulePresetShifts" | "shifts" | "shiftsArchive" | "bankCodes" | "expenses" | "expensesArchive" | "oAuthSessions" | "sessions" | "preferences" | "paidTimeOff" | "payPeriods"
|
||||||
txIsolationLevel: TransactionIsolationLevel
|
txIsolationLevel: TransactionIsolationLevel
|
||||||
}
|
}
|
||||||
model: {
|
model: {
|
||||||
|
|
@ -1609,228 +1606,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Blobs: {
|
|
||||||
payload: Prisma.$BlobsPayload<ExtArgs>
|
|
||||||
fields: Prisma.BlobsFieldRefs
|
|
||||||
operations: {
|
|
||||||
findUnique: {
|
|
||||||
args: Prisma.BlobsFindUniqueArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload> | null
|
|
||||||
}
|
|
||||||
findUniqueOrThrow: {
|
|
||||||
args: Prisma.BlobsFindUniqueOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
findFirst: {
|
|
||||||
args: Prisma.BlobsFindFirstArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload> | null
|
|
||||||
}
|
|
||||||
findFirstOrThrow: {
|
|
||||||
args: Prisma.BlobsFindFirstOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
findMany: {
|
|
||||||
args: Prisma.BlobsFindManyArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>[]
|
|
||||||
}
|
|
||||||
create: {
|
|
||||||
args: Prisma.BlobsCreateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
createMany: {
|
|
||||||
args: Prisma.BlobsCreateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
createManyAndReturn: {
|
|
||||||
args: Prisma.BlobsCreateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>[]
|
|
||||||
}
|
|
||||||
delete: {
|
|
||||||
args: Prisma.BlobsDeleteArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
update: {
|
|
||||||
args: Prisma.BlobsUpdateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
deleteMany: {
|
|
||||||
args: Prisma.BlobsDeleteManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateMany: {
|
|
||||||
args: Prisma.BlobsUpdateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateManyAndReturn: {
|
|
||||||
args: Prisma.BlobsUpdateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>[]
|
|
||||||
}
|
|
||||||
upsert: {
|
|
||||||
args: Prisma.BlobsUpsertArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BlobsPayload>
|
|
||||||
}
|
|
||||||
aggregate: {
|
|
||||||
args: Prisma.BlobsAggregateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AggregateBlobs>
|
|
||||||
}
|
|
||||||
groupBy: {
|
|
||||||
args: Prisma.BlobsGroupByArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.BlobsGroupByOutputType>[]
|
|
||||||
}
|
|
||||||
count: {
|
|
||||||
args: Prisma.BlobsCountArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.BlobsCountAggregateOutputType> | number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Attachments: {
|
|
||||||
payload: Prisma.$AttachmentsPayload<ExtArgs>
|
|
||||||
fields: Prisma.AttachmentsFieldRefs
|
|
||||||
operations: {
|
|
||||||
findUnique: {
|
|
||||||
args: Prisma.AttachmentsFindUniqueArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload> | null
|
|
||||||
}
|
|
||||||
findUniqueOrThrow: {
|
|
||||||
args: Prisma.AttachmentsFindUniqueOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
findFirst: {
|
|
||||||
args: Prisma.AttachmentsFindFirstArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload> | null
|
|
||||||
}
|
|
||||||
findFirstOrThrow: {
|
|
||||||
args: Prisma.AttachmentsFindFirstOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
findMany: {
|
|
||||||
args: Prisma.AttachmentsFindManyArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>[]
|
|
||||||
}
|
|
||||||
create: {
|
|
||||||
args: Prisma.AttachmentsCreateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
createMany: {
|
|
||||||
args: Prisma.AttachmentsCreateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
createManyAndReturn: {
|
|
||||||
args: Prisma.AttachmentsCreateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>[]
|
|
||||||
}
|
|
||||||
delete: {
|
|
||||||
args: Prisma.AttachmentsDeleteArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
update: {
|
|
||||||
args: Prisma.AttachmentsUpdateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
deleteMany: {
|
|
||||||
args: Prisma.AttachmentsDeleteManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateMany: {
|
|
||||||
args: Prisma.AttachmentsUpdateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateManyAndReturn: {
|
|
||||||
args: Prisma.AttachmentsUpdateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>[]
|
|
||||||
}
|
|
||||||
upsert: {
|
|
||||||
args: Prisma.AttachmentsUpsertArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentsPayload>
|
|
||||||
}
|
|
||||||
aggregate: {
|
|
||||||
args: Prisma.AttachmentsAggregateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AggregateAttachments>
|
|
||||||
}
|
|
||||||
groupBy: {
|
|
||||||
args: Prisma.AttachmentsGroupByArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AttachmentsGroupByOutputType>[]
|
|
||||||
}
|
|
||||||
count: {
|
|
||||||
args: Prisma.AttachmentsCountArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AttachmentsCountAggregateOutputType> | number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
AttachmentVariants: {
|
|
||||||
payload: Prisma.$AttachmentVariantsPayload<ExtArgs>
|
|
||||||
fields: Prisma.AttachmentVariantsFieldRefs
|
|
||||||
operations: {
|
|
||||||
findUnique: {
|
|
||||||
args: Prisma.AttachmentVariantsFindUniqueArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload> | null
|
|
||||||
}
|
|
||||||
findUniqueOrThrow: {
|
|
||||||
args: Prisma.AttachmentVariantsFindUniqueOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
findFirst: {
|
|
||||||
args: Prisma.AttachmentVariantsFindFirstArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload> | null
|
|
||||||
}
|
|
||||||
findFirstOrThrow: {
|
|
||||||
args: Prisma.AttachmentVariantsFindFirstOrThrowArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
findMany: {
|
|
||||||
args: Prisma.AttachmentVariantsFindManyArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>[]
|
|
||||||
}
|
|
||||||
create: {
|
|
||||||
args: Prisma.AttachmentVariantsCreateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
createMany: {
|
|
||||||
args: Prisma.AttachmentVariantsCreateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
createManyAndReturn: {
|
|
||||||
args: Prisma.AttachmentVariantsCreateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>[]
|
|
||||||
}
|
|
||||||
delete: {
|
|
||||||
args: Prisma.AttachmentVariantsDeleteArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
update: {
|
|
||||||
args: Prisma.AttachmentVariantsUpdateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
deleteMany: {
|
|
||||||
args: Prisma.AttachmentVariantsDeleteManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateMany: {
|
|
||||||
args: Prisma.AttachmentVariantsUpdateManyArgs<ExtArgs>
|
|
||||||
result: BatchPayload
|
|
||||||
}
|
|
||||||
updateManyAndReturn: {
|
|
||||||
args: Prisma.AttachmentVariantsUpdateManyAndReturnArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>[]
|
|
||||||
}
|
|
||||||
upsert: {
|
|
||||||
args: Prisma.AttachmentVariantsUpsertArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$AttachmentVariantsPayload>
|
|
||||||
}
|
|
||||||
aggregate: {
|
|
||||||
args: Prisma.AttachmentVariantsAggregateArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AggregateAttachmentVariants>
|
|
||||||
}
|
|
||||||
groupBy: {
|
|
||||||
args: Prisma.AttachmentVariantsGroupByArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AttachmentVariantsGroupByOutputType>[]
|
|
||||||
}
|
|
||||||
count: {
|
|
||||||
args: Prisma.AttachmentVariantsCountArgs<ExtArgs>
|
|
||||||
result: runtime.Types.Utils.Optional<Prisma.AttachmentVariantsCountAggregateOutputType> | number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Preferences: {
|
Preferences: {
|
||||||
payload: Prisma.$PreferencesPayload<ExtArgs>
|
payload: Prisma.$PreferencesPayload<ExtArgs>
|
||||||
fields: Prisma.PreferencesFieldRefs
|
fields: Prisma.PreferencesFieldRefs
|
||||||
|
|
@ -2217,7 +1992,8 @@ export const ExpensesScalarFieldEnum = {
|
||||||
supervisor_comment: 'supervisor_comment',
|
supervisor_comment: 'supervisor_comment',
|
||||||
bank_code_id: 'bank_code_id',
|
bank_code_id: 'bank_code_id',
|
||||||
comment: 'comment',
|
comment: 'comment',
|
||||||
attachment: 'attachment',
|
attachment_key: 'attachment_key',
|
||||||
|
attachment_name: 'attachment_name',
|
||||||
mileage: 'mileage'
|
mileage: 'mileage'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
|
@ -2235,7 +2011,6 @@ export const ExpensesArchiveScalarFieldEnum = {
|
||||||
supervisor_comment: 'supervisor_comment',
|
supervisor_comment: 'supervisor_comment',
|
||||||
bank_code_id: 'bank_code_id',
|
bank_code_id: 'bank_code_id',
|
||||||
comment: 'comment',
|
comment: 'comment',
|
||||||
attachment: 'attachment',
|
|
||||||
mileage: 'mileage'
|
mileage: 'mileage'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
|
@ -2270,47 +2045,6 @@ export const SessionsScalarFieldEnum = {
|
||||||
export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
|
export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const BlobsScalarFieldEnum = {
|
|
||||||
sha256: 'sha256',
|
|
||||||
size: 'size',
|
|
||||||
mime: 'mime',
|
|
||||||
storage_path: 'storage_path',
|
|
||||||
refcount: 'refcount',
|
|
||||||
created_at: 'created_at'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type BlobsScalarFieldEnum = (typeof BlobsScalarFieldEnum)[keyof typeof BlobsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AttachmentsScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
sha256: 'sha256',
|
|
||||||
owner_type: 'owner_type',
|
|
||||||
owner_id: 'owner_id',
|
|
||||||
status: 'status',
|
|
||||||
created_by: 'created_by',
|
|
||||||
created_at: 'created_at',
|
|
||||||
original_name: 'original_name',
|
|
||||||
retention_policy: 'retention_policy'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AttachmentsScalarFieldEnum = (typeof AttachmentsScalarFieldEnum)[keyof typeof AttachmentsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AttachmentVariantsScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
attachment_id: 'attachment_id',
|
|
||||||
variant: 'variant',
|
|
||||||
bytes: 'bytes',
|
|
||||||
width: 'width',
|
|
||||||
height: 'height',
|
|
||||||
created_at: 'created_at',
|
|
||||||
path: 'path'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AttachmentVariantsScalarFieldEnum = (typeof AttachmentVariantsScalarFieldEnum)[keyof typeof AttachmentVariantsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const PreferencesScalarFieldEnum = {
|
export const PreferencesScalarFieldEnum = {
|
||||||
user_id: 'user_id',
|
user_id: 'user_id',
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
|
@ -2541,34 +2275,6 @@ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'J
|
||||||
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to a field of type 'AttachmentStatus'
|
|
||||||
*/
|
|
||||||
export type EnumAttachmentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AttachmentStatus'>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to a field of type 'AttachmentStatus[]'
|
|
||||||
*/
|
|
||||||
export type ListEnumAttachmentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AttachmentStatus[]'>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to a field of type 'RetentionPolicy'
|
|
||||||
*/
|
|
||||||
export type EnumRetentionPolicyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RetentionPolicy'>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to a field of type 'RetentionPolicy[]'
|
|
||||||
*/
|
|
||||||
export type ListEnumRetentionPolicyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RetentionPolicy[]'>
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch Payload for updateMany & deleteMany & createMany
|
* Batch Payload for updateMany & deleteMany & createMany
|
||||||
*/
|
*/
|
||||||
|
|
@ -2680,9 +2386,6 @@ export type GlobalOmitConfig = {
|
||||||
expensesArchive?: Prisma.ExpensesArchiveOmit
|
expensesArchive?: Prisma.ExpensesArchiveOmit
|
||||||
oAuthSessions?: Prisma.OAuthSessionsOmit
|
oAuthSessions?: Prisma.OAuthSessionsOmit
|
||||||
sessions?: Prisma.SessionsOmit
|
sessions?: Prisma.SessionsOmit
|
||||||
blobs?: Prisma.BlobsOmit
|
|
||||||
attachments?: Prisma.AttachmentsOmit
|
|
||||||
attachmentVariants?: Prisma.AttachmentVariantsOmit
|
|
||||||
preferences?: Prisma.PreferencesOmit
|
preferences?: Prisma.PreferencesOmit
|
||||||
paidTimeOff?: Prisma.PaidTimeOffOmit
|
paidTimeOff?: Prisma.PaidTimeOffOmit
|
||||||
payPeriods?: Prisma.PayPeriodsOmit
|
payPeriods?: Prisma.PayPeriodsOmit
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,6 @@ export const ModelName = {
|
||||||
ExpensesArchive: 'ExpensesArchive',
|
ExpensesArchive: 'ExpensesArchive',
|
||||||
OAuthSessions: 'OAuthSessions',
|
OAuthSessions: 'OAuthSessions',
|
||||||
Sessions: 'Sessions',
|
Sessions: 'Sessions',
|
||||||
Blobs: 'Blobs',
|
|
||||||
Attachments: 'Attachments',
|
|
||||||
AttachmentVariants: 'AttachmentVariants',
|
|
||||||
Preferences: 'Preferences',
|
Preferences: 'Preferences',
|
||||||
PaidTimeOff: 'PaidTimeOff',
|
PaidTimeOff: 'PaidTimeOff',
|
||||||
PayPeriods: 'PayPeriods'
|
PayPeriods: 'PayPeriods'
|
||||||
|
|
@ -260,7 +257,8 @@ export const ExpensesScalarFieldEnum = {
|
||||||
supervisor_comment: 'supervisor_comment',
|
supervisor_comment: 'supervisor_comment',
|
||||||
bank_code_id: 'bank_code_id',
|
bank_code_id: 'bank_code_id',
|
||||||
comment: 'comment',
|
comment: 'comment',
|
||||||
attachment: 'attachment',
|
attachment_key: 'attachment_key',
|
||||||
|
attachment_name: 'attachment_name',
|
||||||
mileage: 'mileage'
|
mileage: 'mileage'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
|
@ -278,7 +276,6 @@ export const ExpensesArchiveScalarFieldEnum = {
|
||||||
supervisor_comment: 'supervisor_comment',
|
supervisor_comment: 'supervisor_comment',
|
||||||
bank_code_id: 'bank_code_id',
|
bank_code_id: 'bank_code_id',
|
||||||
comment: 'comment',
|
comment: 'comment',
|
||||||
attachment: 'attachment',
|
|
||||||
mileage: 'mileage'
|
mileage: 'mileage'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
|
@ -313,47 +310,6 @@ export const SessionsScalarFieldEnum = {
|
||||||
export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
|
export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const BlobsScalarFieldEnum = {
|
|
||||||
sha256: 'sha256',
|
|
||||||
size: 'size',
|
|
||||||
mime: 'mime',
|
|
||||||
storage_path: 'storage_path',
|
|
||||||
refcount: 'refcount',
|
|
||||||
created_at: 'created_at'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type BlobsScalarFieldEnum = (typeof BlobsScalarFieldEnum)[keyof typeof BlobsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AttachmentsScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
sha256: 'sha256',
|
|
||||||
owner_type: 'owner_type',
|
|
||||||
owner_id: 'owner_id',
|
|
||||||
status: 'status',
|
|
||||||
created_by: 'created_by',
|
|
||||||
created_at: 'created_at',
|
|
||||||
original_name: 'original_name',
|
|
||||||
retention_policy: 'retention_policy'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AttachmentsScalarFieldEnum = (typeof AttachmentsScalarFieldEnum)[keyof typeof AttachmentsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AttachmentVariantsScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
attachment_id: 'attachment_id',
|
|
||||||
variant: 'variant',
|
|
||||||
bytes: 'bytes',
|
|
||||||
width: 'width',
|
|
||||||
height: 'height',
|
|
||||||
created_at: 'created_at',
|
|
||||||
path: 'path'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AttachmentVariantsScalarFieldEnum = (typeof AttachmentVariantsScalarFieldEnum)[keyof typeof AttachmentVariantsScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const PreferencesScalarFieldEnum = {
|
export const PreferencesScalarFieldEnum = {
|
||||||
user_id: 'user_id',
|
user_id: 'user_id',
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ export type * from './models/Expenses'
|
||||||
export type * from './models/ExpensesArchive'
|
export type * from './models/ExpensesArchive'
|
||||||
export type * from './models/OAuthSessions'
|
export type * from './models/OAuthSessions'
|
||||||
export type * from './models/Sessions'
|
export type * from './models/Sessions'
|
||||||
export type * from './models/Blobs'
|
|
||||||
export type * from './models/Attachments'
|
|
||||||
export type * from './models/AttachmentVariants'
|
|
||||||
export type * from './models/Preferences'
|
export type * from './models/Preferences'
|
||||||
export type * from './models/PaidTimeOff'
|
export type * from './models/PaidTimeOff'
|
||||||
export type * from './models/PayPeriods'
|
export type * from './models/PayPeriods'
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -31,7 +31,6 @@ export type ExpensesAvgAggregateOutputType = {
|
||||||
timesheet_id: number | null
|
timesheet_id: number | null
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -40,7 +39,6 @@ export type ExpensesSumAggregateOutputType = {
|
||||||
timesheet_id: number | null
|
timesheet_id: number | null
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -53,7 +51,8 @@ export type ExpensesMinAggregateOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
attachment_key: string | null
|
||||||
|
attachment_name: string | null
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -66,7 +65,8 @@ export type ExpensesMaxAggregateOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
attachment_key: string | null
|
||||||
|
attachment_name: string | null
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,7 +79,8 @@ export type ExpensesCountAggregateOutputType = {
|
||||||
supervisor_comment: number
|
supervisor_comment: number
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: number
|
comment: number
|
||||||
attachment: number
|
attachment_key: number
|
||||||
|
attachment_name: number
|
||||||
mileage: number
|
mileage: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
@ -90,7 +91,6 @@ export type ExpensesAvgAggregateInputType = {
|
||||||
timesheet_id?: true
|
timesheet_id?: true
|
||||||
amount?: true
|
amount?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,7 +99,6 @@ export type ExpensesSumAggregateInputType = {
|
||||||
timesheet_id?: true
|
timesheet_id?: true
|
||||||
amount?: true
|
amount?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,7 +111,8 @@ export type ExpensesMinAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
attachment_key?: true
|
||||||
|
attachment_name?: true
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,7 +125,8 @@ export type ExpensesMaxAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
attachment_key?: true
|
||||||
|
attachment_name?: true
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -138,7 +139,8 @@ export type ExpensesCountAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
attachment_key?: true
|
||||||
|
attachment_name?: true
|
||||||
mileage?: true
|
mileage?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
@ -238,7 +240,8 @@ export type ExpensesGroupByOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment: number | null
|
attachment_key: string | null
|
||||||
|
attachment_name: string | null
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
_count: ExpensesCountAggregateOutputType | null
|
_count: ExpensesCountAggregateOutputType | null
|
||||||
_avg: ExpensesAvgAggregateOutputType | null
|
_avg: ExpensesAvgAggregateOutputType | null
|
||||||
|
|
@ -274,9 +277,9 @@ export type ExpensesWhereInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
||||||
comment?: Prisma.StringFilter<"Expenses"> | string
|
comment?: Prisma.StringFilter<"Expenses"> | string
|
||||||
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
|
attachment_key?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
|
attachment_name?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
|
|
||||||
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
||||||
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
|
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
|
||||||
archive?: Prisma.ExpensesArchiveListRelationFilter
|
archive?: Prisma.ExpensesArchiveListRelationFilter
|
||||||
|
|
@ -291,9 +294,9 @@ export type ExpensesOrderByWithRelationInput = {
|
||||||
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
|
attachment_key?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
attachment_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
attachment_record?: Prisma.AttachmentsOrderByWithRelationInput
|
|
||||||
bank_code?: Prisma.BankCodesOrderByWithRelationInput
|
bank_code?: Prisma.BankCodesOrderByWithRelationInput
|
||||||
timesheet?: Prisma.TimesheetsOrderByWithRelationInput
|
timesheet?: Prisma.TimesheetsOrderByWithRelationInput
|
||||||
archive?: Prisma.ExpensesArchiveOrderByRelationAggregateInput
|
archive?: Prisma.ExpensesArchiveOrderByRelationAggregateInput
|
||||||
|
|
@ -312,9 +315,9 @@ export type ExpensesWhereUniqueInput = Prisma.AtLeast<{
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
||||||
comment?: Prisma.StringFilter<"Expenses"> | string
|
comment?: Prisma.StringFilter<"Expenses"> | string
|
||||||
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
|
attachment_key?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
|
attachment_name?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
|
|
||||||
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
||||||
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
|
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
|
||||||
archive?: Prisma.ExpensesArchiveListRelationFilter
|
archive?: Prisma.ExpensesArchiveListRelationFilter
|
||||||
|
|
@ -329,7 +332,8 @@ export type ExpensesOrderByWithAggregationInput = {
|
||||||
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
|
attachment_key?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
attachment_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
_count?: Prisma.ExpensesCountOrderByAggregateInput
|
_count?: Prisma.ExpensesCountOrderByAggregateInput
|
||||||
_avg?: Prisma.ExpensesAvgOrderByAggregateInput
|
_avg?: Prisma.ExpensesAvgOrderByAggregateInput
|
||||||
|
|
@ -350,7 +354,8 @@ export type ExpensesScalarWhereWithAggregatesInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null
|
supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null
|
||||||
bank_code_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number
|
bank_code_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number
|
||||||
comment?: Prisma.StringWithAggregatesFilter<"Expenses"> | string
|
comment?: Prisma.StringWithAggregatesFilter<"Expenses"> | string
|
||||||
attachment?: Prisma.IntNullableWithAggregatesFilter<"Expenses"> | number | null
|
attachment_key?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null
|
||||||
|
attachment_name?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null
|
||||||
mileage?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -360,8 +365,9 @@ export type ExpensesCreateInput = {
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
|
|
||||||
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
||||||
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
||||||
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
||||||
|
|
@ -376,7 +382,8 @@ export type ExpensesUncheckedCreateInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -387,8 +394,9 @@ export type ExpensesUpdateInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
|
|
||||||
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
||||||
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
||||||
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
||||||
|
|
@ -403,7 +411,8 @@ export type ExpensesUncheckedUpdateInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -417,7 +426,8 @@ export type ExpensesCreateManyInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -427,6 +437,8 @@ export type ExpensesUpdateManyMutationInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -439,7 +451,8 @@ export type ExpensesUncheckedUpdateManyInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -469,7 +482,8 @@ export type ExpensesCountOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
attachment_key?: Prisma.SortOrder
|
||||||
|
attachment_name?: Prisma.SortOrder
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -478,7 +492,6 @@ export type ExpensesAvgOrderByAggregateInput = {
|
||||||
timesheet_id?: Prisma.SortOrder
|
timesheet_id?: Prisma.SortOrder
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -491,7 +504,8 @@ export type ExpensesMaxOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
attachment_key?: Prisma.SortOrder
|
||||||
|
attachment_name?: Prisma.SortOrder
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -504,7 +518,8 @@ export type ExpensesMinOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
attachment_key?: Prisma.SortOrder
|
||||||
|
attachment_name?: Prisma.SortOrder
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -513,7 +528,6 @@ export type ExpensesSumOrderByAggregateInput = {
|
||||||
timesheet_id?: Prisma.SortOrder
|
timesheet_id?: Prisma.SortOrder
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -620,56 +634,15 @@ export type ExpensesUpdateOneRequiredWithoutArchiveNestedInput = {
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ExpensesUpdateToOneWithWhereWithoutArchiveInput, Prisma.ExpensesUpdateWithoutArchiveInput>, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ExpensesUpdateToOneWithWhereWithoutArchiveInput, Prisma.ExpensesUpdateWithoutArchiveInput>, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesCreateNestedManyWithoutAttachment_recordInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
|
|
||||||
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
|
|
||||||
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUpdateManyWithoutAttachment_recordNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
|
|
||||||
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[]
|
|
||||||
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
|
|
||||||
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
|
|
||||||
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[]
|
|
||||||
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesCreateWithoutTimesheetInput = {
|
export type ExpensesCreateWithoutTimesheetInput = {
|
||||||
date: Date | string
|
date: Date | string
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
|
|
||||||
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
||||||
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -682,7 +655,8 @@ export type ExpensesUncheckedCreateWithoutTimesheetInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -725,7 +699,8 @@ export type ExpensesScalarWhereInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
|
||||||
comment?: Prisma.StringFilter<"Expenses"> | string
|
comment?: Prisma.StringFilter<"Expenses"> | string
|
||||||
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
|
attachment_key?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
|
attachment_name?: Prisma.StringNullableFilter<"Expenses"> | string | null
|
||||||
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -735,8 +710,9 @@ export type ExpensesCreateWithoutBank_codeInput = {
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
|
|
||||||
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
||||||
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -749,7 +725,8 @@ export type ExpensesUncheckedCreateWithoutBank_codeInput = {
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -786,8 +763,9 @@ export type ExpensesCreateWithoutArchiveInput = {
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
|
|
||||||
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
||||||
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
||||||
}
|
}
|
||||||
|
|
@ -801,7 +779,8 @@ export type ExpensesUncheckedCreateWithoutArchiveInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -827,8 +806,9 @@ export type ExpensesUpdateWithoutArchiveInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
|
|
||||||
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
||||||
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -842,61 +822,11 @@ export type ExpensesUncheckedUpdateWithoutArchiveInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesCreateWithoutAttachment_recordInput = {
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
comment: string
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
|
|
||||||
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
|
|
||||||
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUncheckedCreateWithoutAttachment_recordInput = {
|
|
||||||
id?: number
|
|
||||||
timesheet_id: number
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
bank_code_id: number
|
|
||||||
comment: string
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesCreateOrConnectWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesCreateManyAttachment_recordInputEnvelope = {
|
|
||||||
data: Prisma.ExpensesCreateManyAttachment_recordInput | Prisma.ExpensesCreateManyAttachment_recordInput[]
|
|
||||||
skipDuplicates?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesWhereUniqueInput
|
|
||||||
update: Prisma.XOR<Prisma.ExpensesUpdateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedUpdateWithoutAttachment_recordInput>
|
|
||||||
create: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.ExpensesUpdateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedUpdateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUpdateManyWithWhereWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ExpensesUpdateManyMutationInput, Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesCreateManyTimesheetInput = {
|
export type ExpensesCreateManyTimesheetInput = {
|
||||||
id?: number
|
id?: number
|
||||||
date: Date | string
|
date: Date | string
|
||||||
|
|
@ -905,7 +835,8 @@ export type ExpensesCreateManyTimesheetInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -915,8 +846,9 @@ export type ExpensesUpdateWithoutTimesheetInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
|
|
||||||
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
||||||
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -929,7 +861,8 @@ export type ExpensesUncheckedUpdateWithoutTimesheetInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -942,7 +875,8 @@ export type ExpensesUncheckedUpdateManyWithoutTimesheetInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -954,7 +888,8 @@ export type ExpensesCreateManyBank_codeInput = {
|
||||||
is_approved?: boolean
|
is_approved?: boolean
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
comment: string
|
comment: string
|
||||||
attachment?: number | null
|
attachment_key?: string | null
|
||||||
|
attachment_name?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -964,8 +899,9 @@ export type ExpensesUpdateWithoutBank_codeInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
|
|
||||||
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
||||||
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -978,7 +914,8 @@ export type ExpensesUncheckedUpdateWithoutBank_codeInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
||||||
}
|
}
|
||||||
|
|
@ -991,56 +928,8 @@ export type ExpensesUncheckedUpdateManyWithoutBank_codeInput = {
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
attachment_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
attachment_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesCreateManyAttachment_recordInput = {
|
|
||||||
id?: number
|
|
||||||
timesheet_id: number
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
bank_code_id: number
|
|
||||||
comment: string
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUpdateWithoutAttachment_recordInput = {
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
|
|
||||||
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
|
|
||||||
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUncheckedUpdateWithoutAttachment_recordInput = {
|
|
||||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesUncheckedUpdateManyWithoutAttachment_recordInput = {
|
|
||||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
comment?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1084,9 +973,9 @@ export type ExpensesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
attachment_key?: boolean
|
||||||
|
attachment_name?: boolean
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
|
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
|
||||||
|
|
@ -1102,9 +991,9 @@ export type ExpensesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exte
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
attachment_key?: boolean
|
||||||
|
attachment_name?: boolean
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["expenses"]>
|
}, ExtArgs["result"]["expenses"]>
|
||||||
|
|
@ -1118,9 +1007,9 @@ export type ExpensesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exte
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
attachment_key?: boolean
|
||||||
|
attachment_name?: boolean
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["expenses"]>
|
}, ExtArgs["result"]["expenses"]>
|
||||||
|
|
@ -1134,25 +1023,23 @@ export type ExpensesSelectScalar = {
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
attachment_key?: boolean
|
||||||
|
attachment_name?: boolean
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment" | "mileage", ExtArgs["result"]["expenses"]>
|
export type ExpensesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment_key" | "attachment_name" | "mileage", ExtArgs["result"]["expenses"]>
|
||||||
export type ExpensesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
|
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
export type ExpensesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
export type ExpensesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
|
|
||||||
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
||||||
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
@ -1160,7 +1047,6 @@ export type ExpensesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
||||||
export type $ExpensesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $ExpensesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "Expenses"
|
name: "Expenses"
|
||||||
objects: {
|
objects: {
|
||||||
attachment_record: Prisma.$AttachmentsPayload<ExtArgs> | null
|
|
||||||
bank_code: Prisma.$BankCodesPayload<ExtArgs>
|
bank_code: Prisma.$BankCodesPayload<ExtArgs>
|
||||||
timesheet: Prisma.$TimesheetsPayload<ExtArgs>
|
timesheet: Prisma.$TimesheetsPayload<ExtArgs>
|
||||||
archive: Prisma.$ExpensesArchivePayload<ExtArgs>[]
|
archive: Prisma.$ExpensesArchivePayload<ExtArgs>[]
|
||||||
|
|
@ -1174,7 +1060,8 @@ export type $ExpensesPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string
|
comment: string
|
||||||
attachment: number | null
|
attachment_key: string | null
|
||||||
|
attachment_name: string | null
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}, ExtArgs["result"]["expenses"]>
|
}, ExtArgs["result"]["expenses"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
|
|
@ -1570,7 +1457,6 @@ readonly fields: ExpensesFieldRefs;
|
||||||
*/
|
*/
|
||||||
export interface Prisma__ExpensesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__ExpensesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
attachment_record<T extends Prisma.Expenses$attachment_recordArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expenses$attachment_recordArgs<ExtArgs>>): Prisma.Prisma__AttachmentsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
||||||
bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
timesheet<T extends Prisma.TimesheetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TimesheetsDefaultArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
timesheet<T extends Prisma.TimesheetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TimesheetsDefaultArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
archive<T extends Prisma.Expenses$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expenses$archiveArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensesArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
archive<T extends Prisma.Expenses$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expenses$archiveArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensesArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
|
|
@ -1611,7 +1497,8 @@ export interface ExpensesFieldRefs {
|
||||||
readonly supervisor_comment: Prisma.FieldRef<"Expenses", 'String'>
|
readonly supervisor_comment: Prisma.FieldRef<"Expenses", 'String'>
|
||||||
readonly bank_code_id: Prisma.FieldRef<"Expenses", 'Int'>
|
readonly bank_code_id: Prisma.FieldRef<"Expenses", 'Int'>
|
||||||
readonly comment: Prisma.FieldRef<"Expenses", 'String'>
|
readonly comment: Prisma.FieldRef<"Expenses", 'String'>
|
||||||
readonly attachment: Prisma.FieldRef<"Expenses", 'Int'>
|
readonly attachment_key: Prisma.FieldRef<"Expenses", 'String'>
|
||||||
|
readonly attachment_name: Prisma.FieldRef<"Expenses", 'String'>
|
||||||
readonly mileage: Prisma.FieldRef<"Expenses", 'Decimal'>
|
readonly mileage: Prisma.FieldRef<"Expenses", 'Decimal'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2008,25 +1895,6 @@ export type ExpensesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Expenses.attachment_record
|
|
||||||
*/
|
|
||||||
export type Expenses$attachment_recordArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
/**
|
|
||||||
* Select specific fields to fetch from the Attachments
|
|
||||||
*/
|
|
||||||
select?: Prisma.AttachmentsSelect<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Omit specific fields from the Attachments
|
|
||||||
*/
|
|
||||||
omit?: Prisma.AttachmentsOmit<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Choose, which related nodes to fetch as well
|
|
||||||
*/
|
|
||||||
include?: Prisma.AttachmentsInclude<ExtArgs> | null
|
|
||||||
where?: Prisma.AttachmentsWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expenses.archive
|
* Expenses.archive
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ export type ExpensesArchiveAvgAggregateOutputType = {
|
||||||
timesheet_id: number | null
|
timesheet_id: number | null
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,7 +41,6 @@ export type ExpensesArchiveSumAggregateOutputType = {
|
||||||
timesheet_id: number | null
|
timesheet_id: number | null
|
||||||
amount: runtime.Decimal | null
|
amount: runtime.Decimal | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -57,7 +55,6 @@ export type ExpensesArchiveMinAggregateOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,7 +69,6 @@ export type ExpensesArchiveMaxAggregateOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number | null
|
bank_code_id: number | null
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,7 +83,6 @@ export type ExpensesArchiveCountAggregateOutputType = {
|
||||||
supervisor_comment: number
|
supervisor_comment: number
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: number
|
comment: number
|
||||||
attachment: number
|
|
||||||
mileage: number
|
mileage: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
@ -99,7 +94,6 @@ export type ExpensesArchiveAvgAggregateInputType = {
|
||||||
timesheet_id?: true
|
timesheet_id?: true
|
||||||
amount?: true
|
amount?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -109,7 +103,6 @@ export type ExpensesArchiveSumAggregateInputType = {
|
||||||
timesheet_id?: true
|
timesheet_id?: true
|
||||||
amount?: true
|
amount?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -124,7 +117,6 @@ export type ExpensesArchiveMinAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -139,7 +131,6 @@ export type ExpensesArchiveMaxAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,7 +145,6 @@ export type ExpensesArchiveCountAggregateInputType = {
|
||||||
supervisor_comment?: true
|
supervisor_comment?: true
|
||||||
bank_code_id?: true
|
bank_code_id?: true
|
||||||
comment?: true
|
comment?: true
|
||||||
attachment?: true
|
|
||||||
mileage?: true
|
mileage?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
@ -256,7 +246,6 @@ export type ExpensesArchiveGroupByOutputType = {
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
_count: ExpensesArchiveCountAggregateOutputType | null
|
_count: ExpensesArchiveCountAggregateOutputType | null
|
||||||
_avg: ExpensesArchiveAvgAggregateOutputType | null
|
_avg: ExpensesArchiveAvgAggregateOutputType | null
|
||||||
|
|
@ -294,9 +283,7 @@ export type ExpensesArchiveWhereInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
||||||
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null
|
|
||||||
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
|
|
||||||
expense?: Prisma.XOR<Prisma.ExpensesScalarRelationFilter, Prisma.ExpensesWhereInput>
|
expense?: Prisma.XOR<Prisma.ExpensesScalarRelationFilter, Prisma.ExpensesWhereInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -311,9 +298,7 @@ export type ExpensesArchiveOrderByWithRelationInput = {
|
||||||
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
attachment_record?: Prisma.AttachmentsOrderByWithRelationInput
|
|
||||||
expense?: Prisma.ExpensesOrderByWithRelationInput
|
expense?: Prisma.ExpensesOrderByWithRelationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -331,9 +316,7 @@ export type ExpensesArchiveWhereUniqueInput = Prisma.AtLeast<{
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
||||||
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null
|
|
||||||
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
|
|
||||||
expense?: Prisma.XOR<Prisma.ExpensesScalarRelationFilter, Prisma.ExpensesWhereInput>
|
expense?: Prisma.XOR<Prisma.ExpensesScalarRelationFilter, Prisma.ExpensesWhereInput>
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
|
|
@ -348,7 +331,6 @@ export type ExpensesArchiveOrderByWithAggregationInput = {
|
||||||
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
_count?: Prisma.ExpensesArchiveCountOrderByAggregateInput
|
_count?: Prisma.ExpensesArchiveCountOrderByAggregateInput
|
||||||
_avg?: Prisma.ExpensesArchiveAvgOrderByAggregateInput
|
_avg?: Prisma.ExpensesArchiveAvgOrderByAggregateInput
|
||||||
|
|
@ -371,7 +353,6 @@ export type ExpensesArchiveScalarWhereWithAggregatesInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null
|
supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null
|
||||||
bank_code_id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number
|
bank_code_id?: Prisma.IntWithAggregatesFilter<"ExpensesArchive"> | number
|
||||||
comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null
|
comment?: Prisma.StringNullableWithAggregatesFilter<"ExpensesArchive"> | string | null
|
||||||
attachment?: Prisma.IntNullableWithAggregatesFilter<"ExpensesArchive"> | number | null
|
|
||||||
mileage?: Prisma.DecimalNullableWithAggregatesFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableWithAggregatesFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -385,7 +366,6 @@ export type ExpensesArchiveCreateInput = {
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpenses_archiveInput
|
|
||||||
expense: Prisma.ExpensesCreateNestedOneWithoutArchiveInput
|
expense: Prisma.ExpensesCreateNestedOneWithoutArchiveInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -400,7 +380,6 @@ export type ExpensesArchiveUncheckedCreateInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
attachment?: number | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -414,7 +393,6 @@ export type ExpensesArchiveUpdateInput = {
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpenses_archiveNestedInput
|
|
||||||
expense?: Prisma.ExpensesUpdateOneRequiredWithoutArchiveNestedInput
|
expense?: Prisma.ExpensesUpdateOneRequiredWithoutArchiveNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -429,7 +407,6 @@ export type ExpensesArchiveUncheckedUpdateInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -444,7 +421,6 @@ export type ExpensesArchiveCreateManyInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
attachment?: number | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -471,7 +447,6 @@ export type ExpensesArchiveUncheckedUpdateManyInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -496,7 +471,6 @@ export type ExpensesArchiveCountOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -506,7 +480,6 @@ export type ExpensesArchiveAvgOrderByAggregateInput = {
|
||||||
timesheet_id?: Prisma.SortOrder
|
timesheet_id?: Prisma.SortOrder
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -521,7 +494,6 @@ export type ExpensesArchiveMaxOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -536,7 +508,6 @@ export type ExpensesArchiveMinOrderByAggregateInput = {
|
||||||
supervisor_comment?: Prisma.SortOrder
|
supervisor_comment?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
comment?: Prisma.SortOrder
|
comment?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -546,7 +517,6 @@ export type ExpensesArchiveSumOrderByAggregateInput = {
|
||||||
timesheet_id?: Prisma.SortOrder
|
timesheet_id?: Prisma.SortOrder
|
||||||
amount?: Prisma.SortOrder
|
amount?: Prisma.SortOrder
|
||||||
bank_code_id?: Prisma.SortOrder
|
bank_code_id?: Prisma.SortOrder
|
||||||
attachment?: Prisma.SortOrder
|
|
||||||
mileage?: Prisma.SortOrder
|
mileage?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -592,48 +562,6 @@ export type ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput = {
|
||||||
deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[]
|
deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesArchiveCreateNestedManyWithoutAttachment_recordInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope
|
|
||||||
connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedCreateNestedManyWithoutAttachment_recordInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope
|
|
||||||
connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUpdateManyWithoutAttachment_recordNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope
|
|
||||||
set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput[]
|
|
||||||
deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput[] | Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput[]
|
|
||||||
connectOrCreate?: Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput[]
|
|
||||||
upsert?: Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
createMany?: Prisma.ExpensesArchiveCreateManyAttachment_recordInputEnvelope
|
|
||||||
set?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
delete?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
connect?: Prisma.ExpensesArchiveWhereUniqueInput | Prisma.ExpensesArchiveWhereUniqueInput[]
|
|
||||||
update?: Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput[]
|
|
||||||
updateMany?: Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput[]
|
|
||||||
deleteMany?: Prisma.ExpensesArchiveScalarWhereInput | Prisma.ExpensesArchiveScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveCreateWithoutExpenseInput = {
|
export type ExpensesArchiveCreateWithoutExpenseInput = {
|
||||||
timesheet_id: number
|
timesheet_id: number
|
||||||
archived_at?: Date | string
|
archived_at?: Date | string
|
||||||
|
|
@ -644,7 +572,6 @@ export type ExpensesArchiveCreateWithoutExpenseInput = {
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpenses_archiveInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedCreateWithoutExpenseInput = {
|
export type ExpensesArchiveUncheckedCreateWithoutExpenseInput = {
|
||||||
|
|
@ -657,7 +584,6 @@ export type ExpensesArchiveUncheckedCreateWithoutExpenseInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
attachment?: number | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -701,63 +627,9 @@ export type ExpensesArchiveScalarWhereInput = {
|
||||||
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
supervisor_comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
bank_code_id?: Prisma.IntFilter<"ExpensesArchive"> | number
|
||||||
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
comment?: Prisma.StringNullableFilter<"ExpensesArchive"> | string | null
|
||||||
attachment?: Prisma.IntNullableFilter<"ExpensesArchive"> | number | null
|
|
||||||
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.DecimalNullableFilter<"ExpensesArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesArchiveCreateWithoutAttachment_recordInput = {
|
|
||||||
timesheet_id: number
|
|
||||||
archived_at?: Date | string
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
bank_code_id: number
|
|
||||||
comment?: string | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
expense: Prisma.ExpensesCreateNestedOneWithoutArchiveInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput = {
|
|
||||||
id?: number
|
|
||||||
expense_id: number
|
|
||||||
timesheet_id: number
|
|
||||||
archived_at?: Date | string
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
bank_code_id: number
|
|
||||||
comment?: string | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveCreateOrConnectWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesArchiveWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveCreateManyAttachment_recordInputEnvelope = {
|
|
||||||
data: Prisma.ExpensesArchiveCreateManyAttachment_recordInput | Prisma.ExpensesArchiveCreateManyAttachment_recordInput[]
|
|
||||||
skipDuplicates?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUpsertWithWhereUniqueWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesArchiveWhereUniqueInput
|
|
||||||
update: Prisma.XOR<Prisma.ExpensesArchiveUpdateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedUpdateWithoutAttachment_recordInput>
|
|
||||||
create: Prisma.XOR<Prisma.ExpensesArchiveCreateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedCreateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUpdateWithWhereUniqueWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesArchiveWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.ExpensesArchiveUpdateWithoutAttachment_recordInput, Prisma.ExpensesArchiveUncheckedUpdateWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUpdateManyWithWhereWithoutAttachment_recordInput = {
|
|
||||||
where: Prisma.ExpensesArchiveScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.ExpensesArchiveUpdateManyMutationInput, Prisma.ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveCreateManyExpenseInput = {
|
export type ExpensesArchiveCreateManyExpenseInput = {
|
||||||
id?: number
|
id?: number
|
||||||
timesheet_id: number
|
timesheet_id: number
|
||||||
|
|
@ -768,7 +640,6 @@ export type ExpensesArchiveCreateManyExpenseInput = {
|
||||||
supervisor_comment?: string | null
|
supervisor_comment?: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment?: string | null
|
comment?: string | null
|
||||||
attachment?: number | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -782,7 +653,6 @@ export type ExpensesArchiveUpdateWithoutExpenseInput = {
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpenses_archiveNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedUpdateWithoutExpenseInput = {
|
export type ExpensesArchiveUncheckedUpdateWithoutExpenseInput = {
|
||||||
|
|
@ -795,7 +665,6 @@ export type ExpensesArchiveUncheckedUpdateWithoutExpenseInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -809,62 +678,6 @@ export type ExpensesArchiveUncheckedUpdateManyWithoutExpenseInput = {
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveCreateManyAttachment_recordInput = {
|
|
||||||
id?: number
|
|
||||||
expense_id: number
|
|
||||||
timesheet_id: number
|
|
||||||
archived_at?: Date | string
|
|
||||||
date: Date | string
|
|
||||||
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved: boolean
|
|
||||||
supervisor_comment?: string | null
|
|
||||||
bank_code_id: number
|
|
||||||
comment?: string | null
|
|
||||||
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUpdateWithoutAttachment_recordInput = {
|
|
||||||
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
expense?: Prisma.ExpensesUpdateOneRequiredWithoutArchiveNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedUpdateWithoutAttachment_recordInput = {
|
|
||||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
expense_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExpensesArchiveUncheckedUpdateManyWithoutAttachment_recordInput = {
|
|
||||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
expense_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
||||||
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -881,9 +694,7 @@ export type ExpensesArchiveSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["expensesArchive"]>
|
}, ExtArgs["result"]["expensesArchive"]>
|
||||||
|
|
||||||
|
|
@ -898,9 +709,7 @@ export type ExpensesArchiveSelectCreateManyAndReturn<ExtArgs extends runtime.Typ
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["expensesArchive"]>
|
}, ExtArgs["result"]["expensesArchive"]>
|
||||||
|
|
||||||
|
|
@ -915,9 +724,7 @@ export type ExpensesArchiveSelectUpdateManyAndReturn<ExtArgs extends runtime.Typ
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["expensesArchive"]>
|
}, ExtArgs["result"]["expensesArchive"]>
|
||||||
|
|
||||||
|
|
@ -932,28 +739,23 @@ export type ExpensesArchiveSelectScalar = {
|
||||||
supervisor_comment?: boolean
|
supervisor_comment?: boolean
|
||||||
bank_code_id?: boolean
|
bank_code_id?: boolean
|
||||||
comment?: boolean
|
comment?: boolean
|
||||||
attachment?: boolean
|
|
||||||
mileage?: boolean
|
mileage?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExpensesArchiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expense_id" | "timesheet_id" | "archived_at" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment" | "mileage", ExtArgs["result"]["expensesArchive"]>
|
export type ExpensesArchiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expense_id" | "timesheet_id" | "archived_at" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "mileage", ExtArgs["result"]["expensesArchive"]>
|
||||||
export type ExpensesArchiveInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesArchiveInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
export type ExpensesArchiveIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesArchiveIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
export type ExpensesArchiveIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ExpensesArchiveIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
attachment_record?: boolean | Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>
|
|
||||||
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
expense?: boolean | Prisma.ExpensesDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type $ExpensesArchivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $ExpensesArchivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "ExpensesArchive"
|
name: "ExpensesArchive"
|
||||||
objects: {
|
objects: {
|
||||||
attachment_record: Prisma.$AttachmentsPayload<ExtArgs> | null
|
|
||||||
expense: Prisma.$ExpensesPayload<ExtArgs>
|
expense: Prisma.$ExpensesPayload<ExtArgs>
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
|
|
@ -967,7 +769,6 @@ export type $ExpensesArchivePayload<ExtArgs extends runtime.Types.Extensions.Int
|
||||||
supervisor_comment: string | null
|
supervisor_comment: string | null
|
||||||
bank_code_id: number
|
bank_code_id: number
|
||||||
comment: string | null
|
comment: string | null
|
||||||
attachment: number | null
|
|
||||||
mileage: runtime.Decimal | null
|
mileage: runtime.Decimal | null
|
||||||
}, ExtArgs["result"]["expensesArchive"]>
|
}, ExtArgs["result"]["expensesArchive"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
|
|
@ -1363,7 +1164,6 @@ readonly fields: ExpensesArchiveFieldRefs;
|
||||||
*/
|
*/
|
||||||
export interface Prisma__ExpensesArchiveClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__ExpensesArchiveClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
attachment_record<T extends Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExpensesArchive$attachment_recordArgs<ExtArgs>>): Prisma.Prisma__AttachmentsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
||||||
expense<T extends Prisma.ExpensesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExpensesDefaultArgs<ExtArgs>>): Prisma.Prisma__ExpensesClient<runtime.Types.Result.GetResult<Prisma.$ExpensesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
expense<T extends Prisma.ExpensesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExpensesDefaultArgs<ExtArgs>>): Prisma.Prisma__ExpensesClient<runtime.Types.Result.GetResult<Prisma.$ExpensesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
|
|
@ -1404,7 +1204,6 @@ export interface ExpensesArchiveFieldRefs {
|
||||||
readonly supervisor_comment: Prisma.FieldRef<"ExpensesArchive", 'String'>
|
readonly supervisor_comment: Prisma.FieldRef<"ExpensesArchive", 'String'>
|
||||||
readonly bank_code_id: Prisma.FieldRef<"ExpensesArchive", 'Int'>
|
readonly bank_code_id: Prisma.FieldRef<"ExpensesArchive", 'Int'>
|
||||||
readonly comment: Prisma.FieldRef<"ExpensesArchive", 'String'>
|
readonly comment: Prisma.FieldRef<"ExpensesArchive", 'String'>
|
||||||
readonly attachment: Prisma.FieldRef<"ExpensesArchive", 'Int'>
|
|
||||||
readonly mileage: Prisma.FieldRef<"ExpensesArchive", 'Decimal'>
|
readonly mileage: Prisma.FieldRef<"ExpensesArchive", 'Decimal'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1801,25 +1600,6 @@ export type ExpensesArchiveDeleteManyArgs<ExtArgs extends runtime.Types.Extensio
|
||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* ExpensesArchive.attachment_record
|
|
||||||
*/
|
|
||||||
export type ExpensesArchive$attachment_recordArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
/**
|
|
||||||
* Select specific fields to fetch from the Attachments
|
|
||||||
*/
|
|
||||||
select?: Prisma.AttachmentsSelect<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Omit specific fields from the Attachments
|
|
||||||
*/
|
|
||||||
omit?: Prisma.AttachmentsOmit<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Choose, which related nodes to fetch as well
|
|
||||||
*/
|
|
||||||
include?: Prisma.AttachmentsInclude<ExtArgs> | null
|
|
||||||
where?: Prisma.AttachmentsWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ExpensesArchive without action
|
* ExpensesArchive without action
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -207,9 +207,9 @@ model Expenses {
|
||||||
supervisor_comment String?
|
supervisor_comment String?
|
||||||
bank_code_id Int
|
bank_code_id Int
|
||||||
comment String
|
comment String
|
||||||
attachment Int?
|
attachment_key String?
|
||||||
|
attachment_name String?
|
||||||
mileage Decimal? @db.Decimal(12, 2)
|
mileage Decimal? @db.Decimal(12, 2)
|
||||||
attachment_record Attachments? @relation("ExpenseAttachment", fields: [attachment], references: [id])
|
|
||||||
bank_code BankCodes @relation("ExpenseBankCodes", fields: [bank_code_id], references: [id])
|
bank_code BankCodes @relation("ExpenseBankCodes", fields: [bank_code_id], references: [id])
|
||||||
timesheet Timesheets @relation("ExpensesTimesheet", fields: [timesheet_id], references: [id])
|
timesheet Timesheets @relation("ExpensesTimesheet", fields: [timesheet_id], references: [id])
|
||||||
archive ExpensesArchive[] @relation("ExpensesToArchive")
|
archive ExpensesArchive[] @relation("ExpensesToArchive")
|
||||||
|
|
@ -219,20 +219,18 @@ model Expenses {
|
||||||
}
|
}
|
||||||
|
|
||||||
model ExpensesArchive {
|
model ExpensesArchive {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
expense_id Int
|
expense_id Int
|
||||||
timesheet_id Int
|
timesheet_id Int
|
||||||
archived_at DateTime @default(now())
|
archived_at DateTime @default(now())
|
||||||
date DateTime @db.Date
|
date DateTime @db.Date
|
||||||
amount Decimal? @db.Decimal(12, 2)
|
amount Decimal? @db.Decimal(12, 2)
|
||||||
is_approved Boolean
|
is_approved Boolean
|
||||||
supervisor_comment String?
|
supervisor_comment String?
|
||||||
bank_code_id Int
|
bank_code_id Int
|
||||||
comment String?
|
comment String?
|
||||||
attachment Int?
|
mileage Decimal? @db.Decimal(12, 2)
|
||||||
mileage Decimal? @db.Decimal(12, 2)
|
expense Expenses @relation("ExpensesToArchive", fields: [expense_id], references: [id])
|
||||||
attachment_record Attachments? @relation("ExpenseArchiveAttachment", fields: [attachment], references: [id])
|
|
||||||
expense Expenses @relation("ExpensesToArchive", fields: [expense_id], references: [id])
|
|
||||||
|
|
||||||
@@map("expenses_archive")
|
@@map("expenses_archive")
|
||||||
}
|
}
|
||||||
|
|
@ -264,53 +262,6 @@ model Sessions {
|
||||||
@@map("sessions")
|
@@map("sessions")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Blobs {
|
|
||||||
sha256 String @id @db.Char(64)
|
|
||||||
size Int
|
|
||||||
mime String
|
|
||||||
storage_path String
|
|
||||||
refcount Int @default(0)
|
|
||||||
created_at DateTime @default(now())
|
|
||||||
attachments Attachments[] @relation("AttachmnentBlob")
|
|
||||||
|
|
||||||
@@map("blobs")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Attachments {
|
|
||||||
id Int @id @default(autoincrement())
|
|
||||||
sha256 String @db.Char(64)
|
|
||||||
owner_type String
|
|
||||||
owner_id String
|
|
||||||
status AttachmentStatus @default(ACTIVE)
|
|
||||||
created_by String
|
|
||||||
created_at DateTime @default(now())
|
|
||||||
original_name String
|
|
||||||
retention_policy RetentionPolicy
|
|
||||||
AttachmentVariants AttachmentVariants[] @relation("attachmentVariantAttachment")
|
|
||||||
blob Blobs @relation("AttachmnentBlob", fields: [sha256], references: [sha256])
|
|
||||||
expenses Expenses[] @relation("ExpenseAttachment")
|
|
||||||
expenses_archive ExpensesArchive[] @relation("ExpenseArchiveAttachment")
|
|
||||||
|
|
||||||
@@index([owner_type, owner_id, created_at])
|
|
||||||
@@index([sha256])
|
|
||||||
@@map("attachments")
|
|
||||||
}
|
|
||||||
|
|
||||||
model AttachmentVariants {
|
|
||||||
id Int @id @default(autoincrement())
|
|
||||||
attachment_id Int
|
|
||||||
variant String
|
|
||||||
bytes Int
|
|
||||||
width Int?
|
|
||||||
height Int?
|
|
||||||
created_at DateTime @default(now())
|
|
||||||
path String
|
|
||||||
attachment Attachments @relation("attachmentVariantAttachment", fields: [attachment_id], references: [id], onDelete: Cascade)
|
|
||||||
|
|
||||||
@@unique([attachment_id, variant])
|
|
||||||
@@map("attachment_variants")
|
|
||||||
}
|
|
||||||
|
|
||||||
model Preferences {
|
model Preferences {
|
||||||
user_id String @unique @db.Uuid
|
user_id String @unique @db.Uuid
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user