feat: add new folder
This commit is contained in:
6
gig-poc/apps/api/app/utils/ids.py
Normal file
6
gig-poc/apps/api/app/utils/ids.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from datetime import datetime
|
||||
from uuid import uuid4
|
||||
|
||||
|
||||
def generate_id(prefix: str) -> str:
|
||||
return f"{prefix}_{datetime.now().strftime('%Y%m%d%H%M%S')}_{uuid4().hex[:6]}"
|
||||
Reference in New Issue
Block a user