service_audit.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. App.ServiceAudit = DS.Model.extend({
  20. date: DS.attr('date'),
  21. service: DS.belongsTo('App.Service'),
  22. operationName: DS.attr('string'),
  23. user: DS.belongsTo('App.User')
  24. });
  25. App.ServiceAudit.FIXTURES = [
  26. {
  27. id: 1,
  28. date: 'September 12, 2012 17:00',
  29. operation_name: 'Reconfigure',
  30. user_id: 2,
  31. service_id: 1
  32. },
  33. {
  34. id: 2,
  35. date: 'September 13, 2012 17:00',
  36. operation_name: 'Start',
  37. user_id: 1,
  38. service_id: 1
  39. },
  40. {
  41. id: 3,
  42. date: 'September 14, 2012 17:00',
  43. operation_name: 'Install',
  44. user_id: 1,
  45. service_id: 1
  46. },
  47. {
  48. id: 4,
  49. date: 'September 12, 2012 17:00',
  50. operation_name: 'Reconfigure',
  51. user_id: 2,
  52. service_id: 2
  53. },
  54. {
  55. id: 5,
  56. date: 'September 13, 2012 17:00',
  57. operation_name: 'Start',
  58. user_id: 1,
  59. service_id: 2
  60. },
  61. {
  62. id: 6,
  63. date: 'September 14, 2012 17:00',
  64. operation_name: 'Install',
  65. user_id: 1,
  66. service_id: 2
  67. }
  68. ];