Yield generated for 0a51d723-9283-4b0a-90bd-001aa65aed09
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;
}