001package ca.cdr.api.model.json;
002
003/*
004 * #%L
005 * Smile CDR - CDR
006 * %%
007 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
008 * %%
009 * All rights reserved.
010 * #L%
011 */
012
013import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
014import com.fasterxml.jackson.databind.annotation.JsonSerialize;
015
016import java.util.Date;
017// TODO: move this to hapi, in the same package as IModelJson
018
019public class AuditableJson extends AbstractModelJson {
020        public String createdBy;
021
022        @JsonSerialize(using = JsonDateSerializer.class)
023        @JsonDeserialize(using = JsonDateDeserializer.class)
024        public Date createdDate;
025
026        public String lastModifiedBy;
027
028        @JsonSerialize(using = JsonDateSerializer.class)
029        @JsonDeserialize(using = JsonDateDeserializer.class)
030        public Date lastModifiedDate;
031}