set up sqlite
This commit is contained in:
14
backend/models/projects.js
Normal file
14
backend/models/projects.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
const Project = sequelize.define("Project", {
|
||||
name: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
detail: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
});
|
||||
|
||||
return Project;
|
||||
};
|
||||
Reference in New Issue
Block a user