hino / app / models / team-role.js
team-role.js
Raw
import DS from 'ember-data';
import { validator, buildValidations } from 'ember-cp-validations';
const Validations = buildValidations({
	'teamRoleCode' : validator('presence', true),
	'teamRole' : validator('presence', true),
});

export default DS.Model.extend(Validations, {
	teamRoleCode: DS.attr('string'),
	teamRole: DS.attr('string'),
	createdBy: DS.attr('string'),
	updatedBy: DS.attr('string'),
});