UNPKG

synt_backend

Version:

Synt light-weight node backend service

30 lines (29 loc) 768 B
"use strict"; const { Model } = require("sequelize"); module.exports = (sequelize, DataTypes) => { class IbanityClient 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(models) { // define association here } } IbanityClient.init( { client_id: DataTypes.STRING, client_secret: DataTypes.STRING, redirect_uri: DataTypes.STRING, code_verifier: DataTypes.STRING, code_challenge: DataTypes.STRING, code_challenge_method: DataTypes.STRING, }, { sequelize, modelName: "IbanityClient", } ); return IbanityClient; };