Initial commit with Email Import Wizard and Task Processor updates
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import {
|
||||
Entity,
|
||||
PrimaryGeneratedColumn,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
export type BarcodeActionType = 'SEND_TO_PAPERLESS' | 'SEND_BY_EMAIL';
|
||||
|
||||
@Entity('barcode_templates')
|
||||
export class BarcodeTemplate {
|
||||
@PrimaryGeneratedColumn()
|
||||
Id!: number;
|
||||
|
||||
@Column({ type: 'varchar', length: 100 })
|
||||
Name!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 500 })
|
||||
Regex!: string;
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
SplitBefore!: boolean;
|
||||
|
||||
@Column({ type: 'varchar', length: 500, nullable: true })
|
||||
DateinameTemplate!: string | null;
|
||||
|
||||
@Column({ type: 'json' })
|
||||
Actions!: BarcodeActionType[];
|
||||
|
||||
@CreateDateColumn()
|
||||
CreatedAt!: Date;
|
||||
|
||||
@UpdateDateColumn()
|
||||
UpdatedAt!: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user