mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix members
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { model, Schema, Types } from 'mongoose';
|
||||
|
||||
export type TPageBlacklistSchema = {
|
||||
_id: Schema.Types.ObjectId,
|
||||
project_id: Schema.Types.ObjectId,
|
||||
page: string,
|
||||
description:string,
|
||||
created_at: Date
|
||||
}
|
||||
|
||||
const CountryBlacklistSchema = new Schema<TPageBlacklistSchema>({
|
||||
project_id: { type: Types.ObjectId, index: 1 },
|
||||
page: { type: String, required: true },
|
||||
description: { type: String },
|
||||
created_at: { type: Date, default: () => Date.now() },
|
||||
});
|
||||
|
||||
export const CountryBlacklistModel = model<TPageBlacklistSchema>('country_blacklists', CountryBlacklistSchema);
|
||||
Reference in New Issue
Block a user