Files
knightcrawler/src/shared/Models/IngestedTorrent.cs
iPromKnight 66609c2a46 trigram performance increased and housekeeping (#184)
* add new indexes, and change year column to int

* Change gist to gin, and change year to int

* Producer changes for new gin query

* Fully map the rtn response using json dump from Pydantic

Also updates Rtn to 0.1.9

* Add housekeeping script to reconcile imdb ids.

* Join Torrent onto the ingested torrent table

Ensure that a torrent can always find the details of where it came from, and how it was parsed.

* Version bump for release

* missing quote on table name
2024-03-29 19:01:48 +00:00

21 lines
632 B
C#

namespace SharedContracts.Models;
public class IngestedTorrent
{
public long? Id { get; set; }
public string? Name { get; set; }
public string? Source { get; set; }
public string? Category { get; set; }
public string? InfoHash { get; set; }
public string? Size { get; set; }
public int Seeders { get; set; }
public int Leechers { get; set; }
public string? Imdb { get; set; }
public bool Processed { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
public string? RtnResponse { get; set; }
}