Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /src /OSSS /db /models /contacts.py
| from __future__ import annotations | |
| from datetime import datetime, date, time | |
| from decimal import Decimal | |
| from typing import Any, Optional, List, ClassVar | |
| import sqlalchemy as sa | |
| from sqlalchemy import ForeignKey, UniqueConstraint, text | |
| from sqlalchemy.orm import Mapped, mapped_column, relationship | |
| from OSSS.db.base import Base, UUIDMixin, GUID, JSONB | |
| class Contact(UUIDMixin, Base): | |
| __tablename__ = "contacts" | |
| __allow_unmapped__ = True # keep NOTE out of the SQLAlchemy mapper | |
| NOTE: ClassVar[str] = ( | |
| "owner=student_services_school_level; " | |
| "description=Stores contacts records for the application. " | |
| "Includes standard audit timestamps (created_at, updated_at). " | |
| "5 column(s) defined. " | |
| "Primary key is `id`." | |
| ) | |
| __table_args__ = { | |
| "comment": ( | |
| "Stores contacts records for the application. " | |
| "Includes standard audit timestamps (created_at, updated_at). " | |
| "5 column(s) defined. " | |
| "Primary key is `id`." | |
| ), | |
| "info": { | |
| "note": NOTE, | |
| "description": ( | |
| "Stores contacts records for the application. " | |
| "Includes standard audit timestamps (created_at, updated_at). " | |
| "5 column(s) defined. " | |
| "Primary key is `id`." | |
| ), | |
| }, | |
| } | |
| type: Mapped[str] = mapped_column(sa.Text, nullable=False) | |
| value: Mapped[str] = mapped_column(sa.Text, nullable=False) | |
| created_at: Mapped[datetime] = mapped_column(sa.DateTime(timezone=True), server_default=sa.func.now(), nullable=False) | |
| updated_at: Mapped[datetime] = mapped_column(sa.DateTime(timezone=True), server_default=sa.func.now(), onupdate=sa.func.now(), nullable=False) | |
Xet Storage Details
- Size:
- 1.77 kB
- Xet hash:
- 18acdcfa1625bc635b23ea803b0e855be81f3685955b6a10984706e59428e7b8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.