{"size": 809, "ext": "js", "max_stars_repo_path": "packages/custom/gantikk/server/models/connect.js", "max_stars_repo_name": "mageshk/-Dev-Gantikk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/custom/gantikk/server/models/connect.js", "max_issues_repo_name": "mageshk/-Dev-Gantikk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/custom/gantikk/server/models/connect.js", "max_forks_repo_name": "mageshk/-Dev-Gantikk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 13.0483870968, "max_line_length": 40, "alphanum_fraction": 0.5624227441}
'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
  Schema = mongoose.Schema;


/**
 * Users Schema
 */
var usersSchema = new Schema({
	
	googleId: {
		type		:	String,
		required	:	true,
		trim		:	true
	},
	fname: {
		type		:	String,
		required	:	true,
		trim		:	true
	},
	lname: {
		type		:	String,
		required	:	true,
		trim		:	true
	},
	displayname: {
		type		:	String,
		required	:	true,
		trim		:	true
	},
	email : {
		type		:	String,
		trim		:	true
	},
	gender: {
		type		:	String,
		trim		:	true
	},
	profileImg : {
		type		:	String,
		trim		:	true
	},
	roles: {
		type		:	Array,
		default		:	['authenticated']
	},
	created : {
		type		:	Date,
		default		:	Date.now
	},
	visited : {
		type		:	Date,
		default		:	Date.now
	}
});

mongoose.model('gk_users', usersSchema);
