/* * Copyright (c) 2014-2025 Bjoern Kimminich & the OWASP Juice Shop contributors. * SPDX-License-Identifier: MIT */ /* jslint node: true */ import { Model, type InferAttributes, type InferCreationAttributes, DataTypes, type CreationOptional, type Sequelize } from 'sequelize' class SecurityQuestion extends Model< InferAttributes, InferCreationAttributes > { declare id: CreationOptional declare question: string } const SecurityQuestionModelInit = (sequelize: Sequelize) => { SecurityQuestion.init( { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, question: { type: DataTypes.STRING } }, { tableName: 'SecurityQuestions', sequelize } ) } export { SecurityQuestion as SecurityQuestionModel, SecurityQuestionModelInit }