mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 21:44:12 +08:00
17 lines
450 B
C#
17 lines
450 B
C#
![]() |
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|||
|
namespace detect.gui.Models.Entities;
|
|||
|
|
|||
|
[Table("UserAuthority")]
|
|||
|
[Index(nameof(UserId), IsUnique = false)]
|
|||
|
[Index(nameof(AuthorityId), IsUnique = false)]
|
|||
|
public class UserAuthorityEntity
|
|||
|
{
|
|||
|
[Key] public long? Id { get; set; }
|
|||
|
|
|||
|
public long? UserId { get; set; }
|
|||
|
|
|||
|
public long? AuthorityId { get; set; }
|
|||
|
}
|