import { Schema , SchemaTypes as t , SchemaOptions } from "mongoose" ; import { utils } from "nestx-common" ; const { transform } = utils ; const option = { } ; option . timestamps = true ; export const PhotoSchema = new Schema ( { name : { type : t . String } } , option ) ; PhotoSchema . set ( "toJSON" , { transform } ) ;