@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
93 lines (92 loc) • 4.4 kB
TypeScript
import { Optional } from 'sequelize';
import { Model } from 'sequelize-typescript';
import { AdditionalInfo, Authorization, IdToken, IdTokenInfo, LocalListAuthorization, LocalListVersion, LocalListVersionAuthorization, SendLocalList, SendLocalListAuthorization } from './Authorization';
import { Boot } from './Boot';
import { Certificate, InstalledCertificate } from './Certificate';
import { ChangeConfiguration } from './ChangeConfiguration';
import { ChargingNeeds, ChargingProfile, ChargingSchedule, CompositeSchedule, SalesTariff } from './ChargingProfile';
import { ChargingStation, ChargingStationNetworkProfile, Connector, Location, ServerNetworkProfile, SetNetworkProfile, StatusNotification } from './Location';
import { ChargingStationSecurityInfo } from './ChargingStationSecurityInfo';
import { ChargingStationSequence } from './ChargingStationSequence';
import { Component, Evse, Variable, VariableAttribute, VariableCharacteristics, VariableStatus } from './DeviceModel';
import { ComponentVariable } from './DeviceModel/ComponentVariable';
import { EventData, VariableMonitoring, VariableMonitoringStatus } from './VariableMonitoring';
import { IdTokenAdditionalInfo } from './Authorization/IdTokenAdditionalInfo';
import { MeterValue, StartTransaction, StopTransaction, Transaction, TransactionEvent } from './TransactionEvent';
import { MessageInfo } from './MessageInfo';
import { OCPPMessage } from './OCPPMessage';
import { Reservation } from './Reservation';
import { SecurityEvent } from './SecurityEvent';
import { LatestStatusNotification } from './Location/LatestStatusNotification';
import { Subscription } from './Subscription';
import { Tariff } from './Tariff';
export declare enum TenantAttributeProps {
id = "id",
createdAt = "createdAt",
updatedAt = "updatedAt"
}
export interface TenantAttributes {
[TenantAttributeProps.id]: string;
[TenantAttributeProps.createdAt]: Date;
[TenantAttributeProps.updatedAt]: Date;
}
export interface TenantCreationAttributes extends Optional<TenantAttributes, TenantAttributeProps.createdAt | TenantAttributeProps.updatedAt> {
}
export declare class Tenant extends Model<TenantAttributes, TenantCreationAttributes> {
static readonly MODEL_NAME: string;
id: number;
name: string;
/**
* Relationships
*/
additionalInfos: AdditionalInfo[];
authorizations: Authorization[];
boots: Boot[];
certificates: Certificate[];
installedCertificates: InstalledCertificate[];
changeConfigurations: ChangeConfiguration[];
chargingNeeds: ChargingNeeds[];
chargingProfiles: ChargingProfile[];
chargingSchedules: ChargingSchedule[];
chargingStations: ChargingStation[];
chargingStationNetworkProfiles: ChargingStationNetworkProfile[];
chargingStationSecurityInfos: ChargingStationSecurityInfo[];
chargingStationSequences: ChargingStationSequence[];
components: Component[];
componentVariables: ComponentVariable[];
compositeSchedules: CompositeSchedule[];
connectors: Connector[];
evses: Evse[];
eventDatas: EventData[];
idTokens: IdToken[];
idTokenAdditionalInfos: IdTokenAdditionalInfo[];
idTokenInfos: IdTokenInfo[];
locations: Location[];
meterValues: MeterValue[];
messageInfos: MessageInfo[];
ocppMessages: OCPPMessage[];
reservations: Reservation[];
salesTariffs: SalesTariff[];
securityEvents: SecurityEvent[];
setNetworkProfiles: SetNetworkProfile[];
serverNetworkProfiles: ServerNetworkProfile[];
transactions: Transaction[];
startTransactions: StartTransaction[];
statusNotifications: StatusNotification[];
stopTransactions: StopTransaction[];
latestStatusNotifications: LatestStatusNotification[];
subscriptions: Subscription[];
transactionEvents: TransactionEvent[];
tariffs: Tariff[];
variableAttributes: VariableAttribute[];
variableCharacteristics: VariableCharacteristics[];
variableMonitorings: VariableMonitoring[];
variableMonitoringStatuses: VariableMonitoringStatus[];
variableStatuses: VariableStatus[];
variables: Variable[];
localListAuthorizations: LocalListAuthorization[];
localListVersions: LocalListVersion[];
localListVersionAuthorizations: LocalListVersionAuthorization[];
sendLocalLists: SendLocalList[];
sendLocalListAuthorizations: SendLocalListAuthorization[];
}