Add logo on navbar workspace container (#147)
This commit is contained in:
@ -1213,6 +1213,7 @@ export type Workspace = {
|
||||
displayName: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
logo?: Maybe<Scalars['String']>;
|
||||
people?: Maybe<Array<Person>>;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
@ -1242,6 +1243,7 @@ export type WorkspaceCreateWithoutWorkspaceMemberInput = {
|
||||
displayName: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
id: Scalars['String'];
|
||||
logo?: InputMaybe<Scalars['String']>;
|
||||
people?: InputMaybe<PersonCreateNestedManyWithoutWorkspaceInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
@ -1353,6 +1355,7 @@ export type WorkspaceOrderByWithRelationInput = {
|
||||
displayName?: InputMaybe<SortOrder>;
|
||||
domainName?: InputMaybe<SortOrder>;
|
||||
id?: InputMaybe<SortOrder>;
|
||||
logo?: InputMaybe<SortOrder>;
|
||||
people?: InputMaybe<PersonOrderByRelationAggregateInput>;
|
||||
updatedAt?: InputMaybe<SortOrder>;
|
||||
};
|
||||
@ -1377,6 +1380,7 @@ export type WorkspaceUpdateWithoutWorkspaceMemberInput = {
|
||||
displayName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
logo?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutWorkspaceNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
};
|
||||
@ -1397,6 +1401,7 @@ export type WorkspaceWhereInput = {
|
||||
displayName?: InputMaybe<StringFilter>;
|
||||
domainName?: InputMaybe<StringFilter>;
|
||||
id?: InputMaybe<StringFilter>;
|
||||
logo?: InputMaybe<StringNullableFilter>;
|
||||
people?: InputMaybe<PersonListRelationFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
};
|
||||
@ -1431,7 +1436,6 @@ export type InsertCompanyMutationVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
domain_name: Scalars['String'];
|
||||
account_owner_id?: InputMaybe<Scalars['String']>;
|
||||
created_at?: InputMaybe<Scalars['DateTime']>;
|
||||
address: Scalars['String'];
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
@ -1476,7 +1480,6 @@ export type InsertPersonMutationVariables = Exact<{
|
||||
lastname: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
city: Scalars['String'];
|
||||
company_id?: InputMaybe<Scalars['String']>;
|
||||
email: Scalars['String'];
|
||||
created_at?: InputMaybe<Scalars['DateTime']>;
|
||||
}>;
|
||||
@ -1525,7 +1528,7 @@ export type GetCurrentUserQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetCurrentUserQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, email: string, displayName: string, workspace_member?: { __typename?: 'WorkspaceMember', workspace: { __typename?: 'Workspace', id: string, domain_name: string, display_name: string } } | null }> };
|
||||
export type GetCurrentUserQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, email: string, displayName: string, workspace_member?: { __typename?: 'WorkspaceMember', workspace: { __typename?: 'Workspace', id: string, logo?: string | null, domain_name: string, display_name: string } } | null }> };
|
||||
|
||||
export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
@ -1632,9 +1635,9 @@ export type UpdateCompanyMutationHookResult = ReturnType<typeof useUpdateCompany
|
||||
export type UpdateCompanyMutationResult = Apollo.MutationResult<UpdateCompanyMutation>;
|
||||
export type UpdateCompanyMutationOptions = Apollo.BaseMutationOptions<UpdateCompanyMutation, UpdateCompanyMutationVariables>;
|
||||
export const InsertCompanyDocument = gql`
|
||||
mutation InsertCompany($id: String!, $name: String!, $domain_name: String!, $account_owner_id: String, $created_at: DateTime, $address: String!, $employees: Int) {
|
||||
mutation InsertCompany($id: String!, $name: String!, $domain_name: String!, $created_at: DateTime, $address: String!, $employees: Int) {
|
||||
createOneCompany(
|
||||
data: {id: $id, name: $name, domainName: $domain_name, accountOwner: {connect: {id: $account_owner_id}}, createdAt: $created_at, address: $address, employees: $employees}
|
||||
data: {id: $id, name: $name, domainName: $domain_name, createdAt: $created_at, address: $address, employees: $employees}
|
||||
) {
|
||||
address
|
||||
created_at: createdAt
|
||||
@ -1663,7 +1666,6 @@ export type InsertCompanyMutationFn = Apollo.MutationFunction<InsertCompanyMutat
|
||||
* id: // value for 'id'
|
||||
* name: // value for 'name'
|
||||
* domain_name: // value for 'domain_name'
|
||||
* account_owner_id: // value for 'account_owner_id'
|
||||
* created_at: // value for 'created_at'
|
||||
* address: // value for 'address'
|
||||
* employees: // value for 'employees'
|
||||
@ -1813,9 +1815,9 @@ export type UpdatePeopleMutationHookResult = ReturnType<typeof useUpdatePeopleMu
|
||||
export type UpdatePeopleMutationResult = Apollo.MutationResult<UpdatePeopleMutation>;
|
||||
export type UpdatePeopleMutationOptions = Apollo.BaseMutationOptions<UpdatePeopleMutation, UpdatePeopleMutationVariables>;
|
||||
export const InsertPersonDocument = gql`
|
||||
mutation InsertPerson($id: String!, $firstname: String!, $lastname: String!, $phone: String!, $city: String!, $company_id: String, $email: String!, $created_at: DateTime) {
|
||||
mutation InsertPerson($id: String!, $firstname: String!, $lastname: String!, $phone: String!, $city: String!, $email: String!, $created_at: DateTime) {
|
||||
createOnePerson(
|
||||
data: {id: $id, firstname: $firstname, lastname: $lastname, phone: $phone, city: $city, company: {connect: {id: $company_id}}, email: $email, createdAt: $created_at}
|
||||
data: {id: $id, firstname: $firstname, lastname: $lastname, phone: $phone, city: $city, email: $email, createdAt: $created_at}
|
||||
) {
|
||||
city
|
||||
company {
|
||||
@ -1852,7 +1854,6 @@ export type InsertPersonMutationFn = Apollo.MutationFunction<InsertPersonMutatio
|
||||
* lastname: // value for 'lastname'
|
||||
* phone: // value for 'phone'
|
||||
* city: // value for 'city'
|
||||
* company_id: // value for 'company_id'
|
||||
* email: // value for 'email'
|
||||
* created_at: // value for 'created_at'
|
||||
* },
|
||||
@ -2061,6 +2062,7 @@ export const GetCurrentUserDocument = gql`
|
||||
id
|
||||
domain_name: domainName
|
||||
display_name: displayName
|
||||
logo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ export const GET_CURRENT_USER = gql`
|
||||
id
|
||||
domain_name: domainName
|
||||
display_name: displayName
|
||||
logo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
AUTH_GOOGLE_CLIENT_ID=REPLACE_ME
|
||||
AUTH_GOOGLE_CLIENT_SECRET=REPLACE_ME
|
||||
AUTH_GOOGLE_CALLBACK_URL=http://localhost:3000/google/redirect
|
||||
AUTH_GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/redirect
|
||||
JWT_SECRET=secret_jwt
|
||||
JWT_EXPIRES_IN=300
|
||||
PG_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/default?connection_limit=1
|
||||
|
||||
@ -22,6 +22,9 @@ export class WorkspaceCountAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
logo?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
_all?: true;
|
||||
}
|
||||
|
||||
@ -23,6 +23,9 @@ export class WorkspaceCountAggregate {
|
||||
@Field(() => Int, {nullable:false})
|
||||
displayName!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
logo!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
_all!: number;
|
||||
}
|
||||
|
||||
@ -22,4 +22,7 @@ export class WorkspaceCountOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
logo?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -21,4 +21,7 @@ export class WorkspaceCreateManyInput {
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
}
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceCreateWithoutCompaniesInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceCreateWithoutPeopleInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
companies?: CompanyCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -25,6 +25,9 @@ export class WorkspaceCreateInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -25,6 +25,9 @@ export class WorkspaceGroupBy {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceCountAggregate, {nullable:true})
|
||||
_count?: WorkspaceCountAggregate;
|
||||
|
||||
|
||||
@ -21,4 +21,7 @@ export class WorkspaceMaxAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
logo?: true;
|
||||
}
|
||||
|
||||
@ -21,4 +21,7 @@ export class WorkspaceMaxAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
}
|
||||
|
||||
@ -22,4 +22,7 @@ export class WorkspaceMaxOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
logo?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -21,4 +21,7 @@ export class WorkspaceMinAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
logo?: true;
|
||||
}
|
||||
|
||||
@ -21,4 +21,7 @@ export class WorkspaceMinAggregate {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
}
|
||||
|
||||
@ -22,4 +22,7 @@ export class WorkspaceMinOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
logo?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -26,6 +26,9 @@ export class WorkspaceOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
logo?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => WorkspaceCountOrderByAggregateInput, {nullable:true})
|
||||
_count?: WorkspaceCountOrderByAggregateInput;
|
||||
|
||||
|
||||
@ -26,6 +26,9 @@ export class WorkspaceOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
logo?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => WorkspaceMemberOrderByRelationAggregateInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberOrderByRelationAggregateInput;
|
||||
|
||||
|
||||
@ -6,7 +6,8 @@ export enum WorkspaceScalarFieldEnum {
|
||||
updatedAt = "updatedAt",
|
||||
deletedAt = "deletedAt",
|
||||
domainName = "domainName",
|
||||
displayName = "displayName"
|
||||
displayName = "displayName",
|
||||
logo = "logo"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class WorkspaceScalarWhereWithAggregatesInput {
|
||||
@ -33,4 +34,7 @@ export class WorkspaceScalarWhereWithAggregatesInput {
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
displayName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
|
||||
logo?: StringNullableWithAggregatesFilter;
|
||||
}
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceUncheckedCreateWithoutCompaniesInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceUncheckedCreateWithoutPeopleInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => CompanyUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
companies?: CompanyUncheckedCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -25,6 +25,9 @@ export class WorkspaceUncheckedCreateInput {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo?: string;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class WorkspaceUncheckedUpdateManyInput {
|
||||
@ -24,4 +25,7 @@ export class WorkspaceUncheckedUpdateManyInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input';
|
||||
import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUncheckedUpdateWithoutCompaniesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUncheckedUpdateWithoutPeopleInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input';
|
||||
import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-unchecked-update-many-without-workspace-nested.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../company/company-unchecked-update-many-without-workspace-nested.input';
|
||||
import { PersonUncheckedUpdateManyWithoutWorkspaceNestedInput } from '../person/person-unchecked-update-many-without-workspace-nested.input';
|
||||
@ -28,6 +29,9 @@ export class WorkspaceUncheckedUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class WorkspaceUpdateManyMutationInput {
|
||||
@ -24,4 +25,7 @@ export class WorkspaceUpdateManyMutationInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input';
|
||||
import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUpdateWithoutCompaniesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input';
|
||||
import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUpdateWithoutPeopleInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input';
|
||||
import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input';
|
||||
|
||||
@ -27,6 +28,9 @@ export class WorkspaceUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
companies?: CompanyUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput } from '../workspace-member/workspace-member-update-many-without-workspace-nested.input';
|
||||
import { CompanyUpdateManyWithoutWorkspaceNestedInput } from '../company/company-update-many-without-workspace-nested.input';
|
||||
import { PersonUpdateManyWithoutWorkspaceNestedInput } from '../person/person-update-many-without-workspace-nested.input';
|
||||
@ -28,6 +29,9 @@ export class WorkspaceUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
logo?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { WorkspaceMemberListRelationFilter } from '../workspace-member/workspace-member-list-relation-filter.input';
|
||||
import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input';
|
||||
import { PersonListRelationFilter } from '../person/person-list-relation-filter.input';
|
||||
@ -37,6 +38,9 @@ export class WorkspaceWhereInput {
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
displayName?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
logo?: StringNullableFilter;
|
||||
|
||||
@Field(() => WorkspaceMemberListRelationFilter, {nullable:true})
|
||||
WorkspaceMember?: WorkspaceMemberListRelationFilter;
|
||||
|
||||
|
||||
@ -27,6 +27,9 @@ export class Workspace {
|
||||
@Field(() => String, {nullable:false})
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
logo!: string | null;
|
||||
|
||||
@Field(() => [WorkspaceMember], {nullable:true})
|
||||
WorkspaceMember?: Array<WorkspaceMember>;
|
||||
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "workspaces" ADD COLUMN "logo" TEXT;
|
||||
@ -42,6 +42,7 @@ model Workspace {
|
||||
deletedAt DateTime?
|
||||
domainName String @unique
|
||||
displayName String
|
||||
logo String?
|
||||
WorkspaceMember WorkspaceMember[]
|
||||
companies Company[]
|
||||
people Person[]
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user