cnc-speed-calculator/sequelize/models/preset-cut.model.js
Sebastien Clement 457ffc366f 🔨 Add base projet
2021-01-27 23:36:51 +01:00

48 lines
1.2 KiB
JavaScript

const { DataTypes } = require('sequelize');
module.exports = (sequelize) => {
sequelize.define('preset_cut', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: DataTypes.INTEGER
},
name: {
allowNull: false,
type: DataTypes.STRING
},
cut_speed: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_1: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_2: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_3: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_4: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_5: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_6: {
allowNull: false,
type: DataTypes.FLOAT,
},
feed_by_tooth_more_8: {
allowNull: false,
type: DataTypes.FLOAT,
},
})
}