import { product } from '@prisma/client';
import { ApiProperty } from '@nestjs/swagger';

export class ProductEntity implements product {
	@ApiProperty()
	id: number;

	@ApiProperty()
	title: string;

	@ApiProperty()
	description: string;

	@ApiProperty()
	createdAt: Date;

	@ApiProperty()
	updatedAt: Date;

	@ApiProperty()
	categoryId: number;

	@ApiProperty()
	brand: string;

	@ApiProperty()
	brandId: string;

	@ApiProperty()
	cost: number;

	@ApiProperty()
	modifier: number;

	@ApiProperty()
	price: number;

	syncId: string | null;
	syncState: string;
	syncEnabled: boolean;
	syncLastUpdated: Date | null;
	syncLastSynced: Date | null;
	syncProviderId: number | null;
}
