squash a bunch of commits
This commit is contained in:
4
Shogi.Database/User/Tables/LoginPlatform.sql
Normal file
4
Shogi.Database/User/Tables/LoginPlatform.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE [user].[LoginPlatform]
|
||||
(
|
||||
[Platform] NVARCHAR(20) NOT NULL PRIMARY KEY
|
||||
)
|
||||
11
Shogi.Database/User/Tables/User.sql
Normal file
11
Shogi.Database/User/Tables/User.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE [user].[User]
|
||||
(
|
||||
[Id] BIGINT NOT NULL PRIMARY KEY IDENTITY,
|
||||
[Name] [user].[UserName] NOT NULL UNIQUE,
|
||||
[DisplayName] NVARCHAR(100) NOT NULL,
|
||||
[Platform] NVARCHAR(20) NOT NULL,
|
||||
|
||||
CONSTRAINT User_Platform FOREIGN KEY ([Platform]) References [user].[LoginPlatform] ([Platform])
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
)
|
||||
Reference in New Issue
Block a user