mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-26 12:47:55 +02:00
✨ Add scheduled events schema (#1679)
This commit is contained in:
parent
22f32f9314
commit
56bd684c55
35 changed files with 1412 additions and 659 deletions
9
packages/database/prisma/seed/utils.ts
Normal file
9
packages/database/prisma/seed/utils.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Generates a random integer between floor and max (inclusive).
|
||||
* @param max The maximum value.
|
||||
* @param floor The minimum value (default: 0).
|
||||
* @returns A random integer.
|
||||
*/
|
||||
export const randInt = (max = 1, floor = 0): number => {
|
||||
return Math.round(Math.random() * max) + floor;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue