create runs table

This commit is contained in:
Takeshi Kimata
2024-02-12 17:36:50 +09:00
parent 197a011c4c
commit b23922c8e5
7 changed files with 181 additions and 0 deletions

28
backend/models/runs.js Normal file
View 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;