Artifact Content
Not logged in

Artifact 81d709d22a56816d7b49cd93f07e2617bddfb3ba:


const Sequelize = require('sequelize')

module.exports = {
  up: sequelize => {
    return sequelize.queryInterface.createTable('SettlementMethods', {
      id: {
        type: Sequelize.UUID,
        primaryKey: true,
        defaultValue: Sequelize.UUIDV4
      },
      type: Sequelize.STRING,
      name: Sequelize.STRING,
      logo: Sequelize.STRING,
      description: Sequelize.STRING,
      uri: Sequelize.STRING,
      enabled: Sequelize.BOOLEAN,
      created_at: {
        type: Sequelize.DATE,
        allowNull: false,
        defaultValue: Sequelize.NOW
      },
      updated_at: {
        type: Sequelize.DATE,
        allowNull: false,
        defaultValue: Sequelize.NOW
      }
    })
  },
  down: sequelize => {
    return sequelize.queryInterface.dropTable('SettlementMethods')
  }
}