first commit
This commit is contained in:
19
server/database/model/tindakan.model.js
Normal file
19
server/database/model/tindakan.model.js
Normal file
@ -0,0 +1,19 @@
|
||||
module.exports = (sequelize, Sequelize) => {
|
||||
const Tindakan = sequelize.define("tb_tindakan", {
|
||||
id_tindakan:{
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
},
|
||||
nama_tindakan:{
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
}
|
||||
},{
|
||||
freezeTableName: true,
|
||||
tableName: 'tb_tindakan',
|
||||
})
|
||||
|
||||
return Tindakan
|
||||
}
|
||||
Reference in New Issue
Block a user