提交 3cf7bb71 编写于 作者: S simon

添加分类测试成功

上级 c8dc81bf
......@@ -402,4 +402,5 @@ ASALocalRun/
.mfractor/
# Local History for Visual Studio
.localhistory/
\ No newline at end of file
.localhistory/
appsettings.Development.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/bin/Debug/net5.0/Aurora.Core.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
\ No newline at end of file
{
"git.ignoreLimitWarning": true
}
\ No newline at end of file
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Aurora.Infrastructure\Aurora.Infrastructure.csproj" />
<ItemGroup>
<ProjectReference Include="..\Aurora.Infrastructure\Aurora.Infrastructure.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="IdentityModel" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<ItemGroup>
<PackageReference Include="IdentityModel" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
</ItemGroup>
<PropertyGroup>
......
......@@ -2,12 +2,13 @@ using System;
namespace Aurora.Common.Entities
{
public class EntityBase
public class EntityBase:IEntity
{
public int Id { get; set; }
public int ID { get; set; }
public DateTimeOffset CreateTime { get; set; }
public string CreateUserName { get; set; }
public DateTimeOffset ModifyTime { get; set; }
public DateTimeOffset? ModifyTime { get; set; }
public string ModifyUserName { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace SmartDw.DemocracyOrg.Domain
{
public interface IBaseEntity<TKey, TKey2> : IEntity<TKey, TKey2>
{
/// <summary>
/// row创建时间
/// </summary>
DateTimeOffset? RowCreated { get; set; }
/// <summary>
/// row创建人
/// </summary>
string RowCreatedBy { get; set; }
/// <summary>
/// row更新时间
/// </summary>
DateTimeOffset? RowUpdated { get; set; }
/// <summary>
/// row更新人
/// </summary>
string RowUpdatedBy { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Aurora.Common.Entities
{
public interface IEntity
{
/// <summary>
/// 租户Code
/// </summary>
string TenantCode { get; set; }
/// <summary>
/// 主键
/// </summary>
int ID { get; set; }
DateTimeOffset CreateTime { get; set; }
string CreateUserName { get; set; }
DateTimeOffset? ModifyTime { get; set; }
string ModifyUserName { get; set; }
}
}
......@@ -2,23 +2,19 @@
using System.Collections.Generic;
using System.Text;
namespace SmartDw.DemocracyOrg.Domain
namespace Aurora.Common.Entities
{
public interface IEntity
{
}
public interface IEntity<TKey, TKey2> : IEntity
{
/// <summary>
/// 租户Code
/// </summary>
TKey TenantCode { get; set; }
/// <summary>
/// 主键
/// </summary>
TKey2 ID { get; set; }
int ID { get; set; }
DateTimeOffset CreateTime { get; set; }
string CreateUserName { get; set; }
DateTimeOffset? ModifyTime { get; set; }
string ModifyUserName { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Aurora.Common.Entities
{
public interface IEntity
{
/// <summary>
/// 租户Code
/// </summary>
string TenantCode { get; set; }
/// <summary>
/// 主键
/// </summary>
int ID { get; set; }
DateTimeOffset CreateTime { get; set; }
string CreateUserName { get; set; }
DateTimeOffset? ModifyTime { get; set; }
string ModifyUserName { get; set; }
}
}
......@@ -2,7 +2,7 @@ using System;
namespace Aurora.Common.Entities
{
public class TenantEntityBase : EntityBase
public class TenantEntityBase : EntityBase, ITenantEntity
{
public string TenantCode { get; set; }
......
......@@ -4,6 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using Aurora.Core.IService;
using Aurora.Core.IService.Dto;
using Aurora.Infrastructure.Response;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
......@@ -28,10 +29,10 @@ namespace Aurora.Core.Api.Controllers
/// get cateories list
/// </summary>
/// <returns></returns>
public async Task<IActionResult> GetList()
public async Task<ResponseModel<List<CategoryDto>>> GetList()
{
var res = await _categoryService.GetList();
return Ok();
return res;
}
[HttpGet]
......@@ -39,21 +40,21 @@ namespace Aurora.Core.Api.Controllers
/// get cateory by id
/// </summary>
/// <returns></returns>
public async Task<IActionResult> GetById(int id)
public async Task<ResponseModel<CategoryDto>> GetById(int id)
{
var res = await _categoryService.GetById(id);
return Ok();
return res;
}
[HttpPost]
/// <summary>
/// get cateory by id
/// add cateory
/// </summary>
/// <returns></returns>
public async Task<IActionResult> Add(CategoryDto model)
public async Task<ResponseModel<CategoryDto>> Add(CategoryDto model)
{
var res = await _categoryService.Add(model);
return Ok();
return res;
}
}
}
......@@ -8,14 +8,14 @@
},
"ConnectionStrings": {
"Enable": "MySql",
"MySql": "Server=127.0.0.1; Port=3306;User Id=root;Password=123456;Database=exam_practice;Allow User Variables=True",
"MySql": "Server=127.0.0.1; Port=3380;User Id=root;Password=123456;Database=exam_practice;Allow User Variables=True",
"SqlServer": "Data Source=192.168.1.139;Initial Catalog=PTS2;User ID=sa;Password=;Encrypt=False;TrustServerCertificate=False;Pooling=true;max Pool Size=50;min Pool Size=1;MultipleActiveResultSets=True",
"PostgreSql": "Server=localhost;Database=Simon_blog;User ID=xxxxxx;Password=666",
"Sqlite": "Data Source=D:/xxx.db;"
},
"ReadOnlyConnectionStrings": {
"Enable": "MySql",
"MySql": "Server=127.0.0.1; Port=3306;User Id=root;Password=123456;Database=exam_practice;Allow User Variables=True",
"MySql": "Server=127.0.0.1; Port=3381;User Id=root;Password=123456;Database=exam_practice;Allow User Variables=True",
"SqlServer": "Data Source=192.168.1.139;Initial Catalog=PTS2;User ID=sa;Password=;Encrypt=False;TrustServerCertificate=False;Pooling=true;max Pool Size=50;min Pool Size=1;MultipleActiveResultSets=True",
"PostgreSql": "Server=localhost;Database=Simon_blog;User ID=xxxxxx;Password=666",
"Sqlite": "Data Source=D:/xxx.db;"
......
......@@ -5,7 +5,7 @@ namespace Aurora.Core.Domain.Entities
{
public class Category : TenantEntityBase
{
public string CategoryName { get; set; }
public string Name { get; set; }
public string Remark { get; set; }
}
}
......@@ -34,6 +34,8 @@ namespace Aurora.Core.EntityFramework
protected override void OnModelCreating(ModelBuilder builder)
{
//配置正在运行的程序集里所有实体映射配置类
builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
//多租户过滤
foreach (var type in GetBaseEntityTypes())
......@@ -42,10 +44,9 @@ namespace Aurora.Core.EntityFramework
method.Invoke(this, new object[] { builder });
}
builder.Entity<Category>().HasKey(t => new { t.TenantCode });
// builder.Entity<Category>().HasIndex(p => p.TenantCode);
// 配置表名映射
builder.Entity<Category>().ToTable("category");
base.OnModelCreating(builder);
}
......
......@@ -34,6 +34,8 @@ namespace Aurora.Core.EntityFramework
protected override void OnModelCreating(ModelBuilder builder)
{
//配置正在运行的程序集里所有实体映射配置类
builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
//多租户过滤
foreach (var type in GetBaseEntityTypes())
......@@ -42,9 +44,8 @@ namespace Aurora.Core.EntityFramework
method.Invoke(this, new object[] { builder });
}
builder.Entity<Category>().HasKey(t => new { t.TenantCode });
// builder.Entity<Category>().HasIndex(p => p.TenantCode);
// 配置表名映射
builder.Entity<Category>().ToTable("category");
base.OnModelCreating(builder);
}
......
......@@ -9,6 +9,11 @@
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.15" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.22" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.15">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.15" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
......
using System;
using Aurora.Core.Domain.Entities;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System.Collections.Generic;
namespace Aurora.Core.EntityFramework.EntitiesConfig
{
/// <summary>
/// 类别 映射配置类
/// </summary>
public class CategoryMap : BaseEntityTypeConfiguration<Category>
{
public override void Map(EntityTypeBuilder<Category> builder)
{
builder.Property(x => x.Name).HasMaxLength(255).IsRequired();
builder.Property(x => x.Remark).HasMaxLength(255).IsRequired();
}
}
}
\ No newline at end of file
using System;
namespace Aurora.Core.EntityFramework.EntitiesConfig
{
public class EmptyClass
{
public EmptyClass()
{
}
}
}
......@@ -4,7 +4,7 @@ namespace Aurora.Core.IService.Dto
{
public class CategoryDto
{
public string CategoryName { get; set; }
public string Name { get; set; }
public string Remark { get; set; }
public string TenantCode { get; set; }
public int Id { get; set; }
......
......@@ -40,7 +40,7 @@ namespace Aurora.Core.Service
public async Task<ResponseModel<CategoryDto>> GetById(int id)
{
var entity = await _readonlyDbContext.Categories.FirstOrDefaultAsync(m => m.Id == id);
var entity = await _readonlyDbContext.Categories.FirstOrDefaultAsync(m => m.ID == id);
var dto = _mapper.Map<CategoryDto>(entity);
var res = new ResponseModel<CategoryDto>(dto);
......
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
</Project>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace Aurora.Storage.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet]
public IEnumerable<WeatherForecast> Get()
{
var rng = new Random();
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = rng.Next(-20, 55),
Summary = Summaries[rng.Next(Summaries.Length)]
})
.ToArray();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Aurora.Storage
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:24743",
"sslPort": 44318
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Aurora.Storage": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
namespace Aurora.Storage
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Aurora.Storage", Version = "v1" });
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Aurora.Storage v1"));
}
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
using System;
namespace Aurora.Storage
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}
}
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
......@@ -5,8 +5,6 @@ VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Auth", "Aurora.Auth\Aurora.Auth.csproj", "{A72E1001-C37D-4A6F-9A8C-FE75FF130657}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Storage", "Aurora.Storage\Aurora.Storage.csproj", "{7B25CF05-6F03-412C-840C-C6E8102B67CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.WebHost", "Aurora.WebHost\Aurora.WebHost.csproj", "{08EE3E88-A3C6-48E8-9068-D99AA7E77048}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Gateway", "Aurora.Gateway\Aurora.Gateway.csproj", "{E7850F7D-F911-4D69-B5A0-CFE28EA39FBC}"
......@@ -29,6 +27,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Infrastructure", "Au
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Common", "Aurora.Common\Aurora.Common.csproj", "{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Storage", "Aurora.Micorservices\Aurora.Storage\Aurora.Storage.csproj", "{09AC6731-56CC-4075-B437-78D8D668D481}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -66,18 +66,6 @@ Global
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x64.Build.0 = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x86.ActiveCfg = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x86.Build.0 = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|x64.ActiveCfg = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|x64.Build.0 = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|x86.ActiveCfg = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Debug|x86.Build.0 = Debug|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|Any CPU.Build.0 = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|x64.ActiveCfg = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|x64.Build.0 = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|x86.ActiveCfg = Release|Any CPU
{7B25CF05-6F03-412C-840C-C6E8102B67CC}.Release|x86.Build.0 = Release|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|x64.ActiveCfg = Debug|Any CPU
......@@ -186,6 +174,18 @@ Global
{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}.Release|x64.Build.0 = Release|Any CPU
{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}.Release|x86.ActiveCfg = Release|Any CPU
{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}.Release|x86.Build.0 = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|x64.ActiveCfg = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|x64.Build.0 = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|x86.ActiveCfg = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Debug|x86.Build.0 = Debug|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|Any CPU.Build.0 = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|x64.ActiveCfg = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|x64.Build.0 = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|x86.ActiveCfg = Release|Any CPU
{09AC6731-56CC-4075-B437-78D8D668D481}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{DE864DFA-7032-4A52-9B73-7DA794FAE2EA} = {584A022C-ACAE-47E9-9D53-55FF40DC664D}
......@@ -194,5 +194,6 @@ Global
{D4270B1E-D5DD-40D8-9281-54E2EBD38FB7} = {DE864DFA-7032-4A52-9B73-7DA794FAE2EA}
{8E22664E-C22C-46E0-B970-056C24BEC66F} = {DE864DFA-7032-4A52-9B73-7DA794FAE2EA}
{E500647A-0385-49BF-BE01-3942C8C554A9} = {DE864DFA-7032-4A52-9B73-7DA794FAE2EA}
{09AC6731-56CC-4075-B437-78D8D668D481} = {584A022C-ACAE-47E9-9D53-55FF40DC664D}
EndGlobalSection
EndGlobal
/*
Navicat Premium Data Transfer
Source Server : MYSQL8-docker-master
Source Server Type : MySQL
Source Server Version : 80024
Source Host : localhost:3380
Source Schema : exam_practice
Target Server Type : MySQL
Target Server Version : 80024
File Encoding : 65001
Date: 25/05/2021 22:57:44
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`Id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createTime` datetime NOT NULL,
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`modifyTime` datetime DEFAULT NULL,
`modifyUserName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tenantCode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat Premium Data Transfer
Source Server : MYSQL8-docker-master-ip
Source Server Type : MySQL
Source Server Version : 80024
Source Host : 10.211.55.2:3380
Source Schema : exam_practice
Target Server Type : MySQL
Target Server Version : 80024
File Encoding : 65001
Date: 25/05/2021 23:07:15
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`Id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createTime` datetime NOT NULL,
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`modifyTime` datetime DEFAULT NULL,
`modifyUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tenantCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
SET FOREIGN_KEY_CHECKS = 1;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册