mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-15 04:42:05 +00:00
13 lines
273 B
JavaScript
13 lines
273 B
JavaScript
'use strict';
|
|
|
|
import mongoose from 'mongoose';
|
|
import {registerEvents} from './thing.events';
|
|
|
|
var ThingSchema = new mongoose.Schema({
|
|
name: String,
|
|
info: String,
|
|
active: Boolean
|
|
});
|
|
|
|
registerEvents(ThingSchema);
|
|
export default mongoose.model('Thing', ThingSchema);
|