text: module.exports = {
  
    development: {
      client: 'sqlite3',
      connection: {
        filename: './database/replate-2.db3'
      },
      useNullAsDefault: true,
      migrations: {
        directory: './database/migrations',
        tableName: 'migrations'
      },
      seeds: {
        directory: './database/seeds'
      },
      pool: {
        afterCreate: (conn, done) => {
          conn.run('PRAGMA foreign_keys = ON', done); 
        }
      },
    },
    testing: {
      client: 'sqlite3',
      connection: {
        filename: './database/tests.db3'
      },
      useNullAsDefault: true,
      migrations: {
        directory: './database/migrations',
      },
      seeds: {
        directory: './database/seeds'
      },
      pool: {
        afterCreate: (conn, done) => {
          conn.run('PRAGMA foreign_keys = ON', done); 
        }
      },
    },
    production: {
      client: 'pg',
      connection: process.env.DATABASE_URL,
      useNullAsDefault: true,
      migrations: {
        directory: './database/migrations'
      },
      seeds: {
        directory: './database/seeds'
      },
      // pool: {
      //   afterCreate: (conn, done) => {
      //     conn.run('PRAGMA foreign_keys = ON', done); 
      //   }
      // },
    }  
  };
  