Web: Files: create db config
This commit is contained in:
parent
e967b38aa3
commit
54356f842e
@ -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 } },
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue
Block a user