2024-10-23 23:16:01 +02:00
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
using FirmTracker_Server.Entities;
|
|
|
|
|
|
|
|
|
|
public class UserMapping : ClassMap<User>
|
|
|
|
|
{
|
|
|
|
|
public UserMapping()
|
|
|
|
|
{
|
|
|
|
|
Table("Users"); // The name of your table in the database
|
|
|
|
|
|
2024-11-13 20:44:01 +01:00
|
|
|
|
Id(x => x.UserId); // Mapping the Id property
|
2024-10-23 23:16:01 +02:00
|
|
|
|
Map(x => x.Email); // Mapping other properties
|
|
|
|
|
Map(x => x.PassHash);
|
|
|
|
|
Map(x => x.Role);
|
|
|
|
|
// Add other mappings as needed
|
|
|
|
|
}
|
|
|
|
|
}
|