Files
teaching-api/app/model/BuserToken.js

18 lines
427 B
JavaScript
Raw Permalink Normal View History

2026-03-27 17:57:07 +08:00
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR } = app.Sequelize;
const BuserToken = app.model.define('buser-token', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
token: CHAR(64),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return BuserToken;
};