adding pilot
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import { Controller, Get, Headers, Query } from '@nestjs/common';
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Get,
|
||||
Headers,
|
||||
Post,
|
||||
Query,
|
||||
UnprocessableEntityException
|
||||
} from '@nestjs/common';
|
||||
import {
|
||||
AppConfigService,
|
||||
MsGraphService,
|
||||
@@ -8,6 +16,8 @@ import { FeatureFlagValue } from '@azure/app-configuration';
|
||||
import { Public } from '@noahspan/noahspan-modules';
|
||||
import { Person } from '@microsoft/microsoft-graph-types';
|
||||
import { AppService } from './app.service';
|
||||
import { PilotDTO } from './pilot/pilot.dto';
|
||||
import { PilotService } from './pilot/pilot.service';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
import {
|
||||
EntityDateTime,
|
||||
EntityPartitionKey,
|
||||
EntityRowKey,
|
||||
EntityString
|
||||
} from '@nestjs/azure-database';
|
||||
|
||||
@EntityPartitionKey('pilot')
|
||||
@EntityRowKey('id')
|
||||
export class Profile {
|
||||
partitionKey: string;
|
||||
rowKey: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
address: string;
|
||||
city: string;
|
||||
state: string;
|
||||
postalCode: string;
|
||||
lastFlightReview: Date;
|
||||
@EntityString() firstName: string;
|
||||
@EntityString() lastName: string;
|
||||
@EntityString() address: string;
|
||||
@EntityString() city: string;
|
||||
@EntityString() state: string;
|
||||
@EntityString() postalCode: string;
|
||||
@EntityDateTime() lastFlightReview: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user