Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 8x 8x 8x 8x 8x | import { AllowNull, Column, DataType, Model, PrimaryKey, Table, Unique } from "sequelize-typescript";
@Table({
modelName: "google_oauth2_tokens",
timestamps: true,
indexes: [{
fields: ['user_email']
}]
})
export default class GoogleOAuth2Tokens extends Model {
@PrimaryKey
@Unique
@AllowNull(false)
@Column(DataType.STRING)
user_email!: string;
@AllowNull(false)
@Column(DataType.STRING)
access_token!: string;
@AllowNull(false)
@Column(DataType.STRING)
refresh_token!: string;
} |