blob: 892a4a17db0106370339e14e38953bfed3ba84b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Db.Models;
[Table("audit_logs")]
public partial class AuditLog
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("user_id", TypeName = "character varying")]
public string? UserId { get; set; }
[Column("action_type")]
public int ActionType { get; set; }
[Column("options")]
public string? Options { get; set; }
[Column("changes")]
public string Changes { get; set; } = null!;
[Column("reason", TypeName = "character varying")]
public string? Reason { get; set; }
[Column("target_id", TypeName = "character varying")]
public string? TargetId { get; set; }
[ForeignKey("TargetId")]
[InverseProperty("AuditLogTargets")]
public virtual User? Target { get; set; }
[ForeignKey("UserId")]
[InverseProperty("AuditLogUsers")]
public virtual User? User { get; set; }
}
|