className: BlockProgress
implements: BlockProgressInterface
indexOn:
  - columns:
      - blockHash
    unique: true
  - columns:
      - blockNumber
  - columns:
      - parentHash
columns:
  - name: id
    tsType: number
    columnType: PrimaryGeneratedColumn
  - name: cid
    pgType: varchar
    tsType: string | null
    columnType: Column
    columnOptions:
      - option: nullable
        value: true
  - name: blockHash
    pgType: varchar
    tsType: string
    columnType: Column
    columnOptions:
      - option: length
        value: 66
  - name: parentHash
    pgType: varchar
    tsType: string
    columnType: Column
    columnOptions:
      - option: length
        value: 66
  - name: blockNumber
    pgType: integer
    tsType: number
    columnType: Column
  - name: blockTimestamp
    pgType: integer
    tsType: number
    columnType: Column
  - name: numEvents
    pgType: integer
    tsType: number
    columnType: Column
  - name: numProcessedEvents
    pgType: integer
    tsType: number
    columnType: Column
  - name: lastProcessedEventIndex
    pgType: integer
    tsType: number
    columnType: Column
  - name: isComplete
    pgType: boolean
    tsType: boolean
    columnType: Column
  - name: isPruned
    pgType: boolean
    tsType: boolean
    columnType: Column
    columnOptions:
      - option: default
        value: false
  - name: createdAt
    tsType: Date
    columnType: CreateDateColumn
imports:
  - toImport:
      - Entity
      - PrimaryGeneratedColumn
      - Column
      - Index
      - CreateDateColumn
    from: typeorm
  - toImport:
      - BlockProgressInterface
    from: '@cerc-io/util'
