epic_explorer/server/entities/PeerIp.ts

42 lines
721 B
TypeScript
Raw Normal View History

2022-12-23 10:16:03 +00:00
import {
BaseEntity,
Column,
Entity,
Index,
JoinColumn,
ManyToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
@Entity('peer_ip', { schema: 'public' })
export class PeerIp {
@PrimaryGeneratedColumn({
type: 'integer',
name: 'id',
})
Id: number;
@Column('character varying', {
nullable: false,
primary: true,
length: 142,
name: 'ip',
})
IpAddress: string;
@Column('character varying', {
nullable: false,
length: 142,
name: 'longitude',
})
Longitude: string;
@Column('character varying', {
nullable: false,
length: 142,
name: 'latitude',
})
Latitude: string;
}