Files
server/extra/admin-api/Models/Spacebar.Models.Db/Models/Recipient.cs
2026-02-03 03:15:59 +01:00

33 lines
901 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Models.Db.Models;
[Table("recipients")]
public partial class Recipient
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("channel_id", TypeName = "character varying")]
public string ChannelId { get; set; } = null!;
[Column("user_id", TypeName = "character varying")]
public string UserId { get; set; } = null!;
[Column("closed")]
public bool Closed { get; set; }
[ForeignKey("ChannelId")]
[InverseProperty("Recipients")]
public virtual Channel Channel { get; set; } = null!;
[ForeignKey("UserId")]
[InverseProperty("Recipients")]
public virtual User User { get; set; } = null!;
}