Skip to content
Snippets Groups Projects
Commit 06ad39c2 authored by alrwasheda's avatar alrwasheda :speech_balloon:
Browse files

seeder only for testing purposes

parent 89418175
No related branches found
No related tags found
No related merge requests found
import Boat from "./models/Boat";
const seedBoatTable = async () => {
if ((await Boat.count()) < 1) {
await Boat.create({
id: 1,
name: "boat one",
status: false,
active: true,
seats: 5,
});
await Boat.create({
id: 2,
name: "boat two",
status: false,
active: true,
seats: 4,
});
await Boat.create({
id: 3,
name: "boat three",
status: false,
active: false,
seats: 2,
});
}
};
const seedCheckInTable = async () => {};
const seedCustomerTable = async () => {};
const runSeeders = async () => {
await seedBoatTable();
await seedCheckInTable();
await seedCustomerTable();
};
export default runSeeders;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment