如何在pascal的情况下在Postgressql中创建表

时间:2017-12-31 06:35:43

标签: c# database postgresql .net-core identity

我尝试在c#.netcore中使用带有IdentityUser的Postgressql,当我在Postgressql中创建表时,我使用这个sql来创建表

 CREATE TABLE AspNetUsers(
    Id Varchar(450) NOT NULL,
    AccessFailedCount int NOT NULL,
    ConcurrencyStamp Text NULL,
    Email Varchar(256) NULL,
    EmailConfirmed Boolean NOT NULL,
    LockoutEnabled Boolean NOT NULL,
    LockoutEnd Timestamp(6) WITH TIME ZONE NULL,
    NormalizedEmail Varchar(256) NULL,
    NormalizedUserName Varchar(256) NULL,
    PasswordHash Text NULL,
    PhoneNumber Text NULL,
    PhoneNumberConfirmed Boolean NOT NULL,
    SecurityStamp Text NULL,
    TwoFactorEnabled Boolean NOT NULL,
    UserName Varchar(256) NULL
); 

它创建表格显示相同的图像

enter image description here

它无法与Microsoft AspNetCore Identity一起使用,当我处理Postgressql db手册到此图像时

enter image description here

完成的工作没有错误。

当然没有人想手动更改pascal案例。如何在pascal案例中创建数据库?

**我在windowos上使用PostgreSQL

的PostgreSQL-10.1-3 - 窗口的x64

pgadmin4 v.2.0

Flask Version0.11.1

0 个答案:

没有答案