import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('teleports')
export class TeleportEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 64 }) name: string;
    @Column() x: number;
    @Column() y: number;
    @Column() z: number;
    @Column() heading: number;
    @Column() dimension: number;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) created: string;
    @Column() created_by: number;
}
