feat: 产品管理相关接口
This commit is contained in:
1 parent
e0cf2c00d6
commit
79255480bc
7 files changed
+42
-1
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user