You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies in advance, I'm just getting started with AdonisJS and Lucid. I'm currently working on seeding my database with some data. I've got three tables set up:
Users
Sites
Reports
In this setup, a user can be associated with multiple sites, and each site can have multiple reports.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there,
Apologies in advance, I'm just getting started with AdonisJS and Lucid. I'm currently working on seeding my database with some data. I've got three tables set up:
Users
Sites
Reports
In this setup, a user can be associated with multiple sites, and each site can have multiple reports.
This is my model :
user.ts
site.ts
report.ts
users migration file
sites migration file
reports migration file
This is the error i got:
It seems that reports table is feeded before the others.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions