Drizzle-seed and sequential dates
Say I have a schema with two
DateTime
fields, started_at
and ended_at
How would I use drizzle-seed and its refine
function to seed my database with these values differening not more than say, 5 days?
Aka if started_at seeds on 01-05-2025
then the minimum should be the same and the maximum for ended_at should be 05-05-2025
If not possible with the refine
function, what would be best practice for this?
Here's an example seed script I was working on when I ran into this problem:
1 Reply
Stack Overflow
Seeding dates sequentially with drizzle-seed
Say I have a drizzle MySQL schema with a table session.
I'd like to store when the session was started, and when the session was ended (created_at, started_at, respectively).
Here is an excerpt fro...