Smart relationship between model and stripe cards
Smart relationship between model and stripe cards
Implementation
const { collection } = require('forest-express-sequelize');
const models = require('../models');
collection('users_stripe_cards', {
isSearchable: true,
fields: [
{
field: 'id',
type: 'String',
},
{
field: 'country',
type: 'String',
},
{
field: 'brand',
type: 'String',
},
{
field: 'exp_month',
type: 'Number',
},
{
field: 'exp_year',
type: 'Number',
},
{
field: 'last4',
type: 'Number',
},
],
});Last updated
Was this helpful?