aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Models/Dataset.cs
blob: 1bf080ec3d0110918d840d045e6655e6d8f09b2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace api.Models
{
	public class Dataset
	{
        public string username { get; set; }

        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]//mongo data type to .net
        public string _id { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public string[] header { get; set; }
        public string fileId { get; set; }
        public string extension { get; set; }
        public bool isPublic { get; set; }
        public bool accessibleByLink { get; set; }
        public DateTime dateCreated { get; set; }
        public DateTime lastUpdated { get; set; }
    }
}