mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
36 lines
753 B
TypeScript
36 lines
753 B
TypeScript
import { ProjectBranding as dbProjectBranding } from '@entity/ProjectBranding'
|
|
import { ObjectType, Field, Int } from 'type-graphql'
|
|
|
|
import { Space } from './Space'
|
|
|
|
@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
|
|
}
|