mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
38 lines
597 B
TypeScript
38 lines
597 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
|
|
@Entity({
|
|
name: "DockerCredential"
|
|
})
|
|
export default class DockerCredential extends BaseModel {
|
|
|
|
@Column()
|
|
dockerRegistryUrl!: URL;
|
|
|
|
@Column()
|
|
dockerUsername!: string;
|
|
|
|
@Column()
|
|
dockerPassword!: string;
|
|
|
|
@Column()
|
|
iv!: Buffer;
|
|
|
|
@Index()
|
|
@Column()
|
|
project!: Project
|
|
|
|
@Column()
|
|
createdByUser!: User
|
|
|
|
@Column()
|
|
deletedByUser!: User
|
|
|
|
};
|
|
|
|
|
|
|