""" Options: Date: 2025-01-08 03:13:55 Version: 8.53 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://blazordiffusion.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: QueryArtifactComments.* #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 CommentResult: id: int = 0 artifact_id: int = 0 reply_id: Optional[int] = None content: Optional[str] = None up_votes: int = 0 down_votes: int = 0 votes: int = 0 flag_reason: Optional[str] = None notes: Optional[str] = None app_user_id: int = 0 display_name: Optional[str] = None handle: Optional[str] = None profile_url: Optional[str] = None avatar: Optional[str] = None created_date: datetime.datetime = datetime.datetime(1, 1, 1) modified_date: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ArtifactComment(AuditBase): id: int = 0 artifact_id: int = 0 reply_id: Optional[int] = None content: Optional[str] = None up_votes: int = 0 down_votes: int = 0 votes: int = 0 flag_reason: Optional[str] = None notes: Optional[str] = None ref_id: Optional[str] = None app_user_id: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QueryArtifactComments(QueryDb2[ArtifactComment, CommentResult], IReturn[QueryResponse[CommentResult]]): artifact_id: int = 0