Remove appsettings.json from tracking

main
Leo TUAILLON 3 weeks ago
parent a966a59a95
commit 2c66266908

2
.gitignore vendored

@ -800,4 +800,4 @@ pyrightconfig.json
# End of https://www.toptal.com/developers/gitignore/api/rider,intellij,intellij+all,dotnetcore,csharp,python
*appsettings*.json
**/appsettings.json

@ -6,6 +6,6 @@
}
},
"ConnectionStrings": {
"CatalogDb": "Server=localhost;Port=5433;Database=CatalogDb;User Id=postgres;Password=montretesfesseslouis;"
"CatalogDb": "Server=localhost;Port=5433;Database=CatalogDb;User Id=postgres;Password=montretesfesseslouis;",
}
}

@ -1,6 +1,17 @@
using Shared.Enum;
namespace Shared.DTOs;
public class ExerciceTemplateDto
{
public string Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public ETarget Target { get; set; }
public string ImageUrl { get; set; }
public string VideoUrl { get; set; }
// Default value (UTC time because it's the most common format and it's the one used by postgres database)
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
Loading…
Cancel
Save