feat(proejct): project curd.
This commit is contained in:
28
src/projects/project.entity.ts
Normal file
28
src/projects/project.entity.ts
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user