Skip to content

Commit

Permalink
ok api auth works now
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa Ahmed authored and Musa Ahmed committed Jul 19, 2024
1 parent 7698929 commit 464abad
Show file tree
Hide file tree
Showing 42 changed files with 1,173 additions and 54 deletions.
13 changes: 13 additions & 0 deletions .idea/.idea.WardrobeManager/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.WardrobeManager/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.WardrobeManager/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.WardrobeManager/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.WardrobeManager/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions WardrobeManager.Api/Migrations/20240713001821_added new Fields.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WardrobeManager.Api.Migrations
{
/// <inheritdoc />
public partial class addednewFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "DateAdded",
table: "ClothingItems",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

migrationBuilder.AddColumn<DateTime>(
name: "DateUpdated",
table: "ClothingItems",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DateAdded",
table: "ClothingItems");

migrationBuilder.DropColumn(
name: "DateUpdated",
table: "ClothingItems");
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions WardrobeManager.Api/Migrations/20240713003117_Added Seaso.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WardrobeManager.Api.Migrations
{
/// <inheritdoc />
public partial class AddedSeaso : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Season",
table: "ClothingItems",
type: "INTEGER",
nullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Season",
table: "ClothingItems");
}
}
}
70 changes: 70 additions & 0 deletions WardrobeManager.Api/Migrations/20240718154151_Not Sure.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions WardrobeManager.Api/Migrations/20240718154151_Not Sure.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WardrobeManager.Api.Migrations
{
/// <inheritdoc />
public partial class NotSure : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "LastWorn",
table: "ClothingItems",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastWorn",
table: "ClothingItems");
}
}
}
12 changes: 12 additions & 0 deletions WardrobeManager.Api/Migrations/DatabaseContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<int>("Category")
.HasColumnType("INTEGER");

b.Property<DateTime>("DateAdded")
.HasColumnType("TEXT");

b.Property<DateTime>("DateUpdated")
.HasColumnType("TEXT");

b.Property<int>("DesiredTimesWornBeforeWash")
.HasColumnType("INTEGER");

Expand All @@ -35,10 +41,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<Guid?>("ImageGuid")
.HasColumnType("TEXT");

b.Property<DateTime>("LastWorn")
.HasColumnType("TEXT");

b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");

b.Property<int?>("Season")
.HasColumnType("INTEGER");

b.Property<int>("TimesWornSinceWash")
.HasColumnType("INTEGER");

Expand Down
Loading

0 comments on commit 464abad

Please sign in to comment.