2016-07-20 12:25:51 +02:00
|
|
|
/**
|
|
|
|
* File: user.js
|
|
|
|
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
|
|
|
|
* Date: 26.06.2016
|
|
|
|
* Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
|
|
|
* This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential.
|
|
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
**********************************************************************************/
|
|
|
|
|
2016-06-26 13:35:06 +02:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2016-06-27 23:22:05 +02:00
|
|
|
import { hasMany } from 'ember-data/relationships';
|
2016-06-26 13:35:06 +02:00
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
username: attr('string'),
|
2016-07-11 22:03:47 +02:00
|
|
|
password: attr('string'),
|
2016-06-27 23:22:05 +02:00
|
|
|
adminLevel: attr('number'),
|
2016-06-28 10:00:38 +02:00
|
|
|
projects: hasMany('project', { async: true }),
|
2016-07-26 19:26:15 +02:00
|
|
|
simulations: hasMany('simulation', { async: true }),
|
2016-06-28 10:00:38 +02:00
|
|
|
mail: attr('string')
|
2016-06-26 13:35:06 +02:00
|
|
|
});
|