Removed projects; added tests
This commit is contained in:
@ -5,8 +5,16 @@ const sequelize = new Sequelize({
|
||||
storage: 'data/leviathan.db'
|
||||
});
|
||||
|
||||
const Project = require('./project')(sequelize);
|
||||
const Hardware = require('./hardware')(sequelize);
|
||||
const Benchmark = require('./benchmark')(sequelize);
|
||||
const Test = require('./test')(sequelize);
|
||||
|
||||
// Hardware/Test one-to-many
|
||||
Hardware.hasMany(Test);
|
||||
Test.belongsTo(Hardware);
|
||||
|
||||
// Benchmark/Test many-to-many
|
||||
Benchmark.belongsToMany(Test, { through: 'tests_benchmarks' });
|
||||
Test.belongsToMany(Benchmark, { through: 'tests_benchmarks' });
|
||||
|
||||
module.exports = sequelize;
|
||||
|
Reference in New Issue
Block a user