add:product price
This commit is contained in:
		
							
								
								
									
										33
									
								
								src/transaction/entities/coa-type.entity.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								src/transaction/entities/coa-type.entity.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| import { | ||||
|   Entity, | ||||
|   Column, | ||||
|   PrimaryGeneratedColumn, | ||||
|   UpdateDateColumn, | ||||
|   DeleteDateColumn, | ||||
|   VersionColumn, | ||||
|   CreateDateColumn, | ||||
|   ManyToOne, | ||||
|   ManyToMany, | ||||
|   JoinTable, | ||||
| } from 'typeorm'; | ||||
| import { Product } from '../../product/entities/product.entity'; | ||||
| import { User } from '../../users/entities/user.entity'; | ||||
| import { BaseModel } from '../../config/basemodel.entity'; | ||||
|  | ||||
| enum balanceType { | ||||
|   DEBIT, | ||||
|   CREDIT, | ||||
| } | ||||
|  | ||||
| @Entity() | ||||
| export class CoaType extends BaseModel { | ||||
|   @Column() | ||||
|   name: string; | ||||
|  | ||||
|   @Column('text') | ||||
|   normalBalance: balanceType; | ||||
|  | ||||
|   @ManyToMany(() => User) | ||||
|   @JoinTable() | ||||
|   user: User[]; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user