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
fix(api): align headlines schema and seeder with data model
The `headlines` table schema was missing the `status` and `type` columns inherited from its `FeedItem` base class. Additionally, the seeding logic was not correctly handling the nested `source` and `category` objects present in the `Headline` model, leading to a crash.
This change updates the `headlines` table schema to be a complete representation of the model. The seeding logic is refactored to correctly extract foreign key IDs from the nested objects and to ensure the parameter map sent to the database driver is perfectly aligned with the schema. This resolves the final seeding error.
0 commit comments