update position date

This commit is contained in:
2024-12-16 11:10:40 +07:00
parent 4eb6cda520
commit 2d679aac85
2 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,11 @@ export class CifAccount {
})
open_date: Date;
@Column({
nullable: false,
})
position_date: Date;
@ManyToOne(() => Product, { onDelete: "RESTRICT" })
@JoinColumn()
product: Product

View File

@ -1,7 +1,6 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from 'typeorm';
import { Status } from '../types/status';
import { Category } from './categories';
import { CategorySource } from '../types/category_source';
@Entity('products')