mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-14 20:30:31 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da66e116c3 | ||
| c09df1341f | |||
| 88000f9cf4 | |||
| 92a33489ac |
@@ -1,5 +1,4 @@
|
|||||||
import uuid
|
import uuid
|
||||||
from datetime import datetime, timezone
|
|
||||||
|
|
||||||
from sqlalchemy import Column, DateTime, String
|
from sqlalchemy import Column, DateTime, String
|
||||||
from sqlalchemy.dialects.postgresql import UUID
|
from sqlalchemy.dialects.postgresql import UUID
|
||||||
@@ -16,8 +15,8 @@ class Base:
|
|||||||
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
||||||
updated_at = Column(
|
updated_at = Column(
|
||||||
DateTime(timezone=True),
|
DateTime(timezone=True),
|
||||||
default=lambda: datetime.now(timezone.utc),
|
server_default=func.now(),
|
||||||
onupdate=lambda: datetime.now(timezone.utc),
|
onupdate=func.now(),
|
||||||
)
|
)
|
||||||
created_by_id = Column(String)
|
created_by_id = Column(String)
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -39,7 +39,7 @@ setup(
|
|||||||
long_description=open("README.md").read(),
|
long_description=open("README.md").read(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
author="Conrad Großer",
|
author="Conrad Großer",
|
||||||
author_email="conrad@noah.tech",
|
author_email="code@grosser.group",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
url="https://github.com/creyD/creyPY",
|
url="https://github.com/creyD/creyPY",
|
||||||
license="MIT",
|
license="MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user