mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
34 lines
720 B
TypeScript
34 lines
720 B
TypeScript
import { ProjectBranding as dbProjectBranding } from '@entity/ProjectBranding'
|
|
import { ObjectType, Field, Int } from 'type-graphql'
|
|
|
|
@ObjectType()
|
|
export class ProjectBranding {
|
|
constructor(projectBranding: dbProjectBranding) {
|
|
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
|
|
}
|