Spaces:
Build error
Build error
File size: 352 Bytes
babeaf6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from sqlalchemy import Column, Integer, String
from realtime_ai_character.database.base import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True)
name = Column(String)
email = Column(String, unique=True, index=True, nullable=False)
def save(self, db):
db.add(self)
db.commit()
|