18 lines
423 B
C#
18 lines
423 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Server.Models;
|
|
|
|
public class Company
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
public string Name { get; set; } = null!;
|
|
|
|
[ForeignKey("OwnerId")]
|
|
public string OwnerId { get; set; } = null!;
|
|
public User Owner { get; set; } = null!;
|
|
|
|
public List<Vehicle>? Vehicles { get; set; }
|
|
} |