﻿CREATE TABLE [dbo].[fis_useraccounts] (
    [useraccount_id] VARCHAR (5)     NOT NULL,
    [name_enc]       VARBINARY (260) NOT NULL,
    [firstname_enc]  VARBINARY (260) NULL,
    [title_enc]      VARBINARY (120) NULL,
    [gender_enc]     VARBINARY (100) NULL,
    [email_enc]      VARBINARY (350) NOT NULL,
    [mobile_enc]     VARBINARY (120) NULL,
    [password_enc]   VARBINARY (100) NOT NULL,
    [language]       VARCHAR (2)     CONSTRAINT [DF_fis_useraccounts_language] DEFAULT ('de') NULL,
    [UserDisabled]   VARCHAR (36)    NULL,
    [DateDisabled]   DATETIME        NULL,
    [UserCreated]    VARCHAR (36)    NOT NULL,
    [DateCreated]    DATETIME        CONSTRAINT [DF_fis_useraccounts_DateCreated] DEFAULT (getutcdate()) NOT NULL,
    [UserModified]   VARCHAR (36)    NULL,
    [DateModified]   DATETIME        CONSTRAINT [DF_fis_useraccounts_DateModified] DEFAULT (getutcdate()) NOT NULL,
    [UserDeleted]    VARCHAR (36)    NULL,
    [DateDeleted]    DATETIME        NULL,
    CONSTRAINT [PK_fis_useraccounts] PRIMARY KEY CLUSTERED ([useraccount_id] ASC)
);

