Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #3127] Add a New Relic agent to the API #3130

Merged
merged 20 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
  • Loading branch information
mikehmassgov committed Nov 18, 2024
commit d199fb1d1447c9bb8206fabba325e85b4e1f2871
21 changes: 14 additions & 7 deletions api/src/db/models/extract_models.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
from sqlalchemy import BigInteger, Column, DateTime, String, func
from sqlalchemy import BigInteger, ForeignKey
from sqlalchemy.orm import Mapped, mapped_column

from db.models.lookup_models import LkExtractType
from src.adapters.db.type_decorators.postgres_type_decorators import LookupColumn
from src.constants.lookup_constants import ExtractType
from src.db.models.base import ApiSchemaTable, TimestampMixin
from src.db.models.lookup_models import LkExtractType


class ExtractMetadata(ApiSchemaTable, TimestampMixin):
__tablename__ = "extract_metadata"

extract_metadata_id = Column(BigInteger, primary_key=True, autoincrement=True)
extract_type = Column(LkExtractType, nullable=False)
file_name = Column(String, nullable=False)
file_path = Column(String, nullable=False)
file_size_bytes = Column(BigInteger, nullable=False)
extract_metadata_id = mapped_column(BigInteger, primary_key=True)
extract_type: Mapped[ExtractType] = mapped_column(
"extract_type_id",
LookupColumn(LkExtractType),
ForeignKey(LkExtractType.extract_type_id),
)
file_name: Mapped[str]
file_path: Mapped[str]
file_size_bytes: Mapped[int] = mapped_column(BigInteger)
1 change: 1 addition & 0 deletions api/src/db/models/lookup_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
AgencyDownloadFileType,
AgencySubmissionNotificationSetting,
ApplicantType,
ExternalUserType,
ExtractType,
FundingCategory,
FundingInstrument,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.