mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-05-26 06:54:09 +00:00
25 lines
423 B
TypeScript
25 lines
423 B
TypeScript
//
|
|
// Copyright 2021 Vulcanize, Inc.
|
|
//
|
|
|
|
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm';
|
|
|
|
@Entity()
|
|
@Index(['address'], { unique: true })
|
|
export class Contract {
|
|
@PrimaryGeneratedColumn()
|
|
id!: number;
|
|
|
|
@Column('varchar', { length: 42 })
|
|
address!: string;
|
|
|
|
@Column('varchar')
|
|
kind!: string;
|
|
|
|
@Column('boolean')
|
|
checkpoint!: boolean;
|
|
|
|
@Column('integer')
|
|
startingBlock!: number;
|
|
}
|