| 12345678910111213141516171819 |
- import { Model } from "pinia-orm";
- import { Uid } from "pinia-orm/dist/nanoid";
- 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
|