mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
18 lines
506 B
TypeScript
18 lines
506 B
TypeScript
import { model, Schema, Types } from 'mongoose';
|
|
|
|
export type TLimitNotify = {
|
|
_id: Schema.Types.ObjectId,
|
|
project_id: Schema.Types.ObjectId,
|
|
limit1: boolean,
|
|
limit2: boolean,
|
|
limit3: boolean
|
|
}
|
|
|
|
const LimitNotifySchema = new Schema<TLimitNotify>({
|
|
project_id: { type: Types.ObjectId, index: 1 },
|
|
limit1: { type: Boolean },
|
|
limit2: { type: Boolean },
|
|
limit3: { type: Boolean }
|
|
});
|
|
|
|
export const LimitNotifyModel = model<TLimitNotify>('limit_notifies', LimitNotifySchema); |