update site points controller and route to add new endpoint for all data
Some checks failed
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
wayanrivan
2026-07-07 10:52:32 +07:00
parent 5200839211
commit 93c16bfcf5
2 changed files with 56 additions and 0 deletions

55
src/entity/site_points.ts Normal file
View 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;
}

View File

@ -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";