mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-01-16 01:14:07 +00:00
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
className: IPLDBlock
|
|
indexOn:
|
|
- columns:
|
|
- cid
|
|
unique: true
|
|
- columns:
|
|
- block
|
|
- contractAddress
|
|
- columns:
|
|
- block
|
|
- contractAddress
|
|
- kind
|
|
unique: true
|
|
columns:
|
|
- name: id
|
|
tsType: number
|
|
columnType: PrimaryGeneratedColumn
|
|
- name: block
|
|
tsType: BlockProgress
|
|
columnType: ManyToOne
|
|
lhs: ()
|
|
rhs: BlockProgress
|
|
columnOptions:
|
|
- option: onDelete
|
|
value: "'CASCADE'"
|
|
- name: contractAddress
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: length
|
|
value: 42
|
|
- name: cid
|
|
pgType: varchar
|
|
tsType: string
|
|
columnType: Column
|
|
- name: kind
|
|
tsType: StateKind
|
|
columnType: Column
|
|
columnOptions:
|
|
- option: type
|
|
value: "'enum'"
|
|
- option: enum
|
|
value: StateKind
|
|
- name: data
|
|
pgType: bytea
|
|
tsType: Buffer
|
|
columnType: Column
|
|
imports:
|
|
- toImport:
|
|
- Entity
|
|
- PrimaryGeneratedColumn
|
|
- Column
|
|
- Index
|
|
- ManyToOne
|
|
from: typeorm
|
|
- toImport:
|
|
- StateKind
|
|
from: '@vulcanize/util'
|
|
- toImport:
|
|
- BlockProgress
|
|
from: ./BlockProgress
|