@pintahub/database-schemas 3.6.5 → 3.6.7

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": "3.6.5",
3
+ "version": "3.6.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,6 +35,19 @@ const Collection = new Schema({
35
35
  trim: true,
36
36
  },
37
37
 
38
+ code: {
39
+ type: String,
40
+ trim: true,
41
+ index: true,
42
+ },
43
+
44
+ visibility: {
45
+ type: String,
46
+ trim: true,
47
+ lowercase: true,
48
+ default: 'visible',
49
+ },
50
+
38
51
  alternative_title: {
39
52
  type: String,
40
53
  trim: true,
@@ -81,6 +94,12 @@ const Collection = new Schema({
81
94
  default: false,
82
95
  },
83
96
 
97
+ show_items_mode: {
98
+ type: String,
99
+ trim: true,
100
+ default: ''
101
+ },
102
+
84
103
  seo: {
85
104
  type: SeoObject,
86
105
  },
@@ -0,0 +1,34 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const User = new Schema({
5
+ store: {
6
+ type: Schema.Types.ObjectId,
7
+ index: true,
8
+ required: true,
9
+ },
10
+
11
+ account: {
12
+ type: Schema.Types.ObjectId,
13
+ index: true,
14
+ required: true,
15
+ },
16
+
17
+ role: {
18
+ type: String,
19
+ trim: true,
20
+ default: 'user'
21
+ },
22
+
23
+ updated_at: {
24
+ type: Date,
25
+ default: Date.now
26
+ },
27
+
28
+ created_at: {
29
+ type: Date,
30
+ default: Date.now
31
+ }
32
+ })
33
+
34
+ module.exports = User