Web: Files: create db config

This commit is contained in:
Viktor Fomin 2022-01-17 20:34:34 +03:00
parent e967b38aa3
commit 54356f842e

View File

@ -0,0 +1,15 @@
export const DBConfig = {
name: "AdsData",
version: 1,
objectStoresMeta: [
{
store: "ads",
storeConfig: { keyPath: "id", autoIncrement: true },
storeSchema: [
{ name: "campaign", keypath: "campaign", options: { unique: true } },
{ name: "image", keypath: "image", options: { unique: false } },
{ name: "translate", keypath: "translate", options: { unique: false } },
],
},
],
};