-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RSN-36' of https://github.com/wzarek/Reasn into RSN-36
- Loading branch information
Showing
33 changed files
with
829 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sh text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 🐛 Bug Report | ||
description: Report a reproducable bug. | ||
title: "<title>" | ||
labels: ["type: bug"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: What is the current behaviour? | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: What is the expected behaviour? | ||
description: A concise description of what you expected to happen. | ||
|
||
- type: textarea | ||
attributes: | ||
label: How to reproduce it? | ||
description: Steps to reproduce this behaviour. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: ✨ Feature request | ||
description: Suggest an idea to improve our solution. | ||
title: "<title>" | ||
labels: ["type: feature request"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: What new thing should be implemented? | ||
description: A concise description of what you're expecting. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: What is your acceptance criteria? | ||
description: Necessary functionalities to meet your requirements. | ||
validations: | ||
required: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!--- | ||
Do not forget to add appropriate labels describing what | ||
the PR is about. | ||
scope: (backend | ci/cd | database | docs | frontend | mobile) | ||
type: (cleanup/refactor | feature | fix) | ||
---> | ||
|
||
## Description | ||
<!--- A concise description of your changes ---> | ||
|
||
## Motivation | ||
<!--- Why is this change required? What problem does it solve? ---> | ||
|
||
## Related issue and/or ticket | ||
<!--- | ||
Reference to an existing issue on GitHub and/or a unique | ||
ticket identifer from youtrack (RSN-*) | ||
---> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<TagDto>? Tags { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace ReasnAPI.Models.DTOs { | ||
public class IntrestDto { | ||
public string Name { get; set; } = null!; | ||
public int Level { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace ReasnAPI.Models.DTOs { | ||
public class RoleDto { | ||
public string Name { get; set; } = null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace ReasnAPI.Models.DTOs { | ||
public class StatusDto { | ||
public string Name { get; set; } = null!; | ||
public int ObjectTypeId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace ReasnAPI.Models.DTOs { | ||
public class TagDto { | ||
public string Name { get; set; } = null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<IntrestDto>? Intrests { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Address | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string City { get; set; } = null!; | ||
|
||
public string Country { get; set; } = null!; | ||
|
||
public string Street { get; set; } = null!; | ||
|
||
public string State { get; set; } = null!; | ||
|
||
public string? ZipCode { get; set; } | ||
|
||
public virtual ICollection<Event> Events { get; set; } = new List<Event>(); | ||
|
||
public virtual ICollection<User> Users { get; set; } = new List<User>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Comment | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public string Content { get; set; } = null!; | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Event | ||
{ | ||
public int Id { get; set; } | ||
|
||
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; } = null!; | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Address Address { get; set; } = null!; | ||
|
||
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>(); | ||
|
||
public virtual User Organizer { get; set; } = null!; | ||
|
||
public virtual ICollection<Participant> Participants { get; set; } = new List<Participant>(); | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
} |
15 changes: 15 additions & 0 deletions
15
Server/ReasnAPI/ReasnAPI/Models/Database/EventParameter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class EventParameter | ||
{ | ||
public int ParameterId { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual Parameter Parameter { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class EventTag | ||
{ | ||
public int EventId { get; set; } | ||
|
||
public int TagId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual Tag Tag { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Image | ||
{ | ||
public int Id { get; set; } | ||
|
||
public byte[] ImageData { get; set; } = null!; | ||
|
||
public int ObjectTypeId { get; set; } | ||
|
||
public int ObjectId { get; set; } | ||
|
||
public virtual ObjectType ObjectType { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Interest | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public int Level { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class ObjectType | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public virtual ICollection<Image> Images { get; set; } = new List<Image>(); | ||
|
||
public virtual ICollection<Status> Statuses { get; set; } = new List<Status>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Parameter | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Key { get; set; } = null!; | ||
|
||
public string Value { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Participant | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} |
Oops, something went wrong.