I can do this to set column type to be unique string :
uuid = Column(String, default=lambda: str(uuid.uuid4()), unique=True)
but I want to generate random-unique-integer, not random-unique-string.
any idea how to do that ?
Aucun commentaire:
Enregistrer un commentaire