import { Column, Entity, Index, PrimaryColumn } from 'typeorm'; import { HexString } from '@gear-js/api'; import { BaseEntity } from './base.entity'; @Entity() export class Event extends BaseEntity { constructor(props?: Partial) { super(); Object.assign(this, props); } @PrimaryColumn() public id: string; @Index() @Column() public source: string; @Column({ nullable: true }) public payload: string; @Column({ nullable: true }) public service?: string; @Column({ nullable: true }) public name?: string; }