Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {
EntityPartitionKey,
EntityRowKey,
EntityString,
EntityInt32,
EntityDateTime,
} from '@nestjs/azure-database';
@EntityPartitionKey('cats')
@EntityRowKey('id')
export class Cat {
@EntityString() url: string;
@EntityInt32() rating: number;
@EntityDateTime() createdAt: Date;
constructor(cat?: Partial) {
Object.assign(this, cat);
}
}