text: /*
   * Copyright (c) 2014-2020 Bjoern Kimminich.
   * SPDX-License-Identifier: MIT
   */
  
  /* jslint node: true */
  
  module.exports = (sequelize, { STRING }) => {
    const Complaint = sequelize.define('Complaint', {
      message: STRING,
      file: STRING
    })
  
    Complaint.associate = ({ User }) => {
      Complaint.belongsTo(User, { constraints: true, foreignKeyConstraint: true })
    }
  
    return Complaint
  }
  