feat: complete tasks 1 to 15

This commit is contained in:
Ayobami
2025-07-25 22:16:08 +01:00
parent a5dbf762b6
commit fe95626d9f
15 changed files with 3723 additions and 37 deletions
+30
View File
@@ -0,0 +1,30 @@
module.exports = (sequelize, DataTypes) => {
const analytic = sequelize.define(
"analytic",
{
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true,
},
create_at: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW,
},
widget_name: {
type: DataTypes.STRING,
allowNull: false,
},
browser_type: {
type: DataTypes.STRING,
allowNull: false,
},
},
{
timestamps: false,
freezeTableName: true,
tableName: "analytic",
}
);
return analytic;
};