@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
30 lines (29 loc) • 849 B
TypeScript
import type { ReservationDto, TenantDto } from '@citrineos/base';
import { Model } from 'sequelize-typescript';
import { EvseType } from './DeviceModel/index.js';
export declare class Reservation extends Model implements ReservationDto {
static readonly MODEL_NAME: string;
/**
* Fields
*/
databaseId: number;
id: number;
stationId: string;
expiryDateTime: string;
connectorType?: string | null;
reserveStatus?: string | null;
isActive: boolean;
terminatedByTransaction?: string | null;
idToken: object;
groupIdToken?: object | null;
/**
* Relations
*/
evseId?: number | null;
evse?: EvseType | null;
customData?: any | null;
tenantId: number;
tenant?: TenantDto;
static setDefaultTenant(instance: Reservation): void;
constructor(...args: any[]);
}