Skip to content

Commit

Permalink
Merge pull request #91 from gpproton/setup-project-as-trummable
Browse files Browse the repository at this point in the history
Setup project as trummable
  • Loading branch information
gpproton authored Nov 18, 2023
2 parents 0b88a25 + 2c05844 commit 7356e3e
Show file tree
Hide file tree
Showing 10 changed files with 472 additions and 19 deletions.
5 changes: 3 additions & 2 deletions Axolotl.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">Copyright 2022 - $CURRENT_YEAR$ Godwin peter .O ([email protected])
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">Copyright 2022 - $CurrentDate.Year Godwin peter .O ([email protected])

Licensed under the MIT License;
you may not use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.</s:String></wpf:ResourceDictionary>
limitations under the License.</s:String>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EFeature_002EServices_002ECodeCleanup_002EFileHeader_002EFileHeaderSettingsMigrate/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PackageIcon>icon.jpg</PackageIcon>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

<PropertyGroup>
Expand Down
166 changes: 166 additions & 0 deletions samples/aspnet-sample/Migrations/20230606124455_Initial.Designer.cs

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

130 changes: 130 additions & 0 deletions samples/aspnet-sample/Migrations/20230606124455_Initial.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Axolotl.AspNetSample.Migrations
{
/// <inheritdoc />
public partial class Initial : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Categories",
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: false),
CreatedBy = table.Column<Guid>(type: "TEXT", nullable: false),
CreatedAt = table.Column<long>(type: "INTEGER", nullable: false),
UpdatedBy = table.Column<Guid>(type: "TEXT", nullable: false),
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: true),
DeletedBy = table.Column<Guid>(type: "TEXT", nullable: false),
DeletedAt = table.Column<long>(type: "INTEGER", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Categories", x => x.Id);
});

migrationBuilder.CreateTable(
name: "Tags",
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Tags", x => x.Id);
});

migrationBuilder.CreateTable(
name: "Posts",
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Title = table.Column<string>(type: "TEXT", nullable: false),
Content = table.Column<string>(type: "TEXT", nullable: false),
CategoryId = table.Column<Guid>(type: "TEXT", nullable: true),
CreatedBy = table.Column<Guid>(type: "TEXT", nullable: false),
CreatedAt = table.Column<long>(type: "INTEGER", nullable: false),
UpdatedBy = table.Column<Guid>(type: "TEXT", nullable: false),
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: true),
DeletedBy = table.Column<Guid>(type: "TEXT", nullable: false),
DeletedAt = table.Column<long>(type: "INTEGER", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Posts", x => x.Id);
table.ForeignKey(
name: "FK_Posts_Categories_CategoryId",
column: x => x.CategoryId,
principalTable: "Categories",
principalColumn: "Id");
});

migrationBuilder.CreateTable(
name: "PostTag",
columns: table => new
{
PostsId = table.Column<Guid>(type: "TEXT", nullable: false),
TagsId = table.Column<Guid>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PostTag", x => new { x.PostsId, x.TagsId });
table.ForeignKey(
name: "FK_PostTag_Posts_PostsId",
column: x => x.PostsId,
principalTable: "Posts",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_PostTag_Tags_TagsId",
column: x => x.TagsId,
principalTable: "Tags",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});

migrationBuilder.CreateIndex(
name: "IX_Categories_DeletedAt",
table: "Categories",
column: "DeletedAt");

migrationBuilder.CreateIndex(
name: "IX_PostTag_TagsId",
table: "PostTag",
column: "TagsId");

migrationBuilder.CreateIndex(
name: "IX_Posts_CategoryId",
table: "Posts",
column: "CategoryId");

migrationBuilder.CreateIndex(
name: "IX_Posts_DeletedAt",
table: "Posts",
column: "DeletedAt");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PostTag");

migrationBuilder.DropTable(
name: "Posts");

migrationBuilder.DropTable(
name: "Tags");

migrationBuilder.DropTable(
name: "Categories");
}
}
}
Loading

0 comments on commit 7356e3e

Please sign in to comment.