Files
maps-saas/apps/api/dist/maps/candidate-road.entity.js

96 lines
3.6 KiB
JavaScript

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CandidateRoad = void 0;
const typeorm_1 = require("typeorm");
let CandidateRoad = class CandidateRoad {
id;
geometry;
uniqueDriverCount;
totalPoints;
averageSpeed;
lengthMeters;
confidence;
status;
source;
name;
highway;
oneway;
discoveredAt;
reviewedAt;
};
exports.CandidateRoad = CandidateRoad;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], CandidateRoad.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({
type: 'geography',
spatialFeatureType: 'LineString',
srid: 4326,
nullable: false,
}),
(0, typeorm_1.Index)({ spatial: true }),
__metadata("design:type", Object)
], CandidateRoad.prototype, "geometry", void 0);
__decorate([
(0, typeorm_1.Column)('int', { default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "uniqueDriverCount", void 0);
__decorate([
(0, typeorm_1.Column)('int', { default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "totalPoints", void 0);
__decorate([
(0, typeorm_1.Column)('float', { default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "averageSpeed", void 0);
__decorate([
(0, typeorm_1.Column)('float', { default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "lengthMeters", void 0);
__decorate([
(0, typeorm_1.Column)('float', { default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "confidence", void 0);
__decorate([
(0, typeorm_1.Column)({ default: 'pending' }),
__metadata("design:type", String)
], CandidateRoad.prototype, "status", void 0);
__decorate([
(0, typeorm_1.Column)({ default: 'telemetry' }),
__metadata("design:type", String)
], CandidateRoad.prototype, "source", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", String)
], CandidateRoad.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 32, nullable: true }),
__metadata("design:type", String)
], CandidateRoad.prototype, "highway", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'smallint', default: 0 }),
__metadata("design:type", Number)
], CandidateRoad.prototype, "oneway", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], CandidateRoad.prototype, "discoveredAt", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Date)
], CandidateRoad.prototype, "reviewedAt", void 0);
exports.CandidateRoad = CandidateRoad = __decorate([
(0, typeorm_1.Entity)('candidate_roads')
], CandidateRoad);
//# sourceMappingURL=candidate-road.entity.js.map