UNPKG

synt_backend

Version:

Synt light-weight node backend service

32 lines (31 loc) 819 B
"use strict"; const { Model } = require("sequelize"); module.exports = (sequelize, DataTypes) => { class ExactOnlineClient 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 } } ExactOnlineClient.init( { name: DataTypes.STRING, client_id: DataTypes.STRING, client_secret: DataTypes.STRING, code: DataTypes.STRING, redirect_uri: DataTypes.STRING, access_token: DataTypes.TEXT, refresh_token: DataTypes.TEXT, expires_at: DataTypes.DATE, }, { sequelize, modelName: "ExactOnlineClient", } ); return ExactOnlineClient; };