@swarnim

Member Since
May 26, 2025
Lessons Completed
0
Comments Contributed
2
Hours Watched
0

Recent Activity

Here's what @swarnim has been up to this past year

  • Replied to discussion Averaging over time period and grouping by properties


    // backend/app/models/genset_property.ts

    export default class GensetProperty extends BaseModel {

    @column({ isPrimary: true })

    declare id: number;

    @column()

    declare propertyName: string;

    @column()

    declare readablePropertyName: string;

    @column()

    declare physicalQuantityId: number;

    @belongsTo(() => PhysicalQuantity)

    declare physicalQuantity: BelongsTo<typeof PhysicalQuantity>;

    }

  • Replied to discussion Averaging over time period and grouping by properties

    I'll attach the models for your reference:


    // backend/app/models/archive.ts

    export default class Archive extends BaseModel {

    @column({ isPrimary: true })

    declare id: number;

    @column()

    declare timestamp: DateTime;

    @column()

    declare gensetPropertyId: number; //

    @belongsTo(() => GensetProperty)

    declare gensetProperty: BelongsTo<typeof GensetProperty>;

    @column()

    declare propertyValue: number;

    @column()

    declare isAnomaly: boolean;

    }

  • Account created Welcome to Adocasts, @swarnim!