Initial commit
This commit is contained in:
17
backend/models/phone/phone.schema.ts
Normal file
17
backend/models/phone/phone.schema.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Schema } from 'mongoose';
|
||||
import { User } from '../user/user.model';
|
||||
|
||||
const schemaPhone = new Schema({
|
||||
displayName: { type: String, required: true },
|
||||
modelName: { type: String, required: false },
|
||||
operatingSystem: { type: String, required: false },
|
||||
architecture: { type: String, required: false },
|
||||
user: { type: User, required: true }
|
||||
}, {
|
||||
timestamps: {
|
||||
createdAt: true,
|
||||
updatedAt: true
|
||||
}
|
||||
});
|
||||
|
||||
export { schemaPhone };
|
||||
Reference in New Issue
Block a user