Github integration (#6414)

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Apoorv Mishra
2024-03-23 19:39:28 +05:30
committed by GitHub
parent a648625700
commit 450d0d9355
47 changed files with 1710 additions and 93 deletions

View File

@@ -4,8 +4,10 @@ import type {
IntegrationSettings,
IntegrationType,
} from "@shared/types";
import User from "~/models/User";
import Model from "~/models/base/Model";
import Field from "./decorators/Field";
import Field from "~/models/decorators/Field";
import Relation from "~/models/decorators/Relation";
class Integration<T = unknown> extends Model {
static modelName = "Integration";
@@ -18,6 +20,13 @@ class Integration<T = unknown> extends Model {
collectionId: string;
userId: string;
@Relation(() => User, { onDelete: "cascade" })
user: User;
teamId: string;
@Field
@observable
events: string[];