""" Options: Date: 2025-04-04 17:25:52 Version: 5.140 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.clubmanagercentral.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: FindFileAttachment.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FileAttachmentInstance: file_attachment_id: int = 0 file_data: Optional[bytes] = None mime_type: Optional[str] = None instance_id: int = 0 instance_type: Optional[str] = None uploaded_by_user_id: int = 0 uploaded_date: datetime.datetime = datetime.datetime(1, 1, 1) file_size: Decimal = decimal.Decimal(0) filename: Optional[str] = None thumbnail: Optional[bytes] = None public_key: Optional[str] = None # @Route("/api/Query/FileAttachment") # @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="FileAttachment") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FindFileAttachment(QueryDb[FileAttachmentInstance], IReturn[QueryResponse[FileAttachmentInstance]]): pass