Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev
This commit is contained in:
@@ -1,39 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace IM_API.Models;
|
||||
|
||||
[Table("permissionarole")]
|
||||
[Index("Permissionld", Name = "Permissionld")]
|
||||
[Index("Roleld", Name = "Roleld")]
|
||||
[MySqlCharSet("utf8mb4")]
|
||||
[MySqlCollation("utf8mb4_general_ci")]
|
||||
public partial class Permissionarole
|
||||
{
|
||||
[Key]
|
||||
[Column("ID", TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色
|
||||
/// </summary>
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Roleld { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限
|
||||
/// </summary>
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Permissionld { get; set; }
|
||||
public int PermissionId { get; set; }
|
||||
|
||||
[ForeignKey("Permissionld")]
|
||||
[InverseProperty("Permissionaroles")]
|
||||
public virtual Permission PermissionldNavigation { get; set; } = null!;
|
||||
public virtual Permission Permission { get; set; } = null!;
|
||||
|
||||
[ForeignKey("Roleld")]
|
||||
[InverseProperty("Permissionaroles")]
|
||||
public virtual Role RoleldNavigation { get; set; } = null!;
|
||||
public virtual Role Role { get; set; } = null!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user