@pintahub/database-schemas 1.0.0 → 1.0.2

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.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,34 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const Account = new Schema({
5
+ name: {
6
+ type: String,
7
+ trim: true,
8
+ required: true
9
+ },
10
+
11
+ email: {
12
+ type: String,
13
+ trim: true,
14
+ required: true
15
+ },
16
+
17
+ password: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+
22
+ updated_at: {
23
+ type: Date,
24
+ default: Date.now
25
+ },
26
+
27
+ created_at: {
28
+ type: Date,
29
+ default: Date.now
30
+ }
31
+ })
32
+
33
+ module.exports = Account
34
+
package/schemas/Store.js CHANGED
@@ -19,6 +19,12 @@ const Store = new Schema({
19
19
  index: true,
20
20
  },
21
21
 
22
+ number: {
23
+ type: String,
24
+ trim: true,
25
+ index: true,
26
+ },
27
+
22
28
  status: {
23
29
  type: String,
24
30
  default: 'active',