-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPostgresDatabaseColumns.cs
More file actions
51 lines (49 loc) · 2.22 KB
/
Copy pathPostgresDatabaseColumns.cs
File metadata and controls
51 lines (49 loc) · 2.22 KB
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
42
43
44
45
46
47
48
49
50
51
namespace CoreEx.Database.Postgres.Extended;
/// <summary>
/// Extends the <see cref="DatabaseColumns"/> configuring/adding PostgreSQL specific columns.
/// </summary>
/// <remarks>All are initialized using the de facto PostgreSQL snake_case convention.
/// <para>The <see cref="DatabaseColumns.RowVersionName"/> is mapped to the PostgreSQL-specific column name <c>xmin</c>. This is a PostgreSQL system column (hidden); see <see href="https://www.postgresql.org/docs/current/ddl-system-columns.html#DDL-SYSTEM-COLUMNS"/>
/// and <see href="https://www.npgsql.org/efcore/modeling/concurrency.html"/> for more information.</para></remarks>
public record PostgresDatabaseColumns : DatabaseColumns
{
/// <summary>
/// Gets or sets the default <see cref="PostgresDatabaseColumns"/>.
/// </summary>
public static PostgresDatabaseColumns Default { get; set; } = new PostgresDatabaseColumns();
/// <summary>
/// Initializes a new instance of the <see cref="PostgresDatabaseColumns"/> class.
/// </summary>
public PostgresDatabaseColumns()
{
CreatedOnName = "created_on";
CreatedByName = "created_by";
UpdatedOnName = "updated_on";
UpdatedByName = "updated_by";
ReselectRecordName = "reselect_record";
PagingSkipName = "paging_skip";
PagingTakeName = "paging_take";
PagingCountName = "paging_count";
RowVersionName = "xmin";
TenantIdName = "tenant_id";
IsDeletedName = "is_deleted";
RefDataIdName = "id";
RefDataCodeName = "code";
RefDataTextName = "text";
RefDataDescriptionName = "description";
RefDataSortOrderName = "sort_order";
RefDataIsActiveName = "is_active";
RefDataStartsOnName = "starts_on";
RefDataEndsOnName = "ends_on";
PartitionKeyName = "partition_key";
PartitionIdName = "partition_id";
OutboxDestinationName = "destination";
OutboxEventName = "event";
OutboxEnqueuedUtcName = "enqueued_utc";
OutboxBatchSizeName = "batch_size";
OutboxLeaseIdName = "lease_id";
OutboxLeaseDurationName = "lease_seconds";
OutboxDequeuedUtcName = "dequeued_utc";
OutboxBackoffDurationName = "backoff_seconds";
}
}