This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
2025-10-05 21:33:50 +02:00

35 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Db.Models;
[Table("teams")]
public partial class Team
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("icon", TypeName = "character varying")]
public string? Icon { get; set; }
[Column("name", TypeName = "character varying")]
public string Name { get; set; } = null!;
[Column("owner_user_id", TypeName = "character varying")]
public string? OwnerUserId { get; set; }
[InverseProperty("Team")]
public virtual ICollection<Application> Applications { get; set; } = new List<Application>();
[ForeignKey("OwnerUserId")]
[InverseProperty("Teams")]
public virtual User? OwnerUser { get; set; }
[InverseProperty("Team")]
public virtual ICollection<TeamMember> TeamMembers { get; set; } = new List<TeamMember>();
}