import { ViewColumn, ViewEntity } from "typeorm"; @ViewEntity({ expression: `SELECT \`bma_ehr_organization_demo\`.\`profile\`.\`id\` AS \`Id\`, \`bma_ehr_organization_demo\`.\`profile\`.\`prefix\` AS \`prefix\`, \`bma_ehr_organization_demo\`.\`profile\`.\`firstName\` AS \`firstName\`, \`bma_ehr_organization_demo\`.\`profile\`.\`lastName\` AS \`lastName\`, \`bma_ehr_organization_demo\`.\`profile\`.\`citizenId\` AS \`citizenId\`, \`bma_ehr_organization_demo\`.\`profile\`.\`position\` AS \`position\`, \`bma_ehr_organization_demo\`.\`posMaster\`.\`isDirector\` AS \`isDirector\`, \`bma_ehr_organization_demo\`.\`posLevel\`.\`posLevelName\` AS \`posLevel\`, \`bma_ehr_organization_demo\`.\`posType\`.\`posTypeName\` AS \`posType\`, \`bma_ehr_organization_demo\`.\`posMaster\`.\`orgRootId\` AS \`orgRootId\`, NULL AS \`actFullName\` FROM (((\`bma_ehr_organization_demo\`.\`posMaster\` JOIN \`bma_ehr_organization_demo\`.\`profile\` ON ((\`bma_ehr_organization_demo\`.\`posMaster\`.\`current_holderId\` = \`bma_ehr_organization_demo\`.\`profile\`.\`id\`))) JOIN \`bma_ehr_organization_demo\`.\`posLevel\` ON ((\`bma_ehr_organization_demo\`.\`profile\`.\`posLevelId\` = \`bma_ehr_organization_demo\`.\`posLevel\`.\`id\`))) JOIN \`bma_ehr_organization_demo\`.\`posType\` ON ((\`bma_ehr_organization_demo\`.\`profile\`.\`posTypeId\` = \`bma_ehr_organization_demo\`.\`posType\`.\`id\`)))`, }) export class viewDirector { @ViewColumn() id: string; @ViewColumn() prefix: string; @ViewColumn() firstName: string; @ViewColumn() lastName: string; @ViewColumn() citizenId: string; @ViewColumn() position: string; @ViewColumn() posLevel: string; @ViewColumn() posType: string; @ViewColumn() isDirector: boolean; @ViewColumn() orgRootId: string; @ViewColumn() actFullName: string; }