feat: add time entry manager, controller, and API routes
This commit is contained in:
@@ -293,6 +293,8 @@ export type CompanyWhereInput = {
|
||||
credentials?: Prisma.CredentialListRelationFilter
|
||||
unifiSites?: Prisma.UnifiSiteListRelationFilter
|
||||
opportunities?: Prisma.OpportunityListRelationFilter
|
||||
timeEntries?: Prisma.TimeEntryListRelationFilter
|
||||
activities?: Prisma.ActivityListRelationFilter
|
||||
deletedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
enteredBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
serviceTickets?: Prisma.ServiceTicketListRelationFilter
|
||||
@@ -319,6 +321,8 @@ export type CompanyOrderByWithRelationInput = {
|
||||
credentials?: Prisma.CredentialOrderByRelationAggregateInput
|
||||
unifiSites?: Prisma.UnifiSiteOrderByRelationAggregateInput
|
||||
opportunities?: Prisma.OpportunityOrderByRelationAggregateInput
|
||||
timeEntries?: Prisma.TimeEntryOrderByRelationAggregateInput
|
||||
activities?: Prisma.ActivityOrderByRelationAggregateInput
|
||||
deletedBy?: Prisma.UserOrderByWithRelationInput
|
||||
enteredBy?: Prisma.UserOrderByWithRelationInput
|
||||
serviceTickets?: Prisma.ServiceTicketOrderByRelationAggregateInput
|
||||
@@ -348,6 +352,8 @@ export type CompanyWhereUniqueInput = Prisma.AtLeast<{
|
||||
credentials?: Prisma.CredentialListRelationFilter
|
||||
unifiSites?: Prisma.UnifiSiteListRelationFilter
|
||||
opportunities?: Prisma.OpportunityListRelationFilter
|
||||
timeEntries?: Prisma.TimeEntryListRelationFilter
|
||||
activities?: Prisma.ActivityListRelationFilter
|
||||
deletedBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
enteredBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
serviceTickets?: Prisma.ServiceTicketListRelationFilter
|
||||
@@ -414,6 +420,8 @@ export type CompanyCreateInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -440,6 +448,8 @@ export type CompanyUncheckedCreateInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -462,6 +472,8 @@ export type CompanyUpdateInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -488,6 +500,8 @@ export type CompanyUncheckedUpdateInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -798,6 +812,36 @@ export type CompanyUpdateOneWithoutOpportunitiesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutOpportunitiesInput, Prisma.CompanyUpdateWithoutOpportunitiesInput>, Prisma.CompanyUncheckedUpdateWithoutOpportunitiesInput>
|
||||
}
|
||||
|
||||
export type CompanyCreateNestedOneWithoutActivitiesInput = {
|
||||
create?: Prisma.XOR<Prisma.CompanyCreateWithoutActivitiesInput, Prisma.CompanyUncheckedCreateWithoutActivitiesInput>
|
||||
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutActivitiesInput
|
||||
connect?: Prisma.CompanyWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CompanyUpdateOneWithoutActivitiesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CompanyCreateWithoutActivitiesInput, Prisma.CompanyUncheckedCreateWithoutActivitiesInput>
|
||||
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutActivitiesInput
|
||||
upsert?: Prisma.CompanyUpsertWithoutActivitiesInput
|
||||
disconnect?: Prisma.CompanyWhereInput | boolean
|
||||
delete?: Prisma.CompanyWhereInput | boolean
|
||||
connect?: Prisma.CompanyWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutActivitiesInput, Prisma.CompanyUpdateWithoutActivitiesInput>, Prisma.CompanyUncheckedUpdateWithoutActivitiesInput>
|
||||
}
|
||||
|
||||
export type CompanyCreateNestedOneWithoutTimeEntriesInput = {
|
||||
create?: Prisma.XOR<Prisma.CompanyCreateWithoutTimeEntriesInput, Prisma.CompanyUncheckedCreateWithoutTimeEntriesInput>
|
||||
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTimeEntriesInput
|
||||
connect?: Prisma.CompanyWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CompanyUpdateOneRequiredWithoutTimeEntriesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CompanyCreateWithoutTimeEntriesInput, Prisma.CompanyUncheckedCreateWithoutTimeEntriesInput>
|
||||
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTimeEntriesInput
|
||||
upsert?: Prisma.CompanyUpsertWithoutTimeEntriesInput
|
||||
connect?: Prisma.CompanyWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutTimeEntriesInput, Prisma.CompanyUpdateWithoutTimeEntriesInput>, Prisma.CompanyUncheckedUpdateWithoutTimeEntriesInput>
|
||||
}
|
||||
|
||||
export type CompanyCreateNestedOneWithoutCredentialsInput = {
|
||||
create?: Prisma.XOR<Prisma.CompanyCreateWithoutCredentialsInput, Prisma.CompanyUncheckedCreateWithoutCredentialsInput>
|
||||
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutCredentialsInput
|
||||
@@ -830,6 +874,8 @@ export type CompanyCreateWithoutDeletedByInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutBillingCompanyInput
|
||||
@@ -854,6 +900,8 @@ export type CompanyUncheckedCreateWithoutDeletedByInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -886,6 +934,8 @@ export type CompanyCreateWithoutEnteredByInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutBillingCompanyInput
|
||||
@@ -910,6 +960,8 @@ export type CompanyUncheckedCreateWithoutEnteredByInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -993,6 +1045,8 @@ export type CompanyCreateWithoutUnifiSitesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1018,6 +1072,8 @@ export type CompanyUncheckedCreateWithoutUnifiSitesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -1055,6 +1111,8 @@ export type CompanyUpdateWithoutUnifiSitesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1080,6 +1138,8 @@ export type CompanyUncheckedUpdateWithoutUnifiSitesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1101,6 +1161,8 @@ export type CompanyCreateWithoutCompanyAddressesInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1126,6 +1188,8 @@ export type CompanyUncheckedCreateWithoutCompanyAddressesInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -1163,6 +1227,8 @@ export type CompanyUpdateWithoutCompanyAddressesInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1188,6 +1254,8 @@ export type CompanyUncheckedUpdateWithoutCompanyAddressesInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1209,6 +1277,8 @@ export type CompanyCreateWithoutContactsInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1234,6 +1304,8 @@ export type CompanyUncheckedCreateWithoutContactsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -1271,6 +1343,8 @@ export type CompanyUpdateWithoutContactsInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1296,6 +1370,8 @@ export type CompanyUncheckedUpdateWithoutContactsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1318,6 +1394,8 @@ export type CompanyCreateWithoutServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutBillingCompanyInput
|
||||
@@ -1343,6 +1421,8 @@ export type CompanyUncheckedCreateWithoutServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
|
||||
@@ -1369,6 +1449,8 @@ export type CompanyCreateWithoutBillingServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1394,6 +1476,8 @@ export type CompanyUncheckedCreateWithoutBillingServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
}
|
||||
|
||||
@@ -1431,6 +1515,8 @@ export type CompanyUpdateWithoutServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUpdateManyWithoutBillingCompanyNestedInput
|
||||
@@ -1456,6 +1542,8 @@ export type CompanyUncheckedUpdateWithoutServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
|
||||
@@ -1488,6 +1576,8 @@ export type CompanyUpdateWithoutBillingServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1513,6 +1603,8 @@ export type CompanyUncheckedUpdateWithoutBillingServiceTicketsInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
}
|
||||
|
||||
@@ -1533,6 +1625,8 @@ export type CompanyCreateWithoutOpportunitiesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1558,6 +1652,8 @@ export type CompanyUncheckedCreateWithoutOpportunitiesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -1595,6 +1691,8 @@ export type CompanyUpdateWithoutOpportunitiesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1620,6 +1718,240 @@ export type CompanyUncheckedUpdateWithoutOpportunitiesInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
|
||||
export type CompanyCreateWithoutActivitiesInput = {
|
||||
id: number
|
||||
uid?: string
|
||||
name: string
|
||||
phone?: string | null
|
||||
website?: string | null
|
||||
deleteFlag?: boolean
|
||||
dateDeleted?: Date | string | null
|
||||
taxId?: string | null
|
||||
taxExempt?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
contacts?: Prisma.ContactCreateNestedManyWithoutCompanyInput
|
||||
companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
|
||||
export type CompanyUncheckedCreateWithoutActivitiesInput = {
|
||||
id: number
|
||||
uid?: string
|
||||
name: string
|
||||
phone?: string | null
|
||||
website?: string | null
|
||||
deleteFlag?: boolean
|
||||
dateDeleted?: Date | string | null
|
||||
taxId?: string | null
|
||||
taxExempt?: boolean
|
||||
enteredById?: string | null
|
||||
deletedById?: string | null
|
||||
deletedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
contacts?: Prisma.ContactUncheckedCreateNestedManyWithoutCompanyInput
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
|
||||
export type CompanyCreateOrConnectWithoutActivitiesInput = {
|
||||
where: Prisma.CompanyWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CompanyCreateWithoutActivitiesInput, Prisma.CompanyUncheckedCreateWithoutActivitiesInput>
|
||||
}
|
||||
|
||||
export type CompanyUpsertWithoutActivitiesInput = {
|
||||
update: Prisma.XOR<Prisma.CompanyUpdateWithoutActivitiesInput, Prisma.CompanyUncheckedUpdateWithoutActivitiesInput>
|
||||
create: Prisma.XOR<Prisma.CompanyCreateWithoutActivitiesInput, Prisma.CompanyUncheckedCreateWithoutActivitiesInput>
|
||||
where?: Prisma.CompanyWhereInput
|
||||
}
|
||||
|
||||
export type CompanyUpdateToOneWithWhereWithoutActivitiesInput = {
|
||||
where?: Prisma.CompanyWhereInput
|
||||
data: Prisma.XOR<Prisma.CompanyUpdateWithoutActivitiesInput, Prisma.CompanyUncheckedUpdateWithoutActivitiesInput>
|
||||
}
|
||||
|
||||
export type CompanyUpdateWithoutActivitiesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deleteFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dateDeleted?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
taxExempt?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
contacts?: Prisma.ContactUpdateManyWithoutCompanyNestedInput
|
||||
companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
|
||||
export type CompanyUncheckedUpdateWithoutActivitiesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deleteFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dateDeleted?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
taxExempt?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
enteredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deletedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
contacts?: Prisma.ContactUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
|
||||
export type CompanyCreateWithoutTimeEntriesInput = {
|
||||
id: number
|
||||
uid?: string
|
||||
name: string
|
||||
phone?: string | null
|
||||
website?: string | null
|
||||
deleteFlag?: boolean
|
||||
dateDeleted?: Date | string | null
|
||||
taxId?: string | null
|
||||
taxExempt?: boolean
|
||||
deletedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
contacts?: Prisma.ContactCreateNestedManyWithoutCompanyInput
|
||||
companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
|
||||
export type CompanyUncheckedCreateWithoutTimeEntriesInput = {
|
||||
id: number
|
||||
uid?: string
|
||||
name: string
|
||||
phone?: string | null
|
||||
website?: string | null
|
||||
deleteFlag?: boolean
|
||||
dateDeleted?: Date | string | null
|
||||
taxId?: string | null
|
||||
taxExempt?: boolean
|
||||
enteredById?: string | null
|
||||
deletedById?: string | null
|
||||
deletedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
contacts?: Prisma.ContactUncheckedCreateNestedManyWithoutCompanyInput
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutCompanyInput
|
||||
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
|
||||
export type CompanyCreateOrConnectWithoutTimeEntriesInput = {
|
||||
where: Prisma.CompanyWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CompanyCreateWithoutTimeEntriesInput, Prisma.CompanyUncheckedCreateWithoutTimeEntriesInput>
|
||||
}
|
||||
|
||||
export type CompanyUpsertWithoutTimeEntriesInput = {
|
||||
update: Prisma.XOR<Prisma.CompanyUpdateWithoutTimeEntriesInput, Prisma.CompanyUncheckedUpdateWithoutTimeEntriesInput>
|
||||
create: Prisma.XOR<Prisma.CompanyCreateWithoutTimeEntriesInput, Prisma.CompanyUncheckedCreateWithoutTimeEntriesInput>
|
||||
where?: Prisma.CompanyWhereInput
|
||||
}
|
||||
|
||||
export type CompanyUpdateToOneWithWhereWithoutTimeEntriesInput = {
|
||||
where?: Prisma.CompanyWhereInput
|
||||
data: Prisma.XOR<Prisma.CompanyUpdateWithoutTimeEntriesInput, Prisma.CompanyUncheckedUpdateWithoutTimeEntriesInput>
|
||||
}
|
||||
|
||||
export type CompanyUpdateWithoutTimeEntriesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deleteFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dateDeleted?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
taxExempt?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
contacts?: Prisma.ContactUpdateManyWithoutCompanyNestedInput
|
||||
companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
|
||||
export type CompanyUncheckedUpdateWithoutTimeEntriesInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
website?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deleteFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
dateDeleted?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
taxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
taxExempt?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
enteredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deletedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
contacts?: Prisma.ContactUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1641,6 +1973,8 @@ export type CompanyCreateWithoutCredentialsInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityCreateNestedManyWithoutCompanyInput
|
||||
deletedBy?: Prisma.UserCreateNestedOneWithoutCompaniesDeletedInput
|
||||
enteredBy?: Prisma.UserCreateNestedOneWithoutCompaniesEnteredInput
|
||||
serviceTickets?: Prisma.ServiceTicketCreateNestedManyWithoutCompanyInput
|
||||
@@ -1666,6 +2000,8 @@ export type CompanyUncheckedCreateWithoutCredentialsInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedCreateNestedManyWithoutCompanyInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
||||
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedCreateNestedManyWithoutCompanyInput
|
||||
activities?: Prisma.ActivityUncheckedCreateNestedManyWithoutCompanyInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutCompanyInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedCreateNestedManyWithoutBillingCompanyInput
|
||||
}
|
||||
@@ -1703,6 +2039,8 @@ export type CompanyUpdateWithoutCredentialsInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
@@ -1728,6 +2066,8 @@ export type CompanyUncheckedUpdateWithoutCredentialsInput = {
|
||||
companyAddresses?: Prisma.CompanyAddressUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1782,6 +2122,8 @@ export type CompanyUpdateWithoutDeletedByInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
enteredBy?: Prisma.UserUpdateOneWithoutCompaniesEnteredNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUpdateManyWithoutBillingCompanyNestedInput
|
||||
@@ -1806,6 +2148,8 @@ export type CompanyUncheckedUpdateWithoutDeletedByInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1844,6 +2188,8 @@ export type CompanyUpdateWithoutEnteredByInput = {
|
||||
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUpdateManyWithoutCompanyNestedInput
|
||||
deletedBy?: Prisma.UserUpdateOneWithoutCompaniesDeletedNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUpdateManyWithoutBillingCompanyNestedInput
|
||||
@@ -1868,6 +2214,8 @@ export type CompanyUncheckedUpdateWithoutEnteredByInput = {
|
||||
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
timeEntries?: Prisma.TimeEntryUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
activities?: Prisma.ActivityUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
serviceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutCompanyNestedInput
|
||||
billingServiceTickets?: Prisma.ServiceTicketUncheckedUpdateManyWithoutBillingCompanyNestedInput
|
||||
}
|
||||
@@ -1899,6 +2247,8 @@ export type CompanyCountOutputType = {
|
||||
credentials: number
|
||||
unifiSites: number
|
||||
opportunities: number
|
||||
timeEntries: number
|
||||
activities: number
|
||||
serviceTickets: number
|
||||
billingServiceTickets: number
|
||||
}
|
||||
@@ -1909,6 +2259,8 @@ export type CompanyCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
|
||||
credentials?: boolean | CompanyCountOutputTypeCountCredentialsArgs
|
||||
unifiSites?: boolean | CompanyCountOutputTypeCountUnifiSitesArgs
|
||||
opportunities?: boolean | CompanyCountOutputTypeCountOpportunitiesArgs
|
||||
timeEntries?: boolean | CompanyCountOutputTypeCountTimeEntriesArgs
|
||||
activities?: boolean | CompanyCountOutputTypeCountActivitiesArgs
|
||||
serviceTickets?: boolean | CompanyCountOutputTypeCountServiceTicketsArgs
|
||||
billingServiceTickets?: boolean | CompanyCountOutputTypeCountBillingServiceTicketsArgs
|
||||
}
|
||||
@@ -1958,6 +2310,20 @@ export type CompanyCountOutputTypeCountOpportunitiesArgs<ExtArgs extends runtime
|
||||
where?: Prisma.OpportunityWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CompanyCountOutputType without action
|
||||
*/
|
||||
export type CompanyCountOutputTypeCountTimeEntriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.TimeEntryWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CompanyCountOutputType without action
|
||||
*/
|
||||
export type CompanyCountOutputTypeCountActivitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ActivityWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CompanyCountOutputType without action
|
||||
*/
|
||||
@@ -1993,6 +2359,8 @@ export type CompanySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
credentials?: boolean | Prisma.Company$credentialsArgs<ExtArgs>
|
||||
unifiSites?: boolean | Prisma.Company$unifiSitesArgs<ExtArgs>
|
||||
opportunities?: boolean | Prisma.Company$opportunitiesArgs<ExtArgs>
|
||||
timeEntries?: boolean | Prisma.Company$timeEntriesArgs<ExtArgs>
|
||||
activities?: boolean | Prisma.Company$activitiesArgs<ExtArgs>
|
||||
deletedBy?: boolean | Prisma.Company$deletedByArgs<ExtArgs>
|
||||
enteredBy?: boolean | Prisma.Company$enteredByArgs<ExtArgs>
|
||||
serviceTickets?: boolean | Prisma.Company$serviceTicketsArgs<ExtArgs>
|
||||
@@ -2062,6 +2430,8 @@ export type CompanyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
credentials?: boolean | Prisma.Company$credentialsArgs<ExtArgs>
|
||||
unifiSites?: boolean | Prisma.Company$unifiSitesArgs<ExtArgs>
|
||||
opportunities?: boolean | Prisma.Company$opportunitiesArgs<ExtArgs>
|
||||
timeEntries?: boolean | Prisma.Company$timeEntriesArgs<ExtArgs>
|
||||
activities?: boolean | Prisma.Company$activitiesArgs<ExtArgs>
|
||||
deletedBy?: boolean | Prisma.Company$deletedByArgs<ExtArgs>
|
||||
enteredBy?: boolean | Prisma.Company$enteredByArgs<ExtArgs>
|
||||
serviceTickets?: boolean | Prisma.Company$serviceTicketsArgs<ExtArgs>
|
||||
@@ -2085,6 +2455,8 @@ export type $CompanyPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
credentials: Prisma.$CredentialPayload<ExtArgs>[]
|
||||
unifiSites: Prisma.$UnifiSitePayload<ExtArgs>[]
|
||||
opportunities: Prisma.$OpportunityPayload<ExtArgs>[]
|
||||
timeEntries: Prisma.$TimeEntryPayload<ExtArgs>[]
|
||||
activities: Prisma.$ActivityPayload<ExtArgs>[]
|
||||
deletedBy: Prisma.$UserPayload<ExtArgs> | null
|
||||
enteredBy: Prisma.$UserPayload<ExtArgs> | null
|
||||
serviceTickets: Prisma.$ServiceTicketPayload<ExtArgs>[]
|
||||
@@ -2504,6 +2876,8 @@ export interface Prisma__CompanyClient<T, Null = never, ExtArgs extends runtime.
|
||||
credentials<T extends Prisma.Company$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
unifiSites<T extends Prisma.Company$unifiSitesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$unifiSitesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
opportunities<T extends Prisma.Company$opportunitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$opportunitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
timeEntries<T extends Prisma.Company$timeEntriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$timeEntriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimeEntryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
activities<T extends Prisma.Company$activitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$activitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
deletedBy<T extends Prisma.Company$deletedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$deletedByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
enteredBy<T extends Prisma.Company$enteredByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$enteredByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
serviceTickets<T extends Prisma.Company$serviceTicketsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$serviceTicketsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceTicketPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
@@ -3071,6 +3445,54 @@ export type Company$opportunitiesArgs<ExtArgs extends runtime.Types.Extensions.I
|
||||
distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Company.timeEntries
|
||||
*/
|
||||
export type Company$timeEntriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the TimeEntry
|
||||
*/
|
||||
select?: Prisma.TimeEntrySelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the TimeEntry
|
||||
*/
|
||||
omit?: Prisma.TimeEntryOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.TimeEntryInclude<ExtArgs> | null
|
||||
where?: Prisma.TimeEntryWhereInput
|
||||
orderBy?: Prisma.TimeEntryOrderByWithRelationInput | Prisma.TimeEntryOrderByWithRelationInput[]
|
||||
cursor?: Prisma.TimeEntryWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.TimeEntryScalarFieldEnum | Prisma.TimeEntryScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Company.activities
|
||||
*/
|
||||
export type Company$activitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Activity
|
||||
*/
|
||||
select?: Prisma.ActivitySelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Activity
|
||||
*/
|
||||
omit?: Prisma.ActivityOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ActivityInclude<ExtArgs> | null
|
||||
where?: Prisma.ActivityWhereInput
|
||||
orderBy?: Prisma.ActivityOrderByWithRelationInput | Prisma.ActivityOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ActivityWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ActivityScalarFieldEnum | Prisma.ActivityScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Company.deletedBy
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user