We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa289d commit 0e8af7cCopy full SHA for 0e8af7c
src/models/refreshtoken.ts
@@ -0,0 +1,28 @@
1
+import { Model, Optional } from 'sequelize'
2
+import SequelizeAttributes from '../utils/SequelizeAttributes'
3
+
4
+import db from './_instance'
5
6
+export interface RefreshTokenAttributes {
7
+ id: string
8
+ UserId: string
9
+ token: string
10
+ createdAt?: Date
11
+ updatedAt?: Date
12
+}
13
14
+interface RefreshTokenCreationAttributes
15
+ extends Optional<RefreshTokenAttributes, 'id'> {}
16
17
+interface RefreshTokenInstance
18
+ extends Model<RefreshTokenAttributes, RefreshTokenCreationAttributes>,
19
+ RefreshTokenAttributes {}
20
21
+const RefreshToken = db.sequelize.define<RefreshTokenInstance>(
22
+ 'RefreshTokens',
23
+ {
24
+ ...SequelizeAttributes.RefreshTokens,
25
+ }
26
+)
27
28
+export default RefreshToken
0 commit comments