UNPKG

synt_backend

Version:

Synt light-weight node backend service

32 lines (31 loc) 807 B
"use strict"; const { Model } = require("sequelize"); module.exports = (sequelize, DataTypes) => { class KeypointClient extends Model { /** * Helper method for defining associations. * This method is not a part of Sequelize lifecycle. * The `models/index` file will call this method automatically. */ static associate() { // define association here } } KeypointClient.init( { name: DataTypes.STRING, client_id: DataTypes.STRING, client_secret: DataTypes.STRING, username: DataTypes.STRING, password: DataTypes.STRING, access_token: DataTypes.TEXT, refresh_token: DataTypes.TEXT, expires_at: DataTypes.DATE, }, { sequelize, modelName: "KeypointClient", } ); return KeypointClient; };