**DB Models Changes**
- Backend: add accuracy field (ENUM: EXACT, ESTIMATED, UNKNOWN) to EntrySeen and EpisodeSeen models - Backend: add migration in dataInitializer to add accuracy column, set existing to EXACT, set 2021-01-01 entry seens and 2020-01-01 episode seens to UNKNOWN
This commit is contained in:
1 parent
9a8ee181e5
commit
ebdef6ba6c
3 files changed
+48
-1
No files matched your search
@@ -16,6 +16,10 @@ const EntrySeen = sequelize.define("entrySeen",
|
||||
|
||||
date_seen: { type: DataTypes.DATE },
|
||||
seen_with: { type: DataTypes.STRING(50) },
|
||||
accuracy: {
|
||||
type: DataTypes.ENUM('EXACT', 'ESTIMATED', 'UNKNOWN'),
|
||||
defaultValue: 'EXACT',
|
||||
},
|
||||
|
||||
}, {
|
||||
timestamps: false,
|
||||
|
||||
@@ -23,6 +23,10 @@ const EpisodeSeen = sequelize.define("episodeSeen",
|
||||
|
||||
date_seen: { type: DataTypes.DATE },
|
||||
seen_with: { type: DataTypes.STRING(50) },
|
||||
accuracy: {
|
||||
type: DataTypes.ENUM('EXACT', 'ESTIMATED', 'UNKNOWN'),
|
||||
defaultValue: 'EXACT',
|
||||
},
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user