UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

22 lines (21 loc) 616 B
import { Model } from 'sequelize-typescript'; import { ChargingStation } from './ChargingStation'; import { Point } from 'geojson'; /** * Represents a location. * Currently, this data model is internal to CitrineOS. In the future, it will be analogous to an OCPI Location. */ export declare class Location extends Model { static readonly MODEL_NAME: string; name: string; address: string; city: string; postalCode: string; state: string; country: string; /** * [longitude, latitude] */ coordinates: Point; chargingPool: [ChargingStation, ...ChargingStation[]]; }