How should we manage datetime fields in SQLModel in python?
How should we manage datetime fields in SQLModel in python? Question: Let’s say I want to create an API with a Hero SQLModel, below are minimum viable codes illustrating this: from typing import Optional from sqlmodel import Field, Relationship, SQLModel from datetime import datetime from sqlalchemy import Column, TIMESTAMP, text class HeroBase(SQLModel): # essential fields …