diff --git a/Server/ReasnAPI/ReasnAPI/Models/.gitkeep b/Server/ReasnAPI/ReasnAPI/Models/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/AddressDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/AddressDto.cs new file mode 100644 index 00000000..223eacdd --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/AddressDto.cs @@ -0,0 +1,11 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class AddressDto { + public string Country { get; set; } = null!; + public string City { get; set; } = null!; + public string Street { get; set; } = null!; + public string State { get; set; } = null!; + public string? ZipCode { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/CommentDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/CommentDto.cs new file mode 100644 index 00000000..b552bfe7 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/CommentDto.cs @@ -0,0 +1,10 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class CommentDto { + public int EventId { get; set; } + public string Content { get; set; } = null!; + public DateTime CreatedAt { get; set; } + public int UserId { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/EventDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/EventDto.cs new file mode 100644 index 00000000..d35c8120 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/EventDto.cs @@ -0,0 +1,17 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class EventDto { + public string Name { get; set; } = null!; + public int AddressId { get; set; } + public string Description { get; set; } = null!; + public int OrganizerId { get; set; } + public DateTime StartAt { get; set; } + public DateTime EndAt { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + public string? Slug { get; set; } + public int StatusId { get; set; } + public List? Tags { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/ImageDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ImageDto.cs new file mode 100644 index 00000000..d19282b9 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ImageDto.cs @@ -0,0 +1,9 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class ImageDto { + public byte[] ImageData { get; set; } = null!; + public int ObjectId { get; set; } + public int ObjectTypeId { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/IntrestDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/IntrestDto.cs new file mode 100644 index 00000000..5eb19a65 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/IntrestDto.cs @@ -0,0 +1,8 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class IntrestDto { + public string Name { get; set; } = null!; + public int Level { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParameterDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParameterDto.cs new file mode 100644 index 00000000..4f953bdb --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParameterDto.cs @@ -0,0 +1,8 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class ParameterDto { + public string Key { get; set; } = null!; + public string Value { get; set; } = null!; + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParticipantDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParticipantDto.cs new file mode 100644 index 00000000..c951ff50 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/ParticipantDto.cs @@ -0,0 +1,9 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class ParticipantDto { + public int EventId { get; set; } + public int UserId { get; set; } + public int StatusId { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/RoleDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/RoleDto.cs new file mode 100644 index 00000000..b1267f14 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/RoleDto.cs @@ -0,0 +1,5 @@ +namespace ReasnAPI.Models.DTOs { + public class RoleDto { + public string Name { get; set; } = null!; + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/StatusDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/StatusDto.cs new file mode 100644 index 00000000..42e1cb57 --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/StatusDto.cs @@ -0,0 +1,8 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class StatusDto { + public string Name { get; set; } = null!; + public int ObjectTypeId { get; set; } + } +} \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/TagDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/TagDto.cs new file mode 100644 index 00000000..cf6c939b --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/TagDto.cs @@ -0,0 +1,5 @@ +namespace ReasnAPI.Models.DTOs { + public class TagDto { + public string Name { get; set; } = null!; + } +} diff --git a/Server/ReasnAPI/ReasnAPI/Models/DTOs/UserDto.cs b/Server/ReasnAPI/ReasnAPI/Models/DTOs/UserDto.cs new file mode 100644 index 00000000..2ea5e75f --- /dev/null +++ b/Server/ReasnAPI/ReasnAPI/Models/DTOs/UserDto.cs @@ -0,0 +1,14 @@ +using System; + +namespace ReasnAPI.Models.DTOs { + public class UserDto { + public string Username { get; set; } = null!; + public string Name { get; set; } = null!; + public string Surname { get; set; } = null!; + public string Email { get; set; } = null!; + public string? Phone { get; set; } + public int RoleId { get; set; } + public int AddressId { get; set; } + public List? Intrests { get; set; } + } +} \ No newline at end of file