mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
22 lines
390 B
TypeScript
22 lines
390 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
|
|
@Entity({
|
|
name: "TeamMember"
|
|
})
|
|
export default class TeamMember extends BaseModel {
|
|
|
|
@Column()
|
|
@Index()
|
|
team!: Team
|
|
|
|
@Column()
|
|
user!: User;
|
|
|
|
@Column()
|
|
createdByUser!: User
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
} |