School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("AdDistributionData")]
public class AdDistributionData
{
[Key]
[Column("song_id")]
public int Song_Id { get; set; }
[Key]
[Column("ad_campaign")]
public int Ad_Campaign { get; set; }
[Column("genre")]
public string Genre { get; set; }
[Column("language")]
public string Language { get; set; }
[Column("month")]
public int Month { get; set; }
[Column("year")]
public int Year { get; set; }
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("AuthorDetails")]
public class AuthorDetails
{
[Key]
[Column("artist_id")]
public int Artist_Id { get; set; } = 0;
[Column("name")]
public string Name { get; set; } = "DefaultName";
}
}
@@ -0,0 +1,17 @@
namespace TechTitans.Models
{
public class FullDetailsOnSong {
public int TotalMinutesListened { get; set; }
public int TotalPlays { get; set; }
public int TotalLikes { get; set; }
public int TotalDislikes { get; set; }
public int TotalSkips { get; set; }
public FullDetailsOnSong() {
TotalMinutesListened = 0;
TotalPlays = 0;
TotalLikes = 0;
TotalDislikes = 0;
TotalSkips = 0;
}
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
internal class MostPlayedArtistInfo
{
[Column("artist_id")]
public int Artist_Id { get; set; }
[Column("start_listen_events")]
public int Start_Listen_Events { get; set; }
}
}
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table ("SongBasicDetails")]
public class SongBasicDetails
{
[Key]
[Column("song_id")]
public int Song_Id { get; set; } = 0;
[Column("name")]
public string Name { get; set; } = "DefaultName";
[Column("genre")]
public string Genre { get; set; } = "DefaultGenre";
[Column("subgenre")]
public string Subgenre { get; set; } = "DefaultSubgenre";
[Column("artist_id")]
public int Artist_Id { get; set; } = 0;
[Column("language")]
public string Language { get; set; } = "DefaultLanguage";
[Column("country")]
public string Country { get; set; } = "DefaultCountry";
[Column("album")]
public string Album { get; set; } = "DefaultAlbum";
[Column("image")]
public string Image { get; set; } = "song_img_default.png";
}
}
@@ -0,0 +1,17 @@
namespace TechTitans.Models
{
public class SongBasicInfo
{
public int SongId { get; set; } = 0;
public string Name { get; set; } = "DefaultName";
public string Genre { get; set; } = "DefaultGenre";
public string Subgenre { get; set; } = "DefaultSubgenre";
public string Artist { get; set; } = "DefaultArtist";
public IList<string> Features { get; set; } = new List<string>();
public string Language { get; set; } = "DefaultLanguage";
public string Country { get; set; } = "DefaultCountry";
public string Album { get; set; } = "DefaultAlbum";
public string Image { get; set; } = "song_img_default.png";
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("SongFeatures")]
public class SongFeatures
{
[Key]
[Column("song_id")]
public int Song_Id { get; set; }
[Key]
[Column("artist_id")]
public int Artist_Id { get; set; }
}
}
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("SongRecommendationDetails")]
public class SongRecommendationDetails
{
[Key]
[Column("song_id")]
public int Song_Id { get; set; } = 0;
[Column("likes")]
public int Likes { get; set; } = 0;
[Column("dislikes")]
public int Dislikes { get; set; } = 0;
[Column("minutes_listened")]
public int Minutes_Listened { get; set; } = 0;
[Column("number_of_plays")]
public int Number_Of_Plays { get; set; } = 0;
[Key]
[Column("month")]
public int Month { get; set; } = 0;
[Key]
[Column("year")]
public int Year { get; set; } = 0;
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("Test")]
public class Test
{
[Key]
[Column("Id")]
public int Id { get; set; }
[Column("Name")]
public string Name { get; set; }
}
}
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("Trends")]
public class Trends
{
[Key]
[Column("genre")]
public string Genre { get; set; }
[Key]
[Column("language")]
public string Language { get; set; }
[Key]
[Column("country")]
public string Country { get; set; }
[Key]
[Column("song_id")]
public int Song_Id { get; set; }
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TechTitans.Models
{
[Table("UserDemographicsDetails")]
public class UserDemographicsDetails
{
[Key]
[Column("user_id")]
public int User_Id { get; set; }
[Column("name")]
public string Name { get; set; }
[Column("gender")]
public int Gender { get; set; }
[Column("date_of_birth")]
public DateTime Date_Of_fBirth { get; set; }
[Column("country")]
public string Country { get; set; }
[Column("language")]
public string Language { get; set; }
[Column("race")]
public string Race { get; set; }
[Column("premium_user")]
public bool Premium_User { get; set; }
}
}
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TechTitans.Enums;
namespace TechTitans.Models
{
[Table("UserPlaybackBehaviour")]
public class UserPlaybackBehaviour
{
[Key]
[Column("user_id")]
public int User_Id { get; set; }
[Key]
[Column("song_id")]
public int Song_Id { get; set; }
[Column("event_type")]
public PlaybackEventType Event_Type { get; set; }
[Key]
[Column("timestamp")]
public DateTime Timestamp { get; set; }
}
}