import * as Knex from "knex"; export async function seed(knex: Knex): Promise { // Deletes ALL existing entries return knex("table_name").del() .then(() => { // Inserts seed entries return knex("table_name").insert([ { id: 1, colName: "rowValue1" }, { id: 2, colName: "rowValue2" }, { id: 3, colName: "rowValue3" } ]); }); };