lib/common/media/entity/media-ext.entity.ts
The entity stores extensions of media objects
Properties |
code |
Type : string
|
Decorators :
@Index({unique: true})
|
name |
Type : string
|
Decorators :
@Index()
|
import { Column, Entity, Index, PrimaryColumn } from "typeorm";
import { MediaExt } from "../media.types";
/**
* The entity stores extensions of media objects
*/
@Entity("medias_ext")
export class MediaExtEntity implements MediaExt {
@Index({ unique: true })
@PrimaryColumn("varchar")
code: string;
@Index()
@Column("varchar", { nullable: false })
name: string;
}