/
qwiklly
/
arc-server
Обзор
Документация
Войти
/
qwiklly
/
arc-server
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
src/AppRemoteConfig/Models/Database/OrganizationAccess.cs
26 строк
720 B
CLTanuki
feat(#3, #7): scope, based on current user
10 янв 2024, 18:20
10 янв 2024, 18:20
0019562
Код
Авторство
О чём код?
namespace AppRemoteConfig.Models.Database { using System; using System.ComponentModel.DataAnnotations.Schema; using AppRemoteConfig.Models; using Microsoft.EntityFrameworkCore; [PrimaryKey(nameof(AppUserId), nameof(OrganizationId))] public class OrganizationAccess { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid Id { get; set; } public AccessLevelEnum GrantedRights { get; set; } public DateOnly GrantedAt { get; set; } public Guid OrganizationId { get; set; } public Guid AppUserId { get; set; } public Organization Organization { get; set; } public AppUser AppUser { get; set; } } }