mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-04-28 12:44:06 +00:00
* Add a table for entites in frothy region and update it in a subscriber * Accommodate changes to other watchers and codegen
22 lines
372 B
TypeScript
22 lines
372 B
TypeScript
//
|
|
// Copyright 2022 Vulcanize, Inc.
|
|
//
|
|
|
|
import { Entity, PrimaryColumn, Column, Index } from 'typeorm';
|
|
|
|
@Entity()
|
|
@Index(['blockNumber'])
|
|
export class FrothyEntity {
|
|
@PrimaryColumn('varchar')
|
|
id!: string;
|
|
|
|
@PrimaryColumn('varchar')
|
|
name!: string;
|
|
|
|
@PrimaryColumn('varchar', { length: 66 })
|
|
blockHash!: string;
|
|
|
|
@Column('integer')
|
|
blockNumber!: number;
|
|
}
|