26 lines
475 B
TypeScript
26 lines
475 B
TypeScript
import { ObjectType } from '@nestjs/graphql';
|
|
import { Entity, Column, DeleteDateColumn } from 'typeorm';
|
|
import { AppBaseEntity } from '../commons/entities/app-base-entity';
|
|
|
|
@ObjectType()
|
|
@Entity()
|
|
export class Project extends AppBaseEntity {
|
|
/**
|
|
* 唯一名称
|
|
*/
|
|
@Column()
|
|
name: string;
|
|
|
|
@Column()
|
|
comment: string;
|
|
|
|
@Column()
|
|
sshUrl: string;
|
|
|
|
@Column({ nullable: true })
|
|
webUrl?: string;
|
|
|
|
@Column({ nullable: true })
|
|
webHookSecret?: string;
|
|
}
|