import { observable } from "mobx";
import BaseModel from "./BaseModel";
import User from "./User";
import Field from "./decorators/Field";

class Share extends BaseModel {
  @Field
  @observable
  id: string;

  @Field
  @observable
  published: boolean;

  @Field
  @observable
  includeChildDocuments: boolean;

  @Field
  @observable
  documentId: string;

  documentTitle: string;

  documentUrl: string;

  lastAccessedAt: string | null | undefined;

  url: string;

  createdBy: User;
}

export default Share;
