- Admin 엔티티에 Organization 컬럼 추가 + Migration - ProfileResponseDto에 last_login_at, organization 필드 추가 - UpdateProfileRequestDto에 organization 필드 추가 - AuthService 프로필 조회/수정 매핑 확장 - 활동 내역 DTO 및 GetActivityListAsync 메서드 추가 - ProfileController 활동 내역 조회 엔드포인트 추가 Closes #249
31 lines
837 B
C#
31 lines
837 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SPMS.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddOrganizationToAdmin : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Organization",
|
|
table: "Admin",
|
|
type: "varchar(100)",
|
|
maxLength: 100,
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Organization",
|
|
table: "Admin");
|
|
}
|
|
}
|
|
}
|