text: 'use strict'
  
  const Sequelize = require( 'sequelize' )
  
  const sequelize      = require( './connection'              )
  const dbGetterSetter = require( '../utils/db-getter-setter' )
  
  const defaultMention = `** Method of payment: ** 40% after acceptance of the quote
  Payment of 60% in the month following delivery. * (10% Late Penalty Rate) *
  ** Delivery Date: ** Delivery in 1 month or less from the date of acceptance of the quote.
  ** To accept this quote: **
  sign below with ”good for agreement“
  return it
  `
  const QuotationConfig = sequelize.define( `quotationConfig`, {
    id: {
      type:         Sequelize.UUID,
      defaultValue: Sequelize.UUIDV4,
      primaryKey:   true,
    },
    creationCount: {
      type:         Sequelize.BIGINT,
      defaultValue: 0,
      allowNull:    false,
    },
    tax: {
      type:         Sequelize.FLOAT,
      defaultValue: 0,
      allowNull:    false,
    },
    prefix: {
      type:         Sequelize.STRING,
      defaultValue: `QUOT-`,
      set:          dbGetterSetter.setTrimmedString( `prefix` ),
    },
    startAt: {
      type:         Sequelize.INTEGER,
      defaultValue: 400,
      allowNull:    false,
    },
    mentions: {
      type:         Sequelize.TEXT,
      defaultValue: defaultMention,
      set:          dbGetterSetter.setTrimmedString( `mentions` ),
    },
  }, { timestamps: false })
  
  module.exports = QuotationConfig
  