@cendo/database-schemas 1.0.1 → 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.1",
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,8 +41,13 @@ const FileRow = new Schema({
41
41
  })
42
42
 
43
43
 
44
- FileRow.index({
44
+ ImportRow.index({
45
+ file: 1,
46
+ line: 1
47
+ })
48
+
49
+ ImportRow.index({
45
50
  created_at: 1
46
51
  }, {expireAfterSeconds: 12 * 30 * 24 * 3600})//12 months
47
52
 
48
- module.exports = FileRow
53
+ module.exports = ImportRow