{"size": 776, "ext": "js", "max_stars_repo_path": "server/db/models/Enumerations.js", "max_stars_repo_name": "aacheng2000/Byte-Mates-Kitchen-Deploy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/db/models/Enumerations.js", "max_issues_repo_name": "aacheng2000/Byte-Mates-Kitchen-Deploy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/db/models/Enumerations.js", "max_forks_repo_name": "aacheng2000/Byte-Mates-Kitchen-Deploy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4, "max_line_length": 89, "alphanum_fraction": 0.6404639175}
const Sequelize = require("sequelize");
const db = require('../db') // this is the postgres database that everyone is sharing
// const db = new Sequelize(
//   process.env.DATABASE_URL || "postgres://localhost/bytetest"
// );

const Fun = db.define("fun", {
  id: {
    type: Sequelize.INTEGER,
    primaryKey: true,
  },
  name: Sequelize.STRING,
});

const Status = db.define("status", {
  id: {
    type: Sequelize.INTEGER,
    primaryKey: true,
  },
  name: Sequelize.STRING,
});

const Theme = db.define("theme", {
  id: {
    type: Sequelize.INTEGER,
    primaryKey: true,
  },
  name: Sequelize.STRING,
});

//https://stackoverflow.com/questions/16631064/declare-multiple-module-exports-in-node-js

module.exports = {
  models: {
    Fun,
    Status,
    Theme
  },
};
