forked from OpenWF/SpaceNinjaServer
and some initial refactoring to avoid it where possible Reviewed-on: OpenWF/SpaceNinjaServer#2407 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
26 lines
591 B
TypeScript
26 lines
591 B
TypeScript
import { Schema } from "mongoose";
|
|
import { IColor, IShipCustomization } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
|
|
|
export const colorSchema = new Schema<IColor>(
|
|
{
|
|
t0: Number,
|
|
t1: Number,
|
|
t2: Number,
|
|
t3: Number,
|
|
en: Number,
|
|
e1: Number,
|
|
m0: Number,
|
|
m1: Number
|
|
},
|
|
{ _id: false }
|
|
);
|
|
|
|
export const shipCustomizationSchema = new Schema<IShipCustomization>(
|
|
{
|
|
SkinFlavourItem: String,
|
|
Colors: colorSchema,
|
|
ShipAttachments: { HOOD_ORNAMENT: String }
|
|
},
|
|
{ _id: false }
|
|
);
|