create runs table
This commit is contained in:
28
backend/models/runs.js
Normal file
28
backend/models/runs.js
Normal file
@@ -0,0 +1,28 @@
|
||||
function defineRun(sequelize, DataTypes) {
|
||||
const Run = sequelize.define('Run', {
|
||||
name: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
configurations: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
description: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
state: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
},
|
||||
projectId: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
});
|
||||
|
||||
return Run;
|
||||
}
|
||||
|
||||
module.exports = defineRun;
|
||||
Reference in New Issue
Block a user