oneuptime/Common/Models/TeamMember.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

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;
}