typescript-express-starter
Version:
Quick and Easy TypeScript Express Starter
18 lines (14 loc) • 383 B
text/typescript
import { Entity, Property } from '@mikro-orm/core';
import { BaseEntity } from '@entities/base.entity';
()
export class UserEntity extends BaseEntity {
constructor(email: string, password: string) {
super();
this.email = email;
this.password = password;
}
({ type: 'text' })
email!: string;
({ type: 'text' })
password!: string;
}