first commit

This commit is contained in:
kicap1992
2022-04-27 01:19:12 +08:00
parent 1ac188d93a
commit c3d0676355
38 changed files with 11606 additions and 1486 deletions

View File

@ -0,0 +1,35 @@
module.exports = (sequelize, Sequelize) => {
const Obat = sequelize.define("tb_obat", {
id_obat:{
type: Sequelize.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
nama_obat:{
type: Sequelize.STRING,
allowNull: false
},
jenis:{
type: Sequelize.STRING,
allowNull: false
},
jumlah:{
type: Sequelize.STRING,
allowNull: false
},
harga:{
type: Sequelize.STRING,
allowNull: false
},
history:{
type: Sequelize.TEXT("long"),
allowNull: false
}
},{
freezeTableName: true,
tableName: 'tb_obat',
})
return Obat
}