feat: add dexie
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
"format": "prettier --write --experimental-cli src/"
|
"format": "prettier --write --experimental-cli src/"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dexie": "^4.4.4",
|
||||||
"pinia": "^4.0.2",
|
"pinia": "^4.0.2",
|
||||||
"vue": "^3.5.40",
|
"vue": "^3.5.40",
|
||||||
"vue-router": "^5.2.0"
|
"vue-router": "^5.2.0"
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import Dexie from 'dexie';
|
||||||
|
|
||||||
|
export const db = new Dexie('dttmrdb')
|
||||||
|
|
||||||
|
db.version(1).stores({
|
||||||
|
lists: '++id, uuid, title',
|
||||||
|
|
||||||
|
listItems: '++id, uuid, title, isChecked',
|
||||||
|
|
||||||
|
syncQueue: '++id, action, endpoint, createdAt',
|
||||||
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user