Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /sahajrajmalla_greatapi /greatapi /db /admin /user.py
| from __future__ import annotations | |
| from sqlalchemy import Boolean # Add this import for the new field | |
| from sqlalchemy import Column | |
| from sqlalchemy import Integer | |
| from sqlalchemy import String | |
| from greatapi.db.database import Base | |
| class User(Base): | |
| __tablename__ = 'users' | |
| id = Column(Integer, primary_key=True, index=True, autoincrement=True) | |
| name = Column(String) | |
| username = Column(String) | |
| email = Column(String) | |
| password = Column(String) | |
| contact_number = Column(String) | |
| # Add the is_admin field with a default value of False | |
| is_admin = Column(Boolean, default=False) | |
| # blogs = relationship("Blog", back_populates="creator") | |
Xet Storage Details
- Size:
- 673 Bytes
- Xet hash:
- b02095d3524d877aea04b14d44e6ea610fa14c42eb59851af2add75d53f8961f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.