UNPKG

@golemio/pid

Version:
34 lines (33 loc) 1.57 kB
import { JISEventSeverityLevel } from "../../../helpers/jis/JISEventSeverityLevelEnum"; import { RouteDto } from "../../ropid-gtfs/models/RouteDto"; import { JSONSchemaType } from "@golemio/core/dist/shared/ajv"; import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize"; import { IJISEvent, IJISTranslationText } from "./interfaces"; import { IJISTranslationTextNullable } from "../datasources/interfaces/IJISTranslationTextNullable"; export declare class JISEventsModel extends Model<InferAttributes<JISEventsModel>, InferCreationAttributes<JISEventsModel>> implements IJISEvent { static readonly tableName = "jis_events"; id: string; type: string; header_text: IJISTranslationText; cause: string; cause_detail: IJISTranslationTextNullable; severity_level: JISEventSeverityLevel; active_period_start: Date; active_period_end: Date | null; display_period_start: Date; display_period_end: Date | null; effect: string | string[]; effect_detail: IJISTranslationText; description_text: IJISTranslationText; description_html: IJISTranslationText; url: IJISTranslationText; organization_name: string; created_timestamp: Date; updated_timestamp: Date; deleted_timestamp: Date | null; created_at: CreationOptional<Date>; updated_at: CreationOptional<Date>; routes?: RouteDto[]; static readonly attributeModel: ModelAttributes<JISEventsModel>; static readonly jsonSchema: JSONSchemaType<IJISEvent[]>; }