11 lines
261 B
TypeScript
11 lines
261 B
TypeScript
import { Entity, PrimaryColumn, CreateDateColumn } from 'typeorm';
|
|
|
|
@Entity('processed_events')
|
|
export class ProcessedEvent {
|
|
@PrimaryColumn({ type: 'varchar', length: 255 })
|
|
id: string;
|
|
|
|
@CreateDateColumn({ name: 'processed_at' })
|
|
processedAt: Date;
|
|
}
|