mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
25 lines
531 B
TypeScript
25 lines
531 B
TypeScript
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
|
|
import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
|
|
|
@Entity()
|
|
export class AddressSettingsEntity extends TrackedEntity {
|
|
|
|
@PrimaryColumn({ length: 62, type: 'varchar' })
|
|
address: string;
|
|
|
|
@Column({ default: 0 })
|
|
shares: number;
|
|
|
|
@Column({ type: 'decimal', default: 0 })
|
|
bestDifficulty: number;
|
|
|
|
@Column({ nullable: true })
|
|
bestDifficultyUserAgent: string;
|
|
|
|
@Column({ nullable: true })
|
|
miscCoinbaseScriptData: string;
|
|
|
|
}
|
|
|