mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 11:20:05 +01:00
30 lines
737 B
C#
30 lines
737 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace QuotifyBE.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class user_roles : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Role",
|
|
table: "Users",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Role",
|
|
table: "Users");
|
|
}
|
|
}
|
|
}
|