mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
44 lines
631 B
TypeScript
44 lines
631 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
|
|
@Entity({
|
|
name: "GitCredential"
|
|
})
|
|
export default class GitCredential extends BaseModel {
|
|
|
|
@Column()
|
|
gitUsername!: string;
|
|
|
|
@Column()
|
|
gitPassword!: string;
|
|
|
|
@Column()
|
|
sshTitle!: string;
|
|
|
|
@Column()
|
|
sshPrivateKey!: string;
|
|
|
|
@Column()
|
|
iv!: Buffer;
|
|
|
|
@Index()
|
|
@Column()
|
|
project!: Project
|
|
|
|
@Column()
|
|
createdByUser!: User
|
|
|
|
@Column()
|
|
deletedByUser!: User
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|