File

lib/common/media/entity/media-ext.entity.ts

Description

The entity stores extensions of media objects

Index

Properties

Properties

code
Type : string
Decorators :
@Index({unique: true})
@PrimaryColumn('varchar')
name
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: false})
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;
}

results matching ""

    No results matching ""