import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class RiderCordinates {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    type: 'float',
    nullable: false,
  })
  riderId: number;

  @Column({
    type: 'float',
    nullable: false,
  })
  latitude: number;

  @Column({
    type: 'varchar',
    length: 255,
    nullable: false,
  })
  name: string;
}
