mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
refactoring dashboard
This commit is contained in:
16
dashboard/shared/schema/OnboardingSchema.ts
Normal file
16
dashboard/shared/schema/OnboardingSchema.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { model, Schema, Types } from 'mongoose';
|
||||
|
||||
export type TOnboarding = {
|
||||
user_id: Types.ObjectId,
|
||||
analytics: string,
|
||||
job: string
|
||||
}
|
||||
|
||||
const OnboardingSchema = new Schema<TOnboarding>({
|
||||
user_id: { type: Schema.Types.ObjectId, required: true },
|
||||
analytics: { type: String, required: false },
|
||||
job: { type: String, required: false },
|
||||
});
|
||||
|
||||
export const OnboardingModel = model<TOnboarding>('onboardings', OnboardingSchema);
|
||||
|
||||
Reference in New Issue
Block a user