@cendo/database-schemas 1.0.2 → 1.0.3

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": "@cendo/database-schemas",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -1,7 +1,7 @@
1
1
  const {Schema} = require('mongoose')
2
2
 
3
3
 
4
- const FileRow = new Schema({
4
+ const ImportRow = new Schema({
5
5
  file: {
6
6
  type: Schema.Types.ObjectId,
7
7
  index: true,
@@ -41,13 +41,13 @@ const FileRow = new Schema({
41
41
  })
42
42
 
43
43
 
44
- FileRow.index({
44
+ ImportRow.index({
45
45
  file: 1,
46
46
  line: 1
47
47
  })
48
48
 
49
- FileRow.index({
49
+ ImportRow.index({
50
50
  created_at: 1
51
51
  }, {expireAfterSeconds: 12 * 30 * 24 * 3600})//12 months
52
52
 
53
- module.exports = FileRow
53
+ module.exports = ImportRow