Initial commit — Hamkadr (همکادر) healthcare-staffing marketplace
ASP.NET Core 10 Razor Pages + PostgreSQL/EF Core. RTL Persian, Jalali dates, self-hosted Vazirmatn, teal/coral brand. Features: - Shift listings: browse/filter (city, district, role, type, pay), weekly Jalali calendar, detail + interest handoff, near-me distance sort - Hiring (استخدام) listings with employment type + salary range - Pattern-engine recommendations + anonymous interest tracking (visitor cookie) - Heuristic Persian listing-parser + admin queue (raw channel post → shift/job) - Phone-OTP cookie auth + visitor-history linking + profile Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace JobsMedical.Web.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Staging area for shift listings aggregated from Telegram / Bale / Divar channels.
|
||||
/// An admin reviews and normalizes these into real <see cref="Shift"/> records.
|
||||
/// This is how we beat the cold-start problem.
|
||||
/// </summary>
|
||||
public class RawListing
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[MaxLength(200)]
|
||||
public string SourceChannel { get; set; } = ""; // نام کانال/منبع
|
||||
|
||||
[Required]
|
||||
public string RawText { get; set; } = ""; // متن خام آگهی
|
||||
|
||||
public string? ParsedJson { get; set; } // نتیجهی تجزیهی خودکار (در صورت وجود)
|
||||
|
||||
public RawListingStatus Status { get; set; } = RawListingStatus.New;
|
||||
|
||||
public int? LinkedShiftId { get; set; } // شیفت ساختهشده از این آگهی
|
||||
public Shift? LinkedShift { get; set; }
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? SourceUrl { get; set; }
|
||||
|
||||
public DateTime FetchedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user