typeorm#PrimaryColumn TypeScript Examples

The following examples show how to use typeorm#PrimaryColumn. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RandomIdBaseEntity.ts    From context-mod with MIT License 6 votes vote down vote up
/*
    * Wanted to use a random id that was smaller than a UUID since all these entities will (probably) be accessed through api endpoints at some point
    * and they need to be url friendly
    *
    * ID Example: 4rTFo6yoQIFT6UTr
    * */


    @PrimaryColumn('varchar', {length: 20})
    id!: string
Example #2
Source File: user.ts    From MyAPI with MIT License 6 votes vote down vote up
/**
   * User's document
   */
  @ApiProperty({ description: 'Document of the user' })
  @PrimaryColumn('text')
  @IsNotEmpty({
    message: 'Identification number is required'
  })
  id: string
Example #3
Source File: MainEntity.ts    From liferay-grow with MIT License 5 votes vote down vote up
@Field(() => ID)
  @PrimaryColumn({ generated: 'uuid' })
  id: string;
Example #4
Source File: Config.entity.ts    From bouncecode-cms with GNU General Public License v3.0 5 votes vote down vote up
/**
   * 고유값입니다.
   */
  @PrimaryColumn()
  id: string;
Example #5
Source File: Survey.ts    From NextLevelWeek with MIT License 5 votes vote down vote up
@PrimaryColumn()
    readonly id: string;
Example #6
Source File: BaseClass.ts    From fosscord-server with GNU Affero General Public License v3.0 5 votes vote down vote up
PrimaryIdColumn = process.env.DATABASE?.startsWith("mongodb") ? ObjectIdColumn : PrimaryColumn
Example #7
Source File: message.entity.ts    From gear-js with GNU General Public License v3.0 5 votes vote down vote up
@PrimaryColumn()
  id: string;
Example #8
Source File: auth_code.ts    From ts-oauth2-server with MIT License 5 votes vote down vote up
@PrimaryColumn("varchar", { length: 128 })
  // @Length(64, 128)
  code!: string;
Example #9
Source File: CommentStat.entity.ts    From bouncecode-cms with GNU General Public License v3.0 5 votes vote down vote up
// 게시글
  @PrimaryColumn()
  postId: string;
Example #10
Source File: TypeOrmMedia.ts    From typescript-clean-architecture with MIT License 5 votes vote down vote up
@PrimaryColumn()
  public id: string;
Example #11
Source File: ApplicationSoftware.ts    From type-graphql-dataloader with MIT License 5 votes vote down vote up
@Field()
  @PrimaryColumn()
  name: string;
Example #12
Source File: model.ts    From squid with GNU General Public License v3.0 5 votes vote down vote up
@PrimaryColumn()
    id!: string
Example #13
Source File: model.ts    From WiLearning with GNU Affero General Public License v3.0 5 votes vote down vote up
@PrimaryColumn()
    id: string;
Example #14
Source File: ClientSession.ts    From context-mod with MIT License 5 votes vote down vote up
@PrimaryColumn("varchar", { length: 255 })
    public id = "";
Example #15
Source File: Device.ts    From bluebubbles-server with Apache License 2.0 5 votes vote down vote up
@PrimaryColumn("text", { name: "name" })
    name: string;
Example #16
Source File: mca.ts    From Corsace with MIT License 5 votes vote down vote up
@PrimaryColumn({ type: "year" })
    year!: number;
Example #17
Source File: Activity.ts    From context-mod with MIT License 5 votes vote down vote up
@PrimaryColumn({name: 'id', comment: 'A reddit fullname -- includes prefix'})
    _id!: string;
Example #18
Source File: Config.ts    From bluebubbles-server with Apache License 2.0 5 votes vote down vote up
@PrimaryColumn("text", { name: "name" })
    name: string;
Example #19
Source File: Invite.ts    From context-mod with MIT License 5 votes vote down vote up
@PrimaryColumn('varchar', {length: 255})
    id!: string
Example #20
Source File: User.ts    From barista with Apache License 2.0 5 votes vote down vote up
@PrimaryColumn()
  id: string;
Example #21
Source File: typeorm.entity.base.ts    From domain-driven-hexagon with MIT License 5 votes vote down vote up
@PrimaryColumn({ update: false })
  id: string;
Example #22
Source File: User.ts    From test with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@PrimaryColumn('uuid')
  id: string
Example #23
Source File: Updoot.ts    From lireddit with MIT License 5 votes vote down vote up
@PrimaryColumn()
  userId: number;
Example #24
Source File: View.ts    From vsinder with Apache License 2.0 5 votes vote down vote up
@PrimaryColumn()
  viewerId: string;
Example #25
Source File: View.ts    From vsinder-api with Apache License 2.0 5 votes vote down vote up
@PrimaryColumn()
  viewerId: string;
Example #26
Source File: ChatRoom.entity.ts    From bouncecode-cms with GNU General Public License v3.0 5 votes vote down vote up
@PrimaryColumn()
  id: string;