22 lines
506 B
TypeScript
22 lines
506 B
TypeScript
// src/models/chat-session.ts
|
|
// Copyright (C) 2026 Rob Colbert <rob.colbert@openplatform.us>
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
import { Document, Types } from "mongoose";
|
|
import type { IUser } from "./user.js";
|
|
|
|
export enum ProjectStatus {
|
|
Active = "active",
|
|
Inactive = "inactive",
|
|
Archived = "archived",
|
|
}
|
|
|
|
export interface IProject extends Document {
|
|
createdAt: Date;
|
|
user: IUser | Types.ObjectId;
|
|
status: ProjectStatus;
|
|
name: string;
|
|
slug: string;
|
|
gitUrl?: string;
|
|
}
|