aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/Resources/001_AuthStore.sql
blob: c70a19319bde2bcbac9f9615bb6fe2fe7df0c425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
BEGIN TRANSACTION

CREATE TABLE [auth] (
  [uuid] [uniqueidentifier] NOT NULL default '00000000-0000-0000-0000-000000000000',
  [passwordHash] [varchar](32) NOT NULL,
  [passwordSalt] [varchar](32) NOT NULL,
  [webLoginKey] [varchar](255) NOT NULL,
  [accountType] VARCHAR(32) NOT NULL DEFAULT 'UserAccount',
) ON [PRIMARY]

CREATE TABLE [tokens] (
  [uuid] [uniqueidentifier] NOT NULL default '00000000-0000-0000-0000-000000000000',
  [token] [varchar](255) NOT NULL,
  [validity] [datetime] NOT NULL )
  ON [PRIMARY]

COMMIT