feat(proejct): project curd.

This commit is contained in:
Ivan Li
2021-01-31 19:42:17 +08:00
parent 7ba5e220d9
commit db6b699663
27 changed files with 1326 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
import { ObjectType } from '@nestjs/graphql';
import { AppBaseEntity } from 'src/commons/entities/app-base-entity';
import { Entity, Column, DeleteDateColumn } from 'typeorm';
@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;
@DeleteDateColumn()
deletedAt?: Date;
}