sequelize-ui icon indicating copy to clipboard operation
sequelize-ui copied to clipboard

Request for decorators based models

Open arvindknit31 opened this issue 8 months ago • 0 comments

Dear i appreciate for your great work, i want to use generated models in NestJS application with Postgres and Sequelize

i am getting Error: @Table annotation is missing on class "Student". can you please provide option for decorator based models like below.

import { Table, Column, Model, DataType, CreatedAt, UpdatedAt, BelongsToMany, PrimaryKey, AutoIncrement, AllowNull, } from 'sequelize-typescript'; import { CourseSection } from './CourseSection';

import { Column, Model, Table } from 'sequelize-typescript';

@Table export class User extends Model<User> { @Column firstName: string;

@Column lastName: string;

@Column({ defaultValue: true }) isActive: boolean; }

arvindknit31 avatar Jun 02 '24 10:06 arvindknit31