import {Model} from '../model/Model' import {Field} from '../model/Field' import {FieldType} from '../types' /** * Model used to fetch & store sessions from the ORMSession driver. */ export class SessionModel extends Model { protected static table = 'sessions' // FIXME allow configuring protected static key = 'session_uuid' protected static populateKeyOnInsert = true @Field(FieldType.varchar, 'session_uuid') public sessionUuid!: string @Field(FieldType.json, 'session_data') public json!: any }