1 using Newtonsoft.Json;
3 using System.Collections.Generic;
4 using System.ComponentModel.DataAnnotations;
6 namespace Projects.Models
8 [JsonObject(IsReference = true)]
9 public class ProjectMetadata
12 [Display(Name = "Nazwa")]
15 [Display(Name = "Opis")]
16 public string description;
18 [Display(Name = "Data utworzenia")]
19 public Nullable<System.DateTime> created_at;
21 [Display(Name = "Data edycji")]
22 public Nullable<System.DateTime> updated_at;
24 [Display(Name = "Właściciel projektu")]
25 public Nullable<int> user_id;
28 [JsonObject(IsReference = true)]
29 public class ProjectTaskMetadata
32 [Display(Name = "Nazwa")]
35 [Display(Name = "Opis")]
36 public string description;
38 [Display(Name = "Data utworzenia")]
39 public Nullable<System.DateTime> created_at;
41 [Display(Name = "Data edycji")]
42 public Nullable<System.DateTime> updated_at;
44 [Display(Name = "Właściciel zadania")]
45 public Nullable<int> user_id;
48 [JsonObject(IsReference = true)]
49 public class UserMetadata
51 [Display(Name = "Nazwa użytkownika")]
54 [Display(Name = "Hasło")]
55 public string password;
58 [JsonObject(IsReference = true)]
59 public class TaskStatusMetadata
61 [Display(Name = "Status")]