[ ] AppDbContext ni yarating va DbContext, IAppDbContext dan inherit qiling
[ ] User entity yarating
public class User
{
public long Id { get; set; }
public string Fullname { get; set; }
public string Username { get; set; }
public string Language { get; set; }
public string Phone { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }
public virtual Contact Contact { get; set; }
}
[ ] uni AppDbCOntext'ga qo'shing va Fluent configuration yozing
[ ] UpdateHandler ichida yangi message kelganda UpserUserAsync methodi orqali foydalanuvchini upsert qiling
Ushbu issue uchun User entity yaratisiz va har safar yangi odam bot ga yozganda User ni DB ga qo'shashiz yoki update qilasiz.