feat: upgrade to Intaleq Style v3 and enable Egypt routing demo (code only)
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import { Column, PrimaryGeneratedColumn, CreateDateColumn, Index } from 'typeorm';
|
||||
|
||||
export abstract class BasePlace {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column({ type: 'decimal', precision: 10, scale: 8, nullable: true })
|
||||
latitude: number;
|
||||
|
||||
@Column({ type: 'decimal', precision: 11, scale: 8, nullable: true })
|
||||
longitude: number;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@Index()
|
||||
name: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@Index()
|
||||
name_ar: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
name_en: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
address: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
category: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
neighbourhood: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
city: string;
|
||||
|
||||
@Column({ type: 'text', nullable: true })
|
||||
description: string;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ type: 'geometry', spatialFeatureType: 'Point', srid: 4326, nullable: true })
|
||||
@Index({ spatial: true })
|
||||
location: any;
|
||||
}
|
||||
Reference in New Issue
Block a user