Initial commit with Email Import Wizard and Task Processor updates
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn, Index } from 'typeorm';
|
||||
import { Attachment } from './attachment.entity';
|
||||
|
||||
@Entity('Contents')
|
||||
export class Content {
|
||||
@PrimaryGeneratedColumn({ type: 'int' })
|
||||
Id!: number;
|
||||
|
||||
@Index('IX_Contents_AttachmentEntityId', { unique: true })
|
||||
@Column({ type: 'int' })
|
||||
AttachmentEntityId!: number;
|
||||
|
||||
@Column({ name: 'Content', type: 'longblob' })
|
||||
Content1!: Buffer;
|
||||
|
||||
@Column({ type: 'bigint' })
|
||||
ContentLength!: number;
|
||||
|
||||
@OneToOne(() => Attachment, (attachment) => attachment.Content)
|
||||
@JoinColumn({ name: 'AttachmentEntityId' })
|
||||
AttachmentEntity!: Attachment;
|
||||
}
|
||||
Reference in New Issue
Block a user