import { Column, DataType, Model, Table, } from 'sequelize-typescript'; @Table({ timestamps: true }) export class Nft extends Model { @Column({ type: DataType.STRING, allowNull: false }) nftId: string; @Column(DataType.STRING) nftCollection: string; @Column({ type: DataType.STRING }) creator: string; @Column(DataType.JSONB) owners: string; @Column(DataType.DECIMAL) quantity: string; @Column(DataType.DECIMAL) startReserve: string; @Column(DataType.DECIMAL) totalReserve: string; @Column(DataType.TEXT) tokenUri: string; @Column(DataType.BOOLEAN) allowMint: boolean; @Column(DataType.BOOLEAN) nonFungible: boolean; @Column(DataType.INTEGER) txHash: number; @Column(DataType.INTEGER) blockId: number; @Column({ type: DataType.DATE, allowNull: false }) createdAt: Date; @Column({ type: DataType.DATE, allowNull: false }) updatedAt: Date; }