@swarnim

Learning initiated
0
Lessons started
Knowledge gained
0
Lessons completed
Total learning time
0s
Spent learning
Community impact
3
Comments & forum posts

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!