import * as crypto from "crypto"; import { Model, Table, Column, AllowNull, IsEmail, BeforeCreate, BelongsToMany, CreatedAt, UpdatedAt, DeletedAt, BeforeFind } from "sequelize-typescript"; @Table({ tableName: "Shops" }) export class Shop extends Model { saltRounds = 10; @Column({ primaryKey: true }) shopHash:string; @AllowNull(false) @Column token: string; @Column scopes: string; @CreatedAt createdAt: Date; @UpdatedAt updatedAt: Date; }