import { Model } from "pinia-orm"; import {Uid} from "pinia-orm/dist/decorators"; export class ApiModel extends Model { @Uid() id!: number | string /** * Does the entity exists in the data source */ persisted: boolean = false /** * The entity as it was when it was fetched from the data source */ initialState: object | null = null } export default ApiModel