Реализация 5 лабораторной работы

This commit is contained in:
2026-11-27 20:06:14 +03:00
parent 276dbdad8a
commit 4fe4ab3432
116 changed files with 11883 additions and 25 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");
}
}
}