update site points controller and route to add new endpoint for all data
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
This commit is contained in:
55
src/entity/site_points.ts
Normal file
55
src/entity/site_points.ts
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from 'typeorm';
|
||||||
|
|
||||||
|
@Entity('site_points')
|
||||||
|
export class SitePoints {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "text"
|
||||||
|
})
|
||||||
|
cell: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "text"
|
||||||
|
})
|
||||||
|
sector: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "text"
|
||||||
|
})
|
||||||
|
site: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "double precision",
|
||||||
|
})
|
||||||
|
lat: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "double precision",
|
||||||
|
})
|
||||||
|
lng: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "text"
|
||||||
|
})
|
||||||
|
location: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
@ -2,5 +2,6 @@ export * from "../entity/user_activity";
|
|||||||
export * from "../entity/user_refresh_token";
|
export * from "../entity/user_refresh_token";
|
||||||
export * from "../entity/users";
|
export * from "../entity/users";
|
||||||
export * from "../entity/users_roles";
|
export * from "../entity/users_roles";
|
||||||
|
export * from "../entity/site_points";
|
||||||
|
|
||||||
export * from "../types/action";
|
export * from "../types/action";
|
||||||
|
|||||||
Reference in New Issue
Block a user