Добавлены слои данных: контекс, сущности и миграции
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-30 19:53:14 +03:00
parent f511c95962
commit ab8c5e8f3b
9 changed files with 1141 additions and 0 deletions
@@ -0,0 +1,29 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Messenger.Api.Data.Migrations
{
/// <inheritdoc />
public partial class AddChatLastMessageAt : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTimeOffset>(
name: "last_message_at",
table: "chats",
type: "timestamp with time zone",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "last_message_at",
table: "chats");
}
}
}