@pintahub/database-schemas 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Store.js CHANGED
@@ -25,6 +25,11 @@ const Store = new Schema({
25
25
  index: true,
26
26
  },
27
27
 
28
+ checkout_url: {
29
+ type: String,
30
+ trim: true,
31
+ },
32
+
28
33
  status: {
29
34
  type: String,
30
35
  default: 'active',
@@ -32,6 +37,10 @@ const Store = new Schema({
32
37
  index: true
33
38
  },
34
39
 
40
+ setting: {
41
+ type: Schema.Types.ObjectId,
42
+ },
43
+
35
44
  updated_at: {
36
45
  type: Date,
37
46
  default: Date.now
@@ -0,0 +1,33 @@
1
+ const {Schema} = require('mongoose')
2
+ const ImageObject = require('./ImageObject')
3
+
4
+
5
+ const StoreSetting = new Schema({
6
+ store: {
7
+ type: Schema.Types.ObjectId,
8
+ index: true,
9
+ required: true,
10
+ },
11
+
12
+ logo: {
13
+ type: ImageObject,
14
+ },
15
+
16
+ description: {
17
+ type: String,
18
+ trim: true,
19
+ },
20
+
21
+ updated_at: {
22
+ type: Date,
23
+ default: Date.now
24
+ },
25
+
26
+ created_at: {
27
+ type: Date,
28
+ default: Date.now
29
+ }
30
+ })
31
+
32
+ module.exports = StoreSetting
33
+