Update atst to atat
This commit is contained in:
11
atat/models/types.py
Normal file
11
atat/models/types.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import sqlalchemy
|
||||
from sqlalchemy import Column
|
||||
from sqlalchemy.dialects.postgresql import UUID
|
||||
|
||||
|
||||
def Id():
|
||||
return Column(
|
||||
UUID(as_uuid=True),
|
||||
primary_key=True,
|
||||
server_default=sqlalchemy.text("uuid_generate_v4()"),
|
||||
)
|
Reference in New Issue
Block a user