Yield generated for e847f511-c4a8-41d9-b55e-10620e4d97cb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
398 B

import { DbAuditModel } from '../../utils/dbmodel.model';
import { Column, Entity, ManyToOne, OneToMany } from 'typeorm';
import { ApiModelProperty } from '@nestjs/swagger';
@Entity()
export class Role extends DbAuditModel {
constructor(name: string) {
super();
this.name = name;
}
@ApiModelProperty({ required: true, readOnly: true })
@Column({ unique: true })
name: string;
}