feat: 产品管理相关接口

This commit is contained in:
ilhamtahir committed 2025-01-19 22:05:29 +08:00
1 parent e0cf2c00d6
commit 79255480bc
7 files changed
+42 -1

No files matched your search

+8
View File
@@ -1,12 +1,20 @@
import { BaseEntity } from '@/core/entity/base.entity';
import { Column, Entity, OneToMany } from 'typeorm';
import { FeedingPlanProduct } from '@/pet-feeder/entity/feeding-plan-product.entity';
import { ProductCategory } from '@/pet-feeder/enum/product-category';
@Entity()
export class Product extends BaseEntity {
@Column()
name: string;
@Column({
type: 'enum',
enum: ProductCategory,
default: ProductCategory.DRY_FOOD,
})
category: ProductCategory;
@Column()
photo: string;