gradido/backend/src/graphql/model/ProjectBranding.ts

36 lines
829 B
TypeScript

import { ProjectBrandingSelect } from 'database'
import { ProjectBranding as ProjectBrandingZodSchema } from 'shared'
import { Field, Int, ObjectType } from 'type-graphql'
@ObjectType()
export class ProjectBranding {
// TODO: replace with valibot schema
constructor(projectBranding: ProjectBrandingZodSchema | ProjectBrandingSelect) {
Object.assign(this, projectBranding)
}
@Field(() => Int)
id: number
@Field(() => String)
name: string
@Field(() => String)
alias: string
@Field(() => String, { nullable: true })
description: string | null
@Field(() => Int, { nullable: true })
spaceId: number | null
@Field(() => String, { nullable: true })
spaceUrl: string | null
@Field(() => Boolean)
newUserToSpace: boolean
@Field(() => String, { nullable: true })
logoUrl: string | null
}