mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
initial commit.
This commit is contained in:
21
models/domain.js
Normal file
21
models/domain.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var mongoose = require('mongoose');
|
||||
var Schema = mongoose.Schema;
|
||||
|
||||
module.exports.domainSchema = mongoose.Schema({
|
||||
domain: String,
|
||||
edu: Boolean,
|
||||
created_at: {
|
||||
type: Date,
|
||||
default: Date.now
|
||||
},
|
||||
updated_at: {
|
||||
type: Date,
|
||||
default: Date.now
|
||||
}
|
||||
});
|
||||
|
||||
module.exports.domainSchema.index({
|
||||
domain: 1
|
||||
});
|
||||
Reference in New Issue
Block a user