(start, end)
| 22 | const startOfThisYear = startOfYear(now); |
| 23 | // Thanks, https://stackoverflow.com/a/9035732 |
| 24 | function randomDateBetween(start, end) { |
| 25 | return new Date( |
| 26 | start.getTime() + Math.random() * (end.getTime() - start.getTime()) |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | const dropTableStatement = 'DROP TABLE IF EXISTS notes;'; |
| 31 | const createTableStatement = `CREATE TABLE notes ( |