chore: run dotnet format

This commit is contained in:
Stevan Freeborn
2026-02-02 15:46:12 -06:00
parent fb7750328b
commit eef410d71b
5 changed files with 62 additions and 61 deletions
+1 -1
View File
@@ -49,4 +49,4 @@ internal sealed class App(
{ {
return Task.CompletedTask; return Task.CompletedTask;
} }
} }
+1 -1
View File
@@ -12,4 +12,4 @@
services.AddHostedService<App>(); services.AddHostedService<App>();
}) })
.Build() .Build()
.StartAsync(); .StartAsync();
+1 -1
View File
@@ -9,4 +9,4 @@ global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Hosting; global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Logging; global using Microsoft.Extensions.Logging;
global using Spectre.Console; global using Spectre.Console;
@@ -1,41 +1,42 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable
namespace FiscalOS.Infra.Migrations namespace FiscalOS.Infra.Migrations
{ {
/// <inheritdoc />
public partial class AddPropsToRefreshToken : Migration
{
/// <inheritdoc /> /// <inheritdoc />
public partial class AddPropsToRefreshToken : Migration protected override void Up(MigrationBuilder migrationBuilder)
{ {
/// <inheritdoc /> migrationBuilder.AddColumn<DateTimeOffset>(
protected override void Up(MigrationBuilder migrationBuilder) name: "ExpiresAt",
{ table: "RefreshTokens",
migrationBuilder.AddColumn<DateTimeOffset>( type: "TEXT",
name: "ExpiresAt", nullable: false,
table: "RefreshTokens", defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
type: "TEXT",
nullable: false,
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
migrationBuilder.AddColumn<string>( migrationBuilder.AddColumn<string>(
name: "Token", name: "Token",
table: "RefreshTokens", table: "RefreshTokens",
type: "TEXT", type: "TEXT",
nullable: false, nullable: false,
defaultValue: ""); defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExpiresAt",
table: "RefreshTokens");
migrationBuilder.DropColumn(
name: "Token",
table: "RefreshTokens");
}
} }
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExpiresAt",
table: "RefreshTokens");
migrationBuilder.DropColumn(
name: "Token",
table: "RefreshTokens");
}
}
}
@@ -4,35 +4,35 @@
namespace FiscalOS.Infra.Migrations namespace FiscalOS.Infra.Migrations
{ {
/// <inheritdoc />
public partial class AddIndexesWithUniquenessToModels : Migration
{
/// <inheritdoc /> /// <inheritdoc />
public partial class AddIndexesWithUniquenessToModels : Migration protected override void Up(MigrationBuilder migrationBuilder)
{ {
/// <inheritdoc /> migrationBuilder.CreateIndex(
protected override void Up(MigrationBuilder migrationBuilder) name: "IX_Users_Username",
{ table: "Users",
migrationBuilder.CreateIndex( column: "Username",
name: "IX_Users_Username", unique: true);
table: "Users",
column: "Username",
unique: true);
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_RefreshTokens_Token", name: "IX_RefreshTokens_Token",
table: "RefreshTokens", table: "RefreshTokens",
column: "Token", column: "Token",
unique: true); unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Users_Username",
table: "Users");
migrationBuilder.DropIndex(
name: "IX_RefreshTokens_Token",
table: "RefreshTokens");
}
} }
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Users_Username",
table: "Users");
migrationBuilder.DropIndex(
name: "IX_RefreshTokens_Token",
table: "RefreshTokens");
}
}
}