File

src/models/category/entities/category.entity.ts

Description

Describes the properties of a Category in the database

Implements

Index

Properties

Properties

Optional id
Type : string

Category ID as UUID

name
Type : string

Category name

import { Prisma } from '@prisma/client';

/** Describes the properties of a Category in the database */
export class Category implements Prisma.CategoryUncheckedCreateInput {
  /**
   * Category ID as UUID
   * @example "e6cf9a58-438c-4fce-8d85-db3d22db270a"
   */
  id?: string;

  /**
   * Category name
   * @example "Decoration"
   */
  name: string;
}

results matching ""

    No results matching ""