Ni­PDB Database

Files

Name Type Size Maxsize Autogrowth File Name

Ni­PDB

Data

8,00 MB

unlimited

64,00 MB

C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\Ni­PDB.mdf

Ni­PDB_log

Log

72,00 MB

2048,00 GB

64,00 MB

C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\Ni­PDB_log.ldf

Tables

  • dbo.acquis

  • dbo.acquis_usr_relns

  • dbo.act_usrs

  • dbo.adm_cfgs

  • dbo.adnl_ids

  • dbo.cache_objs

  • dbo.cm_soc_sec_nrs

  • dbo.creds

  • dbo.crt_auths

  • dbo.crt_keys

  • dbo.crt_tmls

  • dbo.crt_whitelist_appvls

  • dbo.crt_whitelists

  • dbo.crts

  • dbo.dir_svcs

  • dbo.end_entities

  • dbo.gen_sets

  • dbo.gen_txts

  • dbo.hist_tkns

  • dbo.key_objs

  • dbo.lic_svc_custs

  • dbo.lic_svc_machines

  • dbo.lic_svc_nie_masters

  • dbo.natl_regs

  • dbo.ofcs

  • dbo.org_crts

  • dbo.org_ofc_addrs

  • dbo.org_ofcs

  • dbo.orgs

  • dbo.otps

  • dbo.privileges

  • dbo.role_privilege_relns

  • dbo.role_usr_grp_relns

  • dbo.roles

  • dbo.rprts

  • dbo.sa_key_objs

  • dbo.sa_key_usr_relns

  • dbo.sa_key_usrs

  • dbo.sms_tmls

  • dbo.smtp_tmls

  • dbo.srvs

  • dbo.task_type_privilege_relns

  • dbo.task_types

  • dbo.tasks

  • dbo.tkn_crt_tml_relns

  • dbo.tkn_mfrs

  • dbo.tkn_prfls

  • dbo.tkn_rgtr

  • dbo.tkn_tmls

  • dbo.tkn_usr_relns

  • dbo.tkns

  • dbo.unit_tests

  • dbo.usr_appvls

  • dbo.usr_grp_relns

  • dbo.usr_grp_restr_relns

  • dbo.usr_grps

  • dbo.usr_imgs

  • dbo.usr_ofcs_relns

  • dbo.usrs

  • dbo.version

[dbo].[acquis]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:57:14 den 3 juli 2018

Last Modified

11:57:15 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

acquis_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

acquis_ref

int

4

False

acquis_type

int

4

False

acquis_valid_from

datetime

8

False

acquis_valid_to

datetime

8

False

acquis_text

nvarchar(max)

max

False

acquis_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_acquis_id

acquis_id

True

Foreign Keys

Name Columns

FK_acquis_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[acquis]
(
[acquis_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[acquis_ref] [int] NOT NULL,
[acquis_type] [int] NOT NULL,
[acquis_valid_from] [datetime] NOT NULL,
[acquis_valid_to] [datetime] NOT NULL,
[acquis_text] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[acquis_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[acquis] ADD CONSTRAINT [PK_acquis_id] PRIMARY KEY CLUSTERED ([acquis_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acquis] ADD CONSTRAINT [FK_acquis_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[acquis_usr_relns]

[dbo].[acquis_usr_relns]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:57:15 den 3 juli 2018

Last Modified

11:57:16 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

acquis_id

int

4

True

000047

usrs_id

int

4

True

acquis_usr_reln_acquis_text

nvarchar(max)

max

True

Foreign Keys

Name Columns

FK_acquis_usr_relns_acquis_id

acquis_id→[dbo].[acquis].[acquis_id]

FK_acquis_usr_relns_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[acquis_usr_relns]
(
[acquis_id] [int] NULL,
[usrs_id] [int] NULL,
[acquis_usr_reln_acquis_text] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[acquis_usr_relns] ADD CONSTRAINT [FK_acquis_usr_relns_acquis_id] FOREIGN KEY ([acquis_id]) REFERENCES [dbo].[acquis] ([acquis_id])
GO
ALTER TABLE [dbo].[acquis_usr_relns] ADD CONSTRAINT [FK_acquis_usr_relns_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[acquis]

  • [dbo].[usrs]

[dbo].[act_usrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:46:03 den 3 juli 2018

Last Modified

11:50:00 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Default

act_usr_disp_name

nvarchar(300)

600

True

act_usr_log_datetime

datetime

8

True

act_usr_idle_datetime

datetime

8

True

act_usr_type

int

4

False

0

000047

orgs_id

int

4

True

act_usr_session_id

nvarchar(200)

400

True

act_usr_ticket_bin

varbinary(max)

max

True

000047

usrs_id

int

4

True

act_usr_login_mode

int

4

True

Foreign Keys

Name Columns

FK_act_usrs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_act_usrs_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[act_usrs]
(
[act_usr_disp_name] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[act_usr_log_datetime] [datetime] NULL,
[act_usr_idle_datetime] [datetime] NULL,
[act_usr_type] [int] NOT NULL CONSTRAINT [DF_act_usrs_act_usr_type] DEFAULT ((0)),
[orgs_id] [int] NULL,
[act_usr_session_id] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[act_usr_ticket_bin] [varbinary] (max) NULL,
[usrs_id] [int] NULL,
[act_usr_login_mode] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[act_usrs] ADD CONSTRAINT [FK_act_usrs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[act_usrs] ADD CONSTRAINT [FK_act_usrs_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[orgs]

  • [dbo].[srs]

[dbo].[adm_cfgs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

1

Created

11:49:58 den 3 juli 2018

Last Modified

11:49:58 den 3 juli 2018

Columns

Name Data Type Max Length (Bytes) Allow Nulls

adm_cfg_adnl_task_info

nvarchar(max)

max

True

SQL Script

CREATE TABLE [dbo].[adm_cfgs]
(
[adm_cfg_adnl_task_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO

[dbo].[adnl_ids]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:56:42 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

adnl_ids_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

adnl_id_value

nvarchar(max)

max

False

adnl_id_type

int

4

False

adnl_id_service_type

int

4

False

adnl_id_category_id

int

4

False

adnl_id_ref

nvarchar(100)

200

False

adnl_id_searchable

bit

1

False

adnl_id_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_adnl_ids_id

adnl_ids_id

True

Foreign Keys

Name Columns

FK_adnl_ids_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[adnl_ids]
(
[adnl_ids_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[adnl_id_value] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[adnl_id_type] [int] NOT NULL,
[adnl_id_service_type] [int] NOT NULL,
[adnl_id_category_id] [int] NOT NULL,
[adnl_id_ref] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[adnl_id_searchable] [bit] NOT NULL,
[adnl_id_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[adnl_ids] ADD CONSTRAINT [PK_adnl_ids_id] PRIMARY KEY CLUSTERED ([adnl_ids_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[adnl_ids] ADD CONSTRAINT [FK_adnl_ids_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[cache_objs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:49:53 den 3 juli 2018

Last Modified

11:49:54 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

cache_objs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

cache_obj_type

int

4

False

cache_obj_type_adnl

nvarchar(100)

200

True

cache_obj_binary

varbinary(max)

max

False

cache_obj_property

nvarchar(500)

1000

False

Indexes

Key Name Key Columns Unique
000046

PK_cache_objs_id

cache_objs_id

True

Foreign Keys

Name Columns

FK_cache_objs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[cache_objs]
(
[cache_objs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[cache_obj_type] [int] NOT NULL,
[cache_obj_type_adnl] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[cache_obj_binary] [varbinary] (max) NOT NULL,
[cache_obj_property] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[cache_objs] ADD CONSTRAINT [PK_cache_objs_id] PRIMARY KEY CLUSTERED ([cache_objs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cache_objs] ADD CONSTRAINT [FK_cache_objs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[cm_soc_sec_nrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:45:01 den 3 juli 2018

Last Modified

11:47:32 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

cm_soc_sec_nrs_id

int

4

False

1 - 1

cm_soc_sec_nr_date

nvarchar(100)

200

True

cm_soc_sec_nr_seqnr

nvarchar(100)

200

True

cm_soc_sec_nr_gen

nvarchar(20)

40

True

Indexes

Key Name Key Columns Unique
000046

PK_cm_soc_sec_nrs_id

cm_soc_sec_nrs_id

True

SQL Script

CREATE TABLE [dbo].[cm_soc_sec_nrs]
(
[cm_soc_sec_nrs_id] [int] NOT NULL IDENTITY(1, 1),
[cm_soc_sec_nr_date] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[cm_soc_sec_nr_seqnr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[cm_soc_sec_nr_gen] [nvarchar] (20) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cm_soc_sec_nrs] ADD CONSTRAINT [PK_cm_soc_sec_nrs_id] PRIMARY KEY CLUSTERED ([cm_soc_sec_nrs_id]) ON [PRIMARY]
GO

Used By

  • dbo.usrs

[dbo].[creds]

Properties

Property Value

Row Count (~)

0

Created

11:44:45 den 3 juli 2018

Last Modified

11:49:26 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

creds_id

int

4

False

1 - 1

cred_obj_name

varbinary(max)

max

True

cred_obj_value

varbinary(max)

max

True

cred_prot

bit

1

False

cred_ref_id

int

4

True

cred_type

int

4

False

0

000046

orgs_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_creds_id

creds_id

True

Foreign Keys

Name Columns

FK_creds_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[creds]
(
[creds_id] [int] NOT NULL IDENTITY(1, 1),
[cred_obj_name] [varbinary] (max) NULL,
[cred_obj_value] [varbinary] (max) NULL,
[cred_prot] [bit] NOT NULL,
[cred_ref_id] [int] NULL,
[cred_type] [int] NOT NULL CONSTRAINT [DF_creds_cred_type] DEFAULT ((0)),
[orgs_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[creds] ADD CONSTRAINT [PK_creds_id] PRIMARY KEY CLUSTERED ([creds_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[creds] ADD CONSTRAINT [FK_creds_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • dbo.tkn_mfrs

[dbo].[crt_auths]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:43:54 den 3 juli 2018

Last Modified

11:49:44 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

crt_auths_id

int

4

False

1 - 1

crt_auth_name

nvarchar(100)

200

True

crt_auth_srv

nvarchar(100)

200

True

crt_auth_crt_hash

nvarchar(100)

200

True

crt_auth_mfr_type

int

4

False

2

crt_auth_enrl_type

int

4

False

2

000047

orgs_id

int

4

True

crt_auth_crl_list

nvarchar(500)

1000

True

crt_auth_ocsp_list

nvarchar(500)

1000

True

crt_auth_key_id

nvarchar(50)

100

True

crt_auth_crt

nvarchar(max)

max

True

crt_auth_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_crt_auths_id

crt_auths_id

True

Foreign Keys

Name Columns

FK_crt_auths_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[crt_auths]
(
[crt_auths_id] [int] NOT NULL IDENTITY(1, 1),
[crt_auth_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_srv] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_crt_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_mfr_type] [int] NOT NULL CONSTRAINT [DF_crt_auths_crt_auth_mfr_type] DEFAULT ((2)),
[crt_auth_enrl_type] [int] NOT NULL CONSTRAINT [DF_crt_auths_crt_auth_enrl_type] DEFAULT ((2)),
[orgs_id] [int] NULL,
[crt_auth_crl_list] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_ocsp_list] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_key_id] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_crt] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_auth_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_auths] ADD CONSTRAINT [PK_crt_auths_id] PRIMARY KEY CLUSTERED ([crt_auths_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_auths] ADD CONSTRAINT [FK_crt_auths_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[crt_tmls]

  • [dbo].[crts]

[dbo].[crt_keys]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:47 den 12 april 2019

Last Modified

14:32:48 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

crt_keys_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

crt_key_type

int

4

False

crt_key_ref

nvarchar(100)

200

False

crt_key_value

varbinary(max)

max

False

crt_key_passw

varbinary(max)

max

True

crt_key_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_crt_keys_id

crt_keys_id

True

Foreign Keys

Name Columns

FK_crt_keys_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[crt_keys]
(
[crt_keys_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[crt_key_type] [int] NOT NULL,
[crt_key_ref] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_key_value] [varbinary] (max) NOT NULL,
[crt_key_passw] [varbinary] (max) NULL,
[crt_key_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_keys] ADD CONSTRAINT [PK_crt_keys_id] PRIMARY KEY CLUSTERED ([crt_keys_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_keys] ADD CONSTRAINT [FK_crt_keys_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[crt_tmls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:43:55 den 3 juli 2018

Last Modified

11:56:18 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

crt_tmls_id

int

4

False

1 - 1

000047

crt_auths_id

int

4

True

crt_tml_name

nvarchar(100)

200

True

crt_tml_mfr_name

nvarchar(100)

200

True

crt_tml_validity_key

nvarchar(100)

200

True

crt_tml_validity_value

nvarchar(100)

200

True

crt_tml_mfr_prof

nvarchar(100)

200

True

crt_tml_mfr_end_entity

nvarchar(100)

200

True

crt_tml_ldap_paths

nvarchar(max)

max

True

crt_tml_tkn_label

nvarchar(100)

200

True

000047

orgs_id

int

4

True

crt_tml_descr

nvarchar(300)

600

False

('')

crt_tml_type

int

4

False

1

crt_tml_rec

bit

1

False

0

crt_tml_rec_renew

bit

1

False

0

crt_tml_asym_alg

int

4

False

2

crt_tml_ecc_param

int

4

False

4

crt_tml_hash_alg

int

4

False

1

crt_tml_key_id

nvarchar(100)

200

False

('')

crt_tml_key_param

nvarchar(10)

20

False

('0x800')

crt_tml_key_usage

nvarchar(10)

20

False

('0x­A0')

crt_tml_enhncd_key_usage

nvarchar(500)

1000

True

crt_tml_subj_cn_attr

nvarchar(100)

200

False

('\{directory.cn}')

crt_tml_subj_g_attr

nvarchar(100)

200

False

('')

crt_tml_subj_sn_attr

nvarchar(100)

200

False

('')

crt_tml_subj_ou_attr

nvarchar(100)

200

False

('')

crt_tml_subj_o_attr

nvarchar(100)

200

False

('')

crt_tml_subj_snr_attr

nvarchar(100)

200

False

('')

crt_tml_subj_e_attr

nvarchar(100)

200

False

('')

crt_tml_subj_t_attr

nvarchar(100)

200

False

('')

crt_tml_subj_l_attr

nvarchar(100)

200

False

('')

crt_tml_subj_s_attr

nvarchar(100)

200

False

('')

crt_tml_subj_i_attr

nvarchar(100)

200

False

('')

crt_tml_subj_st_attr

nvarchar(100)

200

False

('')

crt_tml_subj_c_attr

nvarchar(100)

200

False

('')

crt_tml_subj_unstr_name_attr

nvarchar(100)

200

False

('')

crt_tml_subj_unstr_addr_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_upn_attr

nvarchar(100)

200

False

('\{directory.user­Principal­Name}')

crt_tml_extsn_san_rfc822_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_dns_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_dn_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_url_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_ip_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_guid_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_san_oid_attr

nvarchar(100)

200

False

('')

crt_tml_extn_seis_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_qc_eu_comp_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_qc_eu_limit_value_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_qc_eu_limit_cur_attr

nvarchar(100)

200

False

('')

crt_tml_extsn_qc_eu_sscd_attr

nvarchar(100)

200

False

('')

crt_tml_adnl_task_info

nvarchar(max)

max

True

crt_tml_visible

bit

1

True

crt_tml_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_crt_tmls_id

crt_tmls_id

True

Foreign Keys

Name Columns

FK_crt_tmls_crt_auths_id

crt_auths_id→[dbo].[crt_auths].[crt_auths_id]

FK_crt_tmls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[crt_tmls]
(
[crt_tmls_id] [int] NOT NULL IDENTITY(1, 1),
[crt_auths_id] [int] NULL,
[crt_tml_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_mfr_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_validity_key] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_validity_value] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_mfr_prof] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_mfr_end_entity] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_ldap_paths] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_tkn_label] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[orgs_id] [int] NULL,
[crt_tml_descr] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_descr] DEFAULT (''),
[crt_tml_type] [int] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_type] DEFAULT ((1)),
[crt_tml_rec] [bit] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_rec] DEFAULT ((0)),
[crt_tml_rec_renew] [bit] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_rec_renew] DEFAULT ((0)),
[crt_tml_asym_alg] [int] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_asym_alg] DEFAULT ((2)),
[crt_tml_ecc_param] [int] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_ecc_param] DEFAULT ((4)),
[crt_tml_hash_alg] [int] NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_hash_alg] DEFAULT ((1)),
[crt_tml_key_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_key_id] DEFAULT (''),
[crt_tml_key_param] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_key_param] DEFAULT ('0x800'),
[crt_tml_key_usage] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_key_usage] DEFAULT ('0x­A0'),
[crt_tml_enhncd_key_usage] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_subj_cn_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_cn_attr] DEFAULT ('\{directory.cn}'),
[crt_tml_subj_g_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_g_attr] DEFAULT (''),
[crt_tml_subj_sn_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_sn_attr] DEFAULT (''),
[crt_tml_subj_ou_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_ou_attr] DEFAULT (''),
[crt_tml_subj_o_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_o_attr] DEFAULT (''),
[crt_tml_subj_snr_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_snr_attr] DEFAULT (''),
[crt_tml_subj_e_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_e_attr] DEFAULT (''),
[crt_tml_subj_t_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_t_attr] DEFAULT (''),
[crt_tml_subj_l_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_l_attr] DEFAULT (''),
[crt_tml_subj_s_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_s_attr] DEFAULT (''),
[crt_tml_subj_i_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_i_attr] DEFAULT (''),
[crt_tml_subj_st_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_st_attr] DEFAULT (''),
[crt_tml_subj_c_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_c_attr] DEFAULT (''),
[crt_tml_subj_unstr_name_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_unstr_name_attr] DEFAULT (''),
[crt_tml_subj_unstr_addr_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_subj_unstr_addr_attr] DEFAULT (''),
[crt_tml_extsn_san_upn_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_upn_attr] DEFAULT ('\{directory.user­Principal­Name}'),
[crt_tml_extsn_san_rfc822_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_rfc822_attr] DEFAULT (''),
[crt_tml_extsn_san_dns_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_dns_attr] DEFAULT (''),
[crt_tml_extsn_san_dn_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_dn_attr] DEFAULT (''),
[crt_tml_extsn_san_url_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_url_attr] DEFAULT (''),
[crt_tml_extsn_san_ip_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_ip_attr] DEFAULT (''),
[crt_tml_extsn_san_guid_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_guid_attr] DEFAULT (''),
[crt_tml_extsn_san_oid_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_san_oid_attr] DEFAULT (''),
[crt_tml_extn_seis_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extn_seis_attr] DEFAULT (''),
[crt_tml_extsn_qc_eu_comp_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_qc_eu_comp_attr] DEFAULT (''),
[crt_tml_extsn_qc_eu_limit_value_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_qc_eu_limit_value_attr] DEFAULT (''),
[crt_tml_extsn_qc_eu_limit_cur_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_qc_eu_limit_cur_attr] DEFAULT (''),
[crt_tml_extsn_qc_eu_sscd_attr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_crt_tmls_crt_tml_extsn_qc_eu_sscd_attr] DEFAULT (''),
[crt_tml_adnl_task_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tml_visible] [bit] NULL,
[crt_tml_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_tmls] ADD CONSTRAINT [PK_crt_tmls_id] PRIMARY KEY CLUSTERED ([crt_tmls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_tmls] ADD CONSTRAINT [FK_crt_tmls_crt_auths_id] FOREIGN KEY ([crt_auths_id]) REFERENCES [dbo].[crt_auths] ([crt_auths_id])
GO
ALTER TABLE [dbo].[crt_tmls] ADD CONSTRAINT [FK_crt_tmls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[crt_auths]

  • [dbo].[orgs]

Used By

  • dbo.crts

  • dbo.tkn_crt_tml_relns

[dbo].[crt_whitelist_appvls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:57:18 den 3 juli 2018

Last Modified

11:57:19 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

crt_whitelist_appvls_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

000047

crt_whitelists_id

int

4

True

crt_whitelist_appvl_created_datetime

datetime

8

False

crt_whitelist_appvl_evidence

nvarchar(max)

max

False

crt_whitelist_appvl_comment

nvarchar(max)

max

False

crt_whitelist_appvl_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_crt_whitelist_appvls_id

crt_whitelist_appvls_id

True

Foreign Keys

Name Columns

FK_crt_whitelist_appvls_crt_whitelists_id

crt_whitelists_id→[dbo].[crt_whitelists].[crt_whitelists_id]

FK_crt_whitelist_appvls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[crt_whitelist_appvls]
(
[crt_whitelist_appvls_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[crt_whitelists_id] [int] NULL,
[crt_whitelist_appvl_created_datetime] [datetime] NOT NULL,
[crt_whitelist_appvl_evidence] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_appvl_comment] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_appvl_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_whitelist_appvls] ADD CONSTRAINT [PK_crt_whitelist_appvls_id] PRIMARY KEY CLUSTERED ([crt_whitelist_appvls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_whitelist_appvls] ADD CONSTRAINT [FK_crt_whitelist_appvls_crt_whitelists_id] FOREIGN KEY ([crt_whitelists_id]) REFERENCES [dbo].[crt_whitelists] ([crt_whitelists_id])
GO
ALTER TABLE [dbo].[crt_whitelist_appvls] ADD CONSTRAINT [FK_crt_whitelist_appvls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[crt_whitelists]

  • [dbo].[orgs]

[dbo].[crt_whitelists]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:57:16 den 3 juli 2018

Last Modified

11:57:18 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

crt_whitelists_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

crt_whitelist_org_name

nvarchar(100)

200

False

crt_whitelist_org_nr

nvarchar(100)

200

False

crt_whitelist_org_l

nvarchar(100)

200

False

crt_whitelist_org_c

nvarchar(10)

20

False

crt_whitelist_name

nvarchar(100)

200

False

crt_whitelist_ref

int

4

False

crt_whitelist_type

int

4

False

crt_whitelist_status

int

4

False

crt_whitelist_valid_from

datetime

8

False

crt_whitelist_valid_to

datetime

8

False

crt_whitelist_changed_datetime

datetime

8

True

crt_whitelist_evidence

nvarchar(max)

max

True

crt_whitelist_comment

nvarchar(max)

max

True

crt_whitelist_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_crt_whitelists_id

crt_whitelists_id

True

Foreign Keys

Name Columns

FK_crt_whitelists_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[crt_whitelists]
(
[crt_whitelists_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[crt_whitelist_org_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_org_nr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_org_l] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_org_c] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[crt_whitelist_ref] [int] NOT NULL,
[crt_whitelist_type] [int] NOT NULL,
[crt_whitelist_status] [int] NOT NULL,
[crt_whitelist_valid_from] [datetime] NOT NULL,
[crt_whitelist_valid_to] [datetime] NOT NULL,
[crt_whitelist_changed_datetime] [datetime] NULL,
[crt_whitelist_evidence] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_whitelist_comment] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_whitelist_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_whitelists] ADD CONSTRAINT [PK_crt_whitelists_id] PRIMARY KEY CLUSTERED ([crt_whitelists_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[crt_whitelists] ADD CONSTRAINT [FK_crt_whitelists_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[crt_whitelist_appvls]

[dbo].[crts]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:44:05 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Default
000047

tkns_id

int

4

True

000047

crt_auths_id

int

4

True

000047

orgs_id

int

4

True

crt_binary

varbinary(max)

max

True

crt_subj

nvarchar(500)

1000

True

crt_snr

nvarchar(100)

200

True

crt_valid_from

datetime

8

True

crt_valid_to

datetime

8

True

crt_issuer

nvarchar(100)

200

True

crt_requester_name

nvarchar(200)

400

True

crt_rev_datetime

datetime

8

True

crt_rev_by

nvarchar(200)

400

True

crt_hidden

bit

1

False

crt_type

int

4

False

1

crt_key_binary

varbinary(max)

max

True

crt_status

int

4

False

1

crt_status_rsn

int

4

False

-1

crt_thumbprint

nvarchar(100)

200

True

000047

crt_tmls_id

int

4

True

crt_adnl_info

nvarchar(max)

max

True

crts_id

nvarchar(100)

200

True

crt_ku

nvarchar(10)

20

True

crt_nfcn_type

int

4

True

000047

usrs_id

int

4

True

000047

srvs_id

int

4

True

crt_subj_alt_name

nvarchar(500)

1000

True

crt_mfr_tml_name

nvarchar(100)

200

True

crt_nfcn_value

nvarchar(100)

200

True

000047

end_entities_id

int

4

True

Foreign Keys

Name Columns

FK_crts_crt_auths_id

crt_auths_id→[dbo].[crt_auths].[crt_auths_id]

FK_crts_crt_tmls_id

crt_tmls_id→[dbo].[crt_tmls].[crt_tmls_id]

FK_crts_end_entities_id

end_entities_id→[dbo].[end_entities].[end_entities_id]

FK_crts_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_crts_srvs_id

srvs_id→[dbo].[srvs].[srvs_id]

FK_crts_tkns_id

tkns_id→[dbo].[tkns].[tkns_id]

FK_crts_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[crts]
(
[tkns_id] [int] NULL,
[crt_auths_id] [int] NULL,
[orgs_id] [int] NULL,
[crt_binary] [varbinary] (max) NULL,
[crt_subj] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_valid_from] [datetime] NULL,
[crt_valid_to] [datetime] NULL,
[crt_issuer] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_requester_name] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_rev_datetime] [datetime] NULL,
[crt_rev_by] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_hidden] [bit] NOT NULL,
[crt_type] [int] NOT NULL CONSTRAINT [DF_crts_crt_type] DEFAULT ((1)),
[crt_key_binary] [varbinary] (max) NULL,
[crt_status] [int] NOT NULL CONSTRAINT [DF_crts_crt_status] DEFAULT ((1)),
[crt_status_rsn] [int] NOT NULL CONSTRAINT [DF_crts_crt_status_rsn] DEFAULT ((-1)),
[crt_thumbprint] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_tmls_id] [int] NULL,
[crt_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crts_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_ku] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_nfcn_type] [int] NULL,
[usrs_id] [int] NULL,
[srvs_id] [int] NULL,
[crt_subj_alt_name] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_mfr_tml_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[crt_nfcn_value] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entities_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_crt_auths_id] FOREIGN KEY ([crt_auths_id]) REFERENCES [dbo].[crt_auths] ([crt_auths_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_crt_tmls_id] FOREIGN KEY ([crt_tmls_id]) REFERENCES [dbo].[crt_tmls] ([crt_tmls_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_end_entities_id] FOREIGN KEY ([end_entities_id]) REFERENCES [dbo].[end_entities] ([end_entities_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_srvs_id] FOREIGN KEY ([srvs_id]) REFERENCES [dbo].[srvs] ([srvs_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_tkns_id] FOREIGN KEY ([tkns_id]) REFERENCES [dbo].[tkns] ([tkns_id])
GO
ALTER TABLE [dbo].[crts] ADD CONSTRAINT [FK_crts_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[crt_auths]

  • [dbo].[crt_tmls]

  • [dbo].[end_entities]

  • [dbo].[orgs]

  • [dbo].[srvs]

  • [dbo].[tkns]

  • [dbo].[usrs]

[dbo].[dir_svcs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:48:38 den 3 juli 2018

Last Modified

11:48:39 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

dir_svcs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

dir_svc_type

int

4

False

2

dir_svc_auth_type

int

4

False

2

dir_svc_prm

bit

1

False

1

dir_svc_srv

nvarchar(100)

200

False

('Root­DSE')

dir_svc_sa_grp_unique_id

nvarchar(100)

200

False

('')

dir_svc_ldap_scoop_lvl

int

4

False

0

dir_svc_end_entity_filter_attr

nvarchar(500)

1000

True

Indexes

Key Name Key Columns Unique
000046

PK_dir_svcs_id

dir_svcs_id

True

Foreign Keys

Name Columns

FK_dir_svcs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[dir_svcs]
(
[dir_svcs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[dir_svc_type] [int] NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_type] DEFAULT ((2)),
[dir_svc_auth_type] [int] NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_auth_type] DEFAULT ((2)),
[dir_svc_prm] [bit] NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_prm] DEFAULT ((1)),
[dir_svc_srv] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_srv] DEFAULT ('Root­DSE'),
[dir_svc_sa_grp_unique_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_sa_grp_unique_id] DEFAULT (''),
[dir_svc_ldap_scoop_lvl] [int] NOT NULL CONSTRAINT [DF_dir_svcs_dir_svc_ldap_scoop_lvl] DEFAULT ((0)),
[dir_svc_end_entity_filter_attr] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[dir_svcs] ADD CONSTRAINT [PK_dir_svcs_id] PRIMARY KEY CLUSTERED ([dir_svcs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[dir_svcs] ADD CONSTRAINT [FK_dir_svcs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[end_entities]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:57:12 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

end_entities_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

end_entity_dir_type

int

4

False

end_entity_dir_id

nvarchar(100)

200

False

end_entity_status

int

4

False

end_entity_name

nvarchar(500)

1000

False

end_entity_org_name

nvarchar(100)

200

False

end_entity_org_nr

nvarchar(50)

100

False

end_entity_org_locality

nvarchar(50)

100

False

end_entity_org_country

nvarchar(10)

20

False

end_entity_snr

nvarchar(200)

400

True

end_entity_mail_addr

nvarchar(200)

400

True

end_entity_resp_name

nvarchar(200)

400

True

end_entity_resp_mail

nvarchar(200)

400

True

end_entity_resp_mobile

nvarchar(50)

100

True

end_entity_san

nvarchar(max)

max

True

end_entity_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_end_entities_id

end_entities_id

True

Foreign Keys

Name Columns

FK_end_entities_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[end_entities]
(
[end_entities_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[end_entity_dir_type] [int] NOT NULL,
[end_entity_dir_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_status] [int] NOT NULL,
[end_entity_name] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_org_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_org_nr] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_org_locality] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_org_country] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[end_entity_snr] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_mail_addr] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_resp_name] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_resp_mail] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_resp_mobile] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_san] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[end_entity_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[end_entities] ADD CONSTRAINT [PK_end_entities_id] PRIMARY KEY CLUSTERED ([end_entities_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[end_entities] ADD CONSTRAINT [FK_end_entities_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[crts]

[dbo].[gen_sets]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

19

Created

11:48:59 den 3 juli 2018

Last Modified

11:49:45 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

gen_sets_id

int

4

False

1 - 1

property

nvarchar(100)

200

False

('')

value

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_gen_sets_id

gen_sets_id

True

SQL Script

CREATE TABLE [dbo].[gen_sets]
(
[gen_sets_id] [int] NOT NULL IDENTITY(1, 1),
[property] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_gen_sets_property] DEFAULT (''),
[value] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[gen_sets] ADD CONSTRAINT [PK_gen_sets_id] PRIMARY KEY CLUSTERED ([gen_sets_id]) ON [PRIMARY]
GO

[dbo].[gen_txts]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

12:00:30 den 3 juli 2018

Last Modified

12:00:31 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

gen_txts_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

gen_txt_type

int

4

False

gen_txt_svc_type

int

4

False

gen_txt_task_type_id

int

4

False

gen_txt_value

nvarchar(max)

max

False

gen_txt_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_gen_txts_id

gen_txts_id

True

Foreign Keys

Name Columns

FK_gen_txts_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[gen_txts]
(
[gen_txts_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[gen_txt_type] [int] NOT NULL,
[gen_txt_svc_type] [int] NOT NULL,
[gen_txt_task_type_id] [int] NOT NULL,
[gen_txt_value] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[gen_txt_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[gen_txts] ADD CONSTRAINT [PK_gen_txts_id] PRIMARY KEY CLUSTERED ([gen_txts_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[gen_txts] ADD CONSTRAINT [FK_gen_txts_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[hist_tkns]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:48:48 den 3 juli 2018

Last Modified

11:56:44 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

usrs_id

int

4

True

hist_tkn_type

int

4

False

hist_tkn_snr

nvarchar(100)

200

False

hist_tkn_datetime

datetime

8

False

hist_tkn_status

int

4

False

hist_tkn_status_rsn

int

4

False

hist_tkns_id

nvarchar(100)

200

True

tkns_id

int

4

True

hist_tkn_rec_binary

varbinary(max)

max

True

hist_tkn_rec_type

int

4

True

Foreign Keys

Name Columns

FK_hist_tkns_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[hist_tkns]
(
[usrs_id] [int] NULL,
[hist_tkn_type] [int] NOT NULL,
[hist_tkn_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[hist_tkn_datetime] [datetime] NOT NULL,
[hist_tkn_status] [int] NOT NULL,
[hist_tkn_status_rsn] [int] NOT NULL,
[hist_tkns_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkns_id] [int] NULL,
[hist_tkn_rec_binary] [varbinary] (max) NULL,
[hist_tkn_rec_type] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[hist_tkns] ADD CONSTRAINT [FK_hist_tkns_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[usrs]

[dbo].[key_objs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:02 den 3 juli 2018

Last Modified

11:47:31 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

key_objs_id

int

4

False

1 - 1

key_blob_type

nvarchar(100)

200

True

key_blob

varbinary(max)

max

True

key_obj_param

nvarchar(100)

200

True

key_obj_usr_dist_name

nvarchar(500)

1000

True

key_obj_tkn_snr

nvarchar(100)

200

True

key_obj_key_binary

varbinary(max)

max

True

key_obj_purpose

nvarchar(100)

200

True

key_obj_protn

bit

1

False

0

key_obj_type

int

4

False

0

000047

orgs_id

int

4

True

000047

tkns_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_key_objs_id

key_objs_id

True

Foreign Keys

Name Columns

FK_key_objs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_key_objs_tkns_id

tkns_id→[dbo].[tkns].[tkns_id]

SQL Script

CREATE TABLE [dbo].[key_objs]
(
[key_objs_id] [int] NOT NULL IDENTITY(1, 1),
[key_blob_type] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[key_blob] [varbinary] (max) NULL,
[key_obj_param] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[key_obj_usr_dist_name] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[key_obj_tkn_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[key_obj_key_binary] [varbinary] (max) NULL,
[key_obj_purpose] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[key_obj_protn] [bit] NOT NULL CONSTRAINT [DF_key_objs_key_obj_protn] DEFAULT ((0)),
[key_obj_type] [int] NOT NULL CONSTRAINT [DF_key_objs_key_obj_type] DEFAULT ((0)),
[orgs_id] [int] NULL,
[tkns_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[key_objs] ADD CONSTRAINT [PK_key_objs_id] PRIMARY KEY CLUSTERED ([key_objs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[key_objs] ADD CONSTRAINT [FK_key_objs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[key_objs] ADD CONSTRAINT [FK_key_objs_tkns_id] FOREIGN KEY ([tkns_id]) REFERENCES [dbo].[tkns] ([tkns_id])
GO

Uses

  • [dbo].[orgs]

  • [dbo].[tkns]

Used By

  • [dbo].[tkns]

[dbo].[lic_svc_custs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:52 den 12 april 2019

Last Modified

14:32:54 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

lic_svc_custs_id

int

4

False

1 - 1

lic_svc_cust_name

nvarchar(100)

200

False

lic_svc_cust_mail_addr

nvarchar(100)

200

True

lic_svc_cust_mobile_nr

nvarchar(100)

200

True

lic_svc_cust_created_datetime

datetime

8

False

lic_svc_cust_bin

varbinary(max)

max

True

lic_svc_cust_ref_type

nvarchar(50)

100

True

lic_svc_cust_ref_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_lic_svc_custs_id

lic_svc_custs_id

True

SQL Script

CREATE TABLE [dbo].[lic_svc_custs]
(
[lic_svc_custs_id] [int] NOT NULL IDENTITY(1, 1),
[lic_svc_cust_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_cust_mail_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[lic_svc_cust_mobile_nr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[lic_svc_cust_created_datetime] [datetime] NOT NULL,
[lic_svc_cust_bin] [varbinary] (max) NULL,
[lic_svc_cust_ref_type] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[lic_svc_cust_ref_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[lic_svc_custs] ADD CONSTRAINT [PK_lic_svc_custs_id] PRIMARY KEY CLUSTERED ([lic_svc_custs_id]) ON [PRIMARY]
GO

Used By

  • [dbo].[lic_svc_masters]

[dbo].[lic_svc_machines]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:56 den 12 april 2019

Last Modified

14:32:58 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

lic_svc_machines_id

int

4

False

1 - 1

000047

lic_svc_masters_id

int

4

True

lic_svc_machine_name

nvarchar(100)

200

True

lic_svc_machine_company

nvarchar(100)

200

False

lic_svc_machine_value

nvarchar(100)

200

False

lic_svc_machine_amount

int

4

False

lic_svc_machine_system

nvarchar(100)

200

False

lic_svc_machine_status

int

4

False

lic_svc_machine_published

bit

1

False

Indexes

Key Name Key Columns Unique
000046

PK_lic_svc_machines_id

lic_svc_machines_id

True

Foreign Keys

Name Columns

FK_lic_svc_machines_lic_svc_masters_id

lic_svc_masters_id→[dbo.[lic_svc_masters].[lic_svc_masters_id]]

SQL Script

CREATE TABLE [dbo].[lic_svc_machines]
(
[lic_svc_machines_id] [int] NOT NULL IDENTITY(1, 1),
[lic_svc_masters_id] [int] NULL,
[lic_svc_machine_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[lic_svc_machine_company] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_machine_value] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_machine_amount] [int] NOT NULL,
[lic_svc_machine_system] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_machine_status] [int] NOT NULL,
[lic_svc_machine_published] [bit] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[lic_svc_machines] ADD CONSTRAINT [PK_lic_svc_machines_id] PRIMARY KEY CLUSTERED ([lic_svc_machines_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[lic_svc_machines] ADD CONSTRAINT [FK_lic_svc_machines_lic_svc_masters_id] FOREIGN KEY ([lic_svc_masters_id]) REFERENCES [dbo].[lic_svc_masters] ([lic_svc_masters_id])
GO

Uses

  • [dbo].[lic_svc_masters]

[dbo].[lic_svc_masters]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:54 den 12 april 2019

Last Modified

14:32:56 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

lic_svc_masters_id

int

4

False

1 - 1

000047

lic_svc_custs_id

int

4

True

lic_svc_master_ref_id

int

4

False

lic_svc_master_name

nvarchar(100)

200

False

lic_svc_master_company

nvarchar(100)

200

False

lic_svc_master_value

nvarchar(100)

200

False

lic_svc_master_mode

nvarchar(100)

200

False

lic_svc_master_amount

int

4

False

lic_svc_master_amount_max

int

4

False

lic_svc_master_validity

nvarchar(50)

100

False

lic_svc_master_next_update

nvarchar(50)

100

False

lic_svc_master_signature

varbinary(max)

max

False

Indexes

Key Name Key Columns Unique
000046

PK_lic_svc_masters_id

lic_svc_masters_id

True

Foreign Keys

Name Columns

FK_lic_svc_masters_lic_svc_custs_id

lic_svc_custs_id→[dbo.[lic_svc_custs].[lic_svc_custs_id]]

SQL Script

CREATE TABLE [dbo].[lic_svc_masters]
(
[lic_svc_masters_id] [int] NOT NULL IDENTITY(1, 1),
[lic_svc_custs_id] [int] NULL,
[lic_svc_master_ref_id] [int] NOT NULL,
[lic_svc_master_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_company] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_value] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_mode] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_amount] [int] NOT NULL,
[lic_svc_master_amount_max] [int] NOT NULL,
[lic_svc_master_validity] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_next_update] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[lic_svc_master_signature] [varbinary] (max) NOT NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[lic_svc_masters] ADD CONSTRAINT [PK_lic_svc_masters_id] PRIMARY KEY CLUSTERED ([lic_svc_masters_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[lic_svc_masters] ADD CONSTRAINT [FK_lic_svc_masters_lic_svc_custs_id] FOREIGN KEY ([lic_svc_custs_id]) REFERENCES [dbo].[lic_svc_custs] ([lic_svc_custs_id])
GO

Uses

  • [dbo].[lic_svc_custs]

Used By

  • [dbo].[lic_svc_machines]

[dbo].[natl_regs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:46:42 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

natl_regs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

natl_reg_name

nvarchar(100)

200

False

natl_reg_name_enum

int

4

False

natl_reg_service

nvarchar(500)

1000

False

natl_reg_search_type

int

4

False

natl_reg_auth_type

int

4

False

natl_reg_auth_crt_hash

nvarchar(100)

200

True

natl_reg_cust_id

nvarchar(100)

200

False

natl_reg_ord_id

nvarchar(100)

200

False

natl_reg_priority

bit

1

True

natl_reg_hsa_id

nvarchar(100)

200

True

natl_reg_hsa_base

nvarchar(500)

1000

True

natl_reg_hsa_base_end_entity

nvarchar(500)

1000

True

Indexes

Key Name Key Columns Unique
000046

PK_natl_regs_id

natl_regs_id

True

Foreign Keys

Name Columns

FK_natl_regs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[natl_regs]
(
[natl_regs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[natl_reg_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[natl_reg_name_enum] [int] NOT NULL,
[natl_reg_service] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[natl_reg_search_type] [int] NOT NULL,
[natl_reg_auth_type] [int] NOT NULL,
[natl_reg_auth_crt_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[natl_reg_cust_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[natl_reg_ord_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[natl_reg_priority] [bit] NULL,
[natl_reg_hsa_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[natl_reg_hsa_base] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[natl_reg_hsa_base_end_entity] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[natl_regs] ADD CONSTRAINT [PK_natl_regs_id] PRIMARY KEY CLUSTERED ([natl_regs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[natl_regs] ADD CONSTRAINT [FK_natl_regs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[ofcs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:48 den 12 april 2019

Last Modified

14:33:00 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity

ofcs_id

int

4

False

1 - 1

orgs_id

int

4

True

ofc_name

nvarchar(100)

200

False

ofc_org_name

nvarchar(100)

200

False

ofc_street_addr

nvarchar(100)

200

False

ofc_postl_addr

nvarchar(100)

200

True

ofc_postl_code

nvarchar(100)

200

True

ofc_postl_city

nvarchar(100)

200

True

ofc_postl_c

nvarchar(10)

20

True

ofc_mail_addr

nvarchar(100)

200

True

ofc_phone_nr

nvarchar(50)

100

True

ofc_contct_pers

nvarchar(100)

200

True

ofc_inv_addr

nvarchar(100)

200

True

ofc_inv_postl_code

nvarchar(100)

200

True

ofc_inv_city

nvarchar(100)

200

True

ofc_inv_c

nvarchar(10)

20

True

ofc_cost_cntr

nvarchar(100)

200

True

ofc_tkn_mfr_ref

nvarchar(100)

200

True

ofc_obj_hash

nvarchar(100)

200

True

ofc_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique

PK_ofcs_id

ofcs_id

True

Foreign Keys

Name Columns

FK_ofcs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[ofcs]
(
[ofcs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[ofc_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[ofc_org_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[ofc_street_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[ofc_postl_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_postl_code] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_postl_city] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_postl_c] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_mail_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_phone_nr] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_contct_pers] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_inv_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_inv_postl_code] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_inv_city] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_inv_c] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_cost_cntr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_tkn_mfr_ref] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_obj_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ofc_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[ofcs] ADD CONSTRAINT [PK_ofcs_id] PRIMARY KEY CLUSTERED ([ofcs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ofcs] ADD CONSTRAINT [FK_ofcs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[usr_ofcs_relns]

  • [dbo].[usrs]

[dbo].[org_crts]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

14:32:46 den 12 april 2019

Last Modified

14:32:47 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity

org_crts_id

int

4

False

1 - 1

orgs_id

int

4

True

org_crt_type

int

4

False

org_crt_hash

nvarchar(100)

200

False

org_crt_value

nvarchar(max)

max

False

org_crt_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique

PK_org_crts_id

org_crts_id

True

Foreign Keys

Name Columns

FK_org_crts_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[org_crts]
(
[org_crts_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[org_crt_type] [int] NOT NULL,
[org_crt_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[org_crt_value] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[org_crt_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_crts] ADD CONSTRAINT [PK_org_crts_id] PRIMARY KEY CLUSTERED ([org_crts_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_crts] ADD CONSTRAINT [FK_org_crts_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[org_ofc_addrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:30 den 3 juli 2018

Last Modified

11:57:11 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

org_ofc_addrs_id

int

4

False

1 - 1

000047

org_ofcs_id

int

4

True

org_ofc_addr

nvarchar(300)

600

True

org_ofc_zip

nvarchar(100)

200

True

org_ofc_city

nvarchar(300)

600

True

Indexes

Key Name Key Columns Unique
000046

PK_org_ofc_addrs_id

org_ofc_addrs_id

True

Foreign Keys

Name Columns

FK_org_ofc_addrs_org_ofcs_id

org_ofcs_id→[dbo].[org_ofcs].[org_ofcs_id]

SQL Script

CREATE TABLE [dbo].[org_ofc_addrs]
(
[org_ofc_addrs_id] [int] NOT NULL IDENTITY(1, 1),
[org_ofcs_id] [int] NULL,
[org_ofc_addr] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_ofc_zip] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_ofc_city] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_ofc_addrs] ADD CONSTRAINT [PK_org_ofc_addrs_id] PRIMARY KEY CLUSTERED ([org_ofc_addrs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_ofc_addrs] ADD CONSTRAINT [FK_org_ofc_addrs_org_ofcs_id] FOREIGN KEY ([org_ofcs_id]) REFERENCES [dbo].[org_ofcs] ([org_ofcs_id])
GO

Uses

  • [dbo].[org_ofcs]

Used By

  • [dbo].[usr_org_ofc_addrs_relns]

  • [dbo].[usrs]

[dbo].[org_ofcs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:43:53 den 3 juli 2018

Last Modified

11:49:45 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

org_ofcs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

org_ofc_name

nvarchar(100)

200

True

org_ofc_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_org_ofcs_id

org_ofcs_id

True

Foreign Keys

Name Columns

FK_org_ofcs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[org_ofcs]
(
[org_ofcs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[org_ofc_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_ofc_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_ofcs] ADD CONSTRAINT [PK_org_ofcs_id] PRIMARY KEY CLUSTERED ([org_ofcs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[org_ofcs] ADD CONSTRAINT [FK_org_ofcs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[org_ofc_addrs]

[dbo].[orgs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:43:53 den 3 juli 2018

Last Modified

12:00:31 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

orgs_id

int

4

False

1 - 1

org_name

nvarchar(100)

200

True

org_domain_suffix

nvarchar(100)

200

True

org_nr

nvarchar(100)

200

True

org_domain_suffix_whitelist

nvarchar(500)

1000

True

org_permissions

nvarchar(100)

200

True

org_mediation_task_addr

nvarchar(300)

600

True

org_mediation_task_zip

nvarchar(50)

100

True

org_mediation_task_city

nvarchar(100)

200

True

org_owner

bit

1

False

0

org_sa_mail

nvarchar(500)

1000

True

('')

org_sign_crt_ku

nvarchar(100)

200

False

('')

org_crt_type

int

4

True

org_crt_hash

nvarchar(100)

200

True

org_crt_bin

varbinary(max)

max

True

org_uniq_crt_src

int

4

False

1

org_adnl_info

nvarchar(max)

max

True

org_adnl_data

nvarchar(max)

max

True

org_adnl_task_info

nvarchar(max)

max

True

org_l

nvarchar(100)

200

True

org_c

nvarchar(10)

20

True

Indexes

Key Name Key Columns Unique
000046

PK_orgs_id

orgs_id

True

SQL Script

CREATE TABLE [dbo].[orgs]
(
[orgs_id] [int] NOT NULL IDENTITY(1, 1),
[org_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_domain_suffix] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_nr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_domain_suffix_whitelist] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_permissions] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_mediation_task_addr] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_mediation_task_zip] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_mediation_task_city] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_owner] [bit] NOT NULL CONSTRAINT [DF_orgs_org_owner] DEFAULT ((0)),
[org_sa_mail] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL CONSTRAINT [DF_orgs_org_sa_mail] DEFAULT (''),
[org_sign_crt_ku] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_orgs_org_sign_crt_ku] DEFAULT (''),
[org_crt_type] [int] NULL,
[org_crt_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_crt_bin] [varbinary] (max) NULL,
[org_uniq_crt_src] [int] NOT NULL CONSTRAINT [DF_orgs_org_uniq_crt_src] DEFAULT ((1)),
[org_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_adnl_data] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_adnl_task_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_l] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[org_c] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[orgs] ADD CONSTRAINT [PK_orgs_id] PRIMARY KEY CLUSTERED ([orgs_id]) ON [PRIMARY]
GO

Used By

  • [dbo].[acquis]

  • [dbo].[act_usrs]

  • [dbo].[adnl_ids]

  • [dbo].[cache_objs]

  • [dbo].[creds]

  • [dbo].[crt_auths]

  • [dbo].[crt_tmls]

  • [dbo].[crt_whitelist_appvls]

  • [dbo].[crt_whitelists]

  • [dbo].[crts]

  • [dbo].[dir_svcs]

  • [dbo].[end_entities]

  • [dbo].[gen_txts]

  • [dbo].[key_objs]

  • [dbo].[natl_regs]

  • [dbo].[org_ofcs]

  • [dbo].[otps]

  • [dbo].[roles]

  • [dbo].[rprts]

  • [dbo].[sa_key_objs]

  • [dbo].[sa_key_usrs]

  • [dbo].[sms_tmls]

  • [dbo].[smtp_tmls]

  • [dbo].[srvs]

  • [dbo].[task_types]

  • [dbo].[tasks]

  • [dbo].[tkn_mfrs]

  • [dbo].[tkn_prfls]

  • [dbo].[tkn_rgtr]

  • [dbo].[tkn_tmls]

  • [dbo].[tkns]

  • [dbo].[usr_appvls]

  • [dbo].[usr_grp_restr_relns]

  • [dbo].[usr_grps]

  • [dbo].[usrs]

[dbo].[otps]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:48:53 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

orgs_id

int

4

True

otp_obj_type

int

4

False

otp_obj_ref

nvarchar(100)

200

False

otp_valid_to

datetime

8

False

otp_value

nvarchar(100)

200

False

otp_attempts

int

4

True

Foreign Keys

Name Columns

FK_otps_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[otps]
(
[orgs_id] [int] NULL,
[otp_obj_type] [int] NOT NULL,
[otp_obj_ref] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[otp_valid_to] [datetime] NOT NULL,
[otp_value] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[otp_attempts] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[otps] ADD CONSTRAINT [FK_otps_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[privileges]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

176

Created

11:49:54 den 3 juli 2018

Last Modified

11:49:55 den 3 juli 2018

Columns

Name Data Type Max Length (Bytes) Allow Nulls

privilege_id

int

4

False

privilege_name

nvarchar(100)

200

False

SQL Script

CREATE TABLE [dbo].[privileges]
(
[privilege_id] [int] NOT NULL,
[privilege_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY]
GO

[dbo].[role_privilege_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:48:42 den 3 juli 2018

Last Modified

11:48:43 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

roles_id

int

4

True

privilege

int

4

False

Foreign Keys

Name Columns

FK_role_privilege_relns_roles_id

roles_id→[dbo].[roles].[roles_id]

SQL Script

CREATE TABLE [dbo].[role_privilege_relns]
(
[roles_id] [int] NULL,
[privilege] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[role_privilege_relns] ADD CONSTRAINT [FK_role_privilege_relns_roles_id] FOREIGN KEY ([roles_id]) REFERENCES [dbo].[roles] ([roles_id])
GO

Uses

  • [dbo].[roles]

[dbo].[role_usr_grp_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:48:41 den 3 juli 2018

Last Modified

11:48:42 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

roles_id

int

4

True

000047

usr_grps_id

int

4

True

Foreign Keys

Name Columns

FK_role_usr_grp_relns_roles_id

roles_id→[dbo].[roles].[roles_id]

FK_role_usr_grp_relns_usr_grps_id

usr_grps_id→[dbo].[usr_grps].[usr_grps_id]

SQL Script

CREATE TABLE [dbo].[role_usr_grp_relns]
(
[roles_id] [int] NULL,
[usr_grps_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[role_usr_grp_relns] ADD CONSTRAINT [FK_role_usr_grp_relns_roles_id] FOREIGN KEY ([roles_id]) REFERENCES [dbo].[roles] ([roles_id])
GO
ALTER TABLE [dbo].[role_usr_grp_relns] ADD CONSTRAINT [FK_role_usr_grp_relns_usr_grps_id] FOREIGN KEY ([usr_grps_id]) REFERENCES [dbo].[usr_grps] ([usr_grps_id])
GO

Uses

  • [dbo].[roles]

  • [dbo].[usr_grps]

[dbo].[roles]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:48:41 den 3 juli 2018

Last Modified

11:48:42 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

roles_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

role_name

nvarchar(300)

600

False

Indexes

Key Name Key Columns Unique
000046

PK_roles_id

roles_id

True

Foreign Keys

Name Columns

FK_roles_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[roles]
(
[roles_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[role_name] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[roles] ADD CONSTRAINT [PK_roles_id] PRIMARY KEY CLUSTERED ([roles_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[roles] ADD CONSTRAINT [FK_roles_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[role_privilege_relns]

  • [dbo].[role_usr_grp_relns]

[dbo].[rprts]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:48:50 den 3 juli 2018

Last Modified

11:49:45 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

orgs_id

int

4

True

rprt_name

nvarchar(100)

200

False

rprt_descr

nvarchar(max)

max

True

rprt_query

nvarchar(max)

max

True

rprts_id

nvarchar(100)

200

False

Foreign Keys

Name Columns

FK_rprts_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[rprts]
(
[orgs_id] [int] NULL,
[rprt_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[rprt_descr] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[rprt_query] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[rprts_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[rprts] ADD CONSTRAINT [FK_rprts_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[sa_key_objs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:09 den 3 juli 2018

Last Modified

11:48:23 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

sa_key_objs_id

int

4

False

1 - 1

sa_key_obj_property

nvarchar(200)

400

True

sa_key_obj_binary

varbinary(max)

max

True

000047

orgs_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_sa_key_objs_id

sa_key_objs_id

True

Foreign Keys

Name Columns

FK_sa_key_objs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[sa_key_objs]
(
[sa_key_objs_id] [int] NOT NULL IDENTITY(1, 1),
[sa_key_obj_property] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[sa_key_obj_binary] [varbinary] (max) NULL,
[orgs_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[sa_key_objs] ADD CONSTRAINT [PK_sa_key_objs_id] PRIMARY KEY CLUSTERED ([sa_key_objs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[sa_key_objs] ADD CONSTRAINT [FK_sa_key_objs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[sa_key_usr_relns]

[dbo].[sa_key_usr_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:44:11 den 3 juli 2018

Last Modified

11:48:26 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

sa_key_usrs_id

int

4

True

000047

sa_key_objs_id

int

4

True

Foreign Keys

Name Columns

FK_sa_key_usr_relns_sa_key_objs_id

sa_key_objs_id→[dbo].[sa_key_objs].[sa_key_objs_id]

FK_sa_key_usr_relns_sa_key_usrs_id

sa_key_usrs_id→[dbo].[sa_key_usrs].[sa_key_usrs_id]

SQL Script

CREATE TABLE [dbo].[sa_key_usr_relns]
(
[sa_key_usrs_id] [int] NULL,
[sa_key_objs_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[sa_key_usr_relns] ADD CONSTRAINT [FK_sa_key_usr_relns_sa_key_objs_id] FOREIGN KEY ([sa_key_objs_id]) REFERENCES [dbo].[sa_key_objs] ([sa_key_objs_id])
GO
ALTER TABLE [dbo].[sa_key_usr_relns] ADD CONSTRAINT [FK_sa_key_usr_relns_sa_key_usrs_id] FOREIGN KEY ([sa_key_usrs_id]) REFERENCES [dbo].[sa_key_usrs] ([sa_key_usrs_id])
GO

Uses

  • [dbo].[sa_key_objs]

  • [dbo].[sa_key_usrs]

[dbo].[sa_key_usrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:10 den 3 juli 2018

Last Modified

11:48:24 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

sa_key_usrs_id

int

4

False

1 - 1

sa_key_usr_ofcr_dist_name

nvarchar(500)

1000

True

sa_key_usr_tkn_snr

nvarchar(100)

200

True

000047

orgs_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_sa_key_usrs_id

sa_key_usrs_id

True

Foreign Keys

Name Columns

FK_sa_key_usrs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[sa_key_usrs]
(
[sa_key_usrs_id] [int] NOT NULL IDENTITY(1, 1),
[sa_key_usr_ofcr_dist_name] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[sa_key_usr_tkn_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[orgs_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[sa_key_usrs] ADD CONSTRAINT [PK_sa_key_usrs_id] PRIMARY KEY CLUSTERED ([sa_key_usrs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[sa_key_usrs] ADD CONSTRAINT [FK_sa_key_usrs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[sa_key_usr_relns]

[dbo].[sms_tmls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:45:58 den 3 juli 2018

Last Modified

11:49:45 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

sms_tmls_id

int

4

False

1 - 1

sms_tml_name

nvarchar(100)

200

True

sms_tml_srv

nvarchar(100)

200

True

sms_tml_body_cont

nvarchar(max)

max

True

000047

orgs_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_sms_tmls_id

sms_tmls_id

True

Foreign Keys

Name Columns

FK_sms_tmls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[sms_tmls]
(
[sms_tmls_id] [int] NOT NULL IDENTITY(1, 1),
[sms_tml_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[sms_tml_srv] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[sms_tml_body_cont] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[orgs_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[sms_tmls] ADD CONSTRAINT [PK_sms_tmls_id] PRIMARY KEY CLUSTERED ([sms_tmls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[sms_tmls] ADD CONSTRAINT [FK_sms_tmls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[smtp_tmls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:45:08 den 3 juli 2018

Last Modified

11:49:46 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

smtp_tmls_id

int

4

False

1 - 1

smtp_tml_srv

nvarchar(100)

200

True

smtp_tml_port

nvarchar(100)

200

True

smtp_tml_use_ssl

bit

1

False

smtp_tml_name

nvarchar(100)

200

True

smtp_tml_from_addr

nvarchar(100)

200

True

smtp_tml_from_disp_name

nvarchar(100)

200

True

smtp_tml_subj_cont

nvarchar(100)

200

True

smtp_tml_body_cont

nvarchar(max)

max

True

smtp_tml_sa

bit

1

False

000047

orgs_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_smtp_tmls_id

smtp_tmls_id

True

Foreign Keys

Name Columns

FK_smtp_tmls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[smtp_tmls]
(
[smtp_tmls_id] [int] NOT NULL IDENTITY(1, 1),
[smtp_tml_srv] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_port] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_use_ssl] [bit] NOT NULL,
[smtp_tml_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_from_addr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_from_disp_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_subj_cont] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_body_cont] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[smtp_tml_sa] [bit] NOT NULL,
[orgs_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[smtp_tmls] ADD CONSTRAINT [PK_smtp_tmls_id] PRIMARY KEY CLUSTERED ([smtp_tmls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[smtp_tmls] ADD CONSTRAINT [FK_smtp_tmls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[srvs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:49:53 den 3 juli 2018

Last Modified

11:49:59 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

srvs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

srv_name

nvarchar(300)

600

False

Indexes

Key Name Key Columns Unique
000046

PK_srvs_id

srvs_id

True

Foreign Keys

Name Columns

FK_srvs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[srvs]
(
[srvs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[srv_name] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[srvs] ADD CONSTRAINT [PK_srvs_id] PRIMARY KEY CLUSTERED ([srvs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[srvs] ADD CONSTRAINT [FK_srvs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[crts]

[dbo].[task_type_privilege_relns]

Properties

Property Value

Heap

True

Row Count (~)

133

Created

11:49:57 den 3 juli 2018

Last Modified

11:49:58 den 3 juli 2018

Columns

Name Data Type Max Length (Bytes) Allow Nulls

task_type_id

int

4

False

privilege_id

int

4

False

SQL Script

CREATE TABLE [dbo].[task_type_privilege_relns]
(
[task_type_id] [int] NOT NULL,
[privilege_id] [int] NOT NULL
) ON [PRIMARY]
GO

[dbo].[task_types]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

133

Created

11:49:55 den 3 juli 2018

Last Modified

11:56:19 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Default
000047

orgs_id

int

4

True

task_type_category_id

int

4

False

task_type_id

int

4

False

task_type_name

nvarchar(100)

200

False

task_type_usage

nvarchar(10)

20

False

task_type_model

nvarchar(100)

200

False

task_type_help

nvarchar(500)

1000

False

task_type_readonly

bit

1

False

0

Foreign Keys

Name Columns

FK_task_types_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[task_types]
(
[orgs_id] [int] NULL,
[task_type_category_id] [int] NOT NULL,
[task_type_id] [int] NOT NULL,
[task_type_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[task_type_usage] [nvarchar] (10) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[task_type_model] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[task_type_help] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[task_type_readonly] [bit] NOT NULL CONSTRAINT [DF__task_type__task___37FA4C37] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[task_types] ADD CONSTRAINT [FK_task_types_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[tasks]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:48:44 den 3 juli 2018

Last Modified

11:56:14 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Default
000047

usrs_id

int

4

True

000047

usr_grps_id

int

4

True

000047

orgs_id

int

4

True

task_uniq_id

nvarchar(100)

200

False

task_type_id

int

4

False

task_obj_id

nvarchar(100)

200

True

task_obj_descr

nvarchar(500)

1000

True

task_created

datetime

8

False

task_valid_to

datetime

8

True

task_inpr_idle

datetime

8

True

task_status

int

4

False

task_status_adnl

int

4

False

0

task_bin

varbinary(max)

max

False

task_category_id

int

4

True

Foreign Keys

Name Columns

FK_tasks_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_tasks_usr_grps_id

usr_grps_id→[dbo].[usr_grps].[usr_grps_id]

FK_tasks_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[tasks]
(
[usrs_id] [int] NULL,
[usr_grps_id] [int] NULL,
[orgs_id] [int] NULL,
[task_uniq_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[task_type_id] [int] NOT NULL,
[task_obj_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[task_obj_descr] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[task_created] [datetime] NOT NULL,
[task_valid_to] [datetime] NULL,
[task_inpr_idle] [datetime] NULL,
[task_status] [int] NOT NULL,
[task_status_adnl] [int] NOT NULL CONSTRAINT [DF_tasks_task_status_adnl] DEFAULT ((0)),
[task_bin] [varbinary] (max) NOT NULL,
[task_category_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tasks] ADD CONSTRAINT [FK_tasks_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[tasks] ADD CONSTRAINT [FK_tasks_usr_grps_id] FOREIGN KEY ([usr_grps_id]) REFERENCES [dbo].[usr_grps] ([usr_grps_id])
GO
ALTER TABLE [dbo].[tasks] ADD CONSTRAINT [FK_tasks_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[orgs]

  • [dbo].[usr_grps]

  • [dbo].[usrs]

[dbo].[tkn_crt_tml_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:43:58 den 3 juli 2018

Last Modified

11:48:06 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

tkn_tmls_id

int

4

True

000047

crt_tmls_id

int

4

True

Foreign Keys

Name Columns

FK_tkn_crt_tml_relns_crt_tmls_id

crt_tmls_id→[dbo].[crt_tmls].[crt_tmls_id]

FK_tkn_crt_tml_relns_tkn_tmls_id

tkn_tmls_id→[dbo].[tkn_tmls].[tkn_tmls_id]

SQL Script

CREATE TABLE [dbo].[tkn_crt_tml_relns]
(
[tkn_tmls_id] [int] NULL,
[crt_tmls_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_crt_tml_relns] ADD CONSTRAINT [FK_tkn_crt_tml_relns_crt_tmls_id] FOREIGN KEY ([crt_tmls_id]) REFERENCES [dbo].[crt_tmls] ([crt_tmls_id])
GO
ALTER TABLE [dbo].[tkn_crt_tml_relns] ADD CONSTRAINT [FK_tkn_crt_tml_relns_tkn_tmls_id] FOREIGN KEY ([tkn_tmls_id]) REFERENCES [dbo].[tkn_tmls] ([tkn_tmls_id])
GO

Uses

  • [dbo].[crt_tmls]

  • [dbo].[tkn_tmls]

[dbo].[tkn_mfrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:46:41 den 3 juli 2018

Last Modified

11:49:46 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

tkn_mfrs_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

tkn_mfr_name

int

4

False

tkn_mfr_type

int

4

False

tkn_mfr_services

nvarchar(max)

max

True

tkn_mfr_cust_ref

nvarchar(100)

200

False

('')

tkn_mfr_auth_type

int

4

False

tkn_mfr_auth_crt_hash

nvarchar(100)

200

True

tkn_mfr_adnl_info

nvarchar(max)

max

True

000047

creds_id

int

4

True

Indexes

Key Name Key Columns Unique
000046

PK_tkn_mfrs_id

tkn_mfrs_id

True

Foreign Keys

Name Columns

FK_tkn_mfrs_creds_id

creds_id→[dbo].[creds].[creds_id]

FK_tkn_mfrs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[tkn_mfrs]
(
[tkn_mfrs_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[tkn_mfr_name] [int] NOT NULL,
[tkn_mfr_type] [int] NOT NULL,
[tkn_mfr_services] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_mfr_cust_ref] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_tkn_mfrs_tkn_mfr_cust_ref] DEFAULT (''),
[tkn_mfr_auth_type] [int] NOT NULL,
[tkn_mfr_auth_crt_hash] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_mfr_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[creds_id] [int] NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_mfrs] ADD CONSTRAINT [PK_tkn_mfrs_id] PRIMARY KEY CLUSTERED ([tkn_mfrs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_mfrs] ADD CONSTRAINT [FK_tkn_mfrs_creds_id] FOREIGN KEY ([creds_id]) REFERENCES [dbo].[creds] ([creds_id])
GO
ALTER TABLE [dbo].[tkn_mfrs] ADD CONSTRAINT [FK_tkn_mfrs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[creds]

  • [dbo].[orgs]

Used By

  • [dbo].[tkn_tmls]

[dbo].[tkn_prfls]

Properties

Property Value

Row Count (~)

22

Created

11:48:52 den 3 juli 2018

Last Modified

11:50:00 den 3 juli 2018

Columns

Key Name Data Type Collation Max Length (Bytes) Allow Nulls Identity
000046

tkn_prfls_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

tkn_prfl_label

nvarchar(100)

Latin1_­General_­CS_­AS

200

False

tkn_prfl_model

nvarchar(100)

Latin1_­General_­CS_­AS

200

False

tkn_prfl_data

nvarchar(max)

Finnish_­Swedish_­CI_­AS

max

True

tkn_prfl_adnl_task_info

nvarchar(max)

Finnish_­Swedish_­CI_­AS

max

True

Indexes

Key Name Key Columns Unique
000046

PK_tkn_prfls_id

tkn_prfls_id

True

Foreign Keys

Name Columns

FK_tkn_prfls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[tkn_prfls]
(
[tkn_prfls_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[tkn_prfl_label] [nvarchar] (100) COLLATE Latin1_­General_­CS_­AS NOT NULL,
[tkn_prfl_model] [nvarchar] (100) COLLATE Latin1_­General_­CS_­AS NOT NULL,
[tkn_prfl_data] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_prfl_adnl_task_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_prfls] ADD CONSTRAINT [PK_tkn_prfls_id] PRIMARY KEY CLUSTERED ([tkn_prfls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_prfls] ADD CONSTRAINT [FK_tkn_prfls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[tkns]

[dbo].[tkn_rgtr]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:48:55 den 3 juli 2018

Last Modified

11:48:59 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

orgs_id

int

4

True

tkn_rgtr_status

int

4

False

tkn_rgtr_usr_id

int

4

False

tkn_rgtr_usr_disp_name

nvarchar(200)

400

False

tkn_rgtr_usr_svc_type

nvarchar(200)

400

False

tkn_rgtr_usr_snr

nvarchar(100)

200

False

tkn_rgtr_usr_length

nvarchar(100)

200

False

tkn_rgtr_usr_hair_color

nvarchar(100)

200

False

tkn_rgtr_usr_eye_color

nvarchar(100)

200

False

tkn_rgtr_usr_location

nvarchar(100)

200

False

tkn_rgtr_tkn_id

int

4

False

tkn_rgtr_tkn_type

int

4

False

tkn_rgtr_tkn_snr

nvarchar(100)

200

False

tkn_rgtr_tkn_seqnr1

nvarchar(100)

200

False

tkn_rgtr_tkn_seqnr2

nvarchar(100)

200

False

tkn_rgtr_tkn_order_date

datetime

8

True

tkn_rgtr_tkn_distr_date

datetime

8

True

tkn_rgtr_tkn_validity_date

datetime

8

True

tkn_rgtr_tkn_revoke_date

datetime

8

True

tkn_rgtr_tkn_revoke_reason

nvarchar(100)

200

True

tkn_rgtr_adnl_info

nvarchar(max)

max

True

Foreign Keys

Name Columns

FK_tkn_rgtr_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[tkn_rgtr]
(
[orgs_id] [int] NULL,
[tkn_rgtr_status] [int] NOT NULL,
[tkn_rgtr_usr_id] [int] NOT NULL,
[tkn_rgtr_usr_disp_name] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_svc_type] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_length] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_hair_color] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_eye_color] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_usr_location] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_tkn_id] [int] NOT NULL,
[tkn_rgtr_tkn_type] [int] NOT NULL,
[tkn_rgtr_tkn_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_tkn_seqnr1] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_tkn_seqnr2] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_rgtr_tkn_order_date] [datetime] NULL,
[tkn_rgtr_tkn_distr_date] [datetime] NULL,
[tkn_rgtr_tkn_validity_date] [datetime] NULL,
[tkn_rgtr_tkn_revoke_date] [datetime] NULL,
[tkn_rgtr_tkn_revoke_reason] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_rgtr_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_rgtr] ADD CONSTRAINT [FK_tkn_rgtr_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[tkn_tmls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:43:58 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

tkn_tmls_id

int

4

False

1 - 1

tkn_tml_name

nvarchar(100)

200

False

000047

orgs_id

int

4

True

tkn_tml_type

int

4

False

tkn_tml_descr

nvarchar(300)

600

False

000047

tkn_mfrs_id

int

4

True

tkn_tml_mfr_prod_name

nvarchar(100)

200

True

tkn_tml_mfr_prod_lbl

nvarchar(200)

400

True

tkn_tml_validity_min_key

int

4

True

tkn_tml_validity_min_value

int

4

True

tkn_tml_validity_def_key

int

4

True

tkn_tml_validity_def_value

int

4

True

tkn_tml_validity_max_key

int

4

True

tkn_tml_validity_max_value

int

4

True

tkn_tml_adnl_info

nvarchar(max)

max

True

tkn_tml_adnl_task_info

nvarchar(max)

max

True

tkn_tml_visible

bit

1

True

tkn_tml_type_desc

nvarchar(100)

200

True

Indexes

Key Name Key Columns Unique
000046

PK_tkn_tmls_id

tkn_tmls_id

True

Foreign Keys

Name Columns

FK_tkn_tmls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_tkn_tmls_tkn_mfrs_id

tkn_mfrs_id→[dbo].[tkn_mfrs].[tkn_mfrs_id]

SQL Script

CREATE TABLE [dbo].[tkn_tmls]
(
[tkn_tmls_id] [int] NOT NULL IDENTITY(1, 1),
[tkn_tml_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[orgs_id] [int] NULL,
[tkn_tml_type] [int] NOT NULL,
[tkn_tml_descr] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[tkn_mfrs_id] [int] NULL,
[tkn_tml_mfr_prod_name] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_tml_mfr_prod_lbl] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_tml_validity_min_key] [int] NULL,
[tkn_tml_validity_min_value] [int] NULL,
[tkn_tml_validity_def_key] [int] NULL,
[tkn_tml_validity_def_value] [int] NULL,
[tkn_tml_validity_max_key] [int] NULL,
[tkn_tml_validity_max_value] [int] NULL,
[tkn_tml_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_tml_adnl_task_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_tml_visible] [bit] NULL,
[tkn_tml_type_desc] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_tmls] ADD CONSTRAINT [PK_tkn_tmls_id] PRIMARY KEY CLUSTERED ([tkn_tmls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_tmls] ADD CONSTRAINT [FK_tkn_tmls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[tkn_tmls] ADD CONSTRAINT [FK_tkn_tmls_tkn_mfrs_id] FOREIGN KEY ([tkn_mfrs_id]) REFERENCES [dbo].[tkn_mfrs] ([tkn_mfrs_id])
GO

Uses

  • [dbo].[orgs]

  • [dbo].[tkn_mfrs]

Used By

  • [dbo].[tkn_crt_tml_relns]

  • [dbo].[tkns]

[dbo].[tkn_usr_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:44:08 den 3 juli 2018

Last Modified

11:47:42 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

tkns_id

int

4

True

000047

usrs_id

int

4

True

Foreign Keys

Name Columns

FK_tkn_usr_relns_tkns_id

tkns_id→[dbo].[tkns].[tkns_id]

FK_tkn_usr_relns_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[tkn_usr_relns]
(
[tkns_id] [int] NULL,
[usrs_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkn_usr_relns] ADD CONSTRAINT [FK_tkn_usr_relns_tkns_id] FOREIGN KEY ([tkns_id]) REFERENCES [dbo].[tkns] ([tkns_id])
GO
ALTER TABLE [dbo].[tkn_usr_relns] ADD CONSTRAINT [FK_tkn_usr_relns_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[tkns]

  • [dbo].[usrs]

[dbo].[tkns]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:02 den 3 juli 2018

Last Modified

11:57:21 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

tkns_id

int

4

False

1 - 1

000047

tkn_tmls_id

int

4

True

000047

key_blobs_id

int

4

True

000047

orgs_id

int

4

True

tkn_snr

nvarchar(100)

200

True

tkn_seqnr1

nvarchar(100)

200

True

tkn_seqnr2

nvarchar(100)

200

True

tkn_valid_to

datetime

8

True

tkn_valid_from

datetime

8

True

tkn_lbl

nvarchar(100)

200

True

tkn_status

int

4

False

tkn_status_rsn

int

4

False

tkn_adnl_info

nvarchar(max)

max

True

tkn_rec_binary

varbinary(max)

max

True

000047

tkn_prfls_id

int

4

True

tkn_contactless

nvarchar(300)

600

True

tkn_rec_type

int

4

True

tkn_terms_binary

varbinary(max)

max

True

tkn_hist_datetime

datetime

8

True

tkn_hist_type

nvarchar(100)

200

True

Indexes

Key Name Key Columns Unique
000046

PK_tkns_id

tkns_id

True

Foreign Keys

Name Columns

FK_tkns_card_templates_id

tkn_tmls_id→[dbo].[tkn_tmls].[tkn_tmls_id]

FK_tkns_key_blobs_id

key_blobs_id→[dbo].[key_objs].[key_objs_id]

FK_tkns_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

FK_tkns_tkn_prfls_id

tkn_prfls_id→[dbo].[tkn_prfls].[tkn_prfls_id]

SQL Script

CREATE TABLE [dbo].[tkns]
(
[tkns_id] [int] NOT NULL IDENTITY(1, 1),
[tkn_tmls_id] [int] NULL,
[key_blobs_id] [int] NULL,
[orgs_id] [int] NULL,
[tkn_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_seqnr1] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_seqnr2] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_valid_to] [datetime] NULL,
[tkn_valid_from] [datetime] NULL,
[tkn_lbl] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_status] [int] NOT NULL,
[tkn_status_rsn] [int] NOT NULL,
[tkn_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_rec_binary] [varbinary] (max) NULL,
[tkn_prfls_id] [int] NULL,
[tkn_contactless] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[tkn_rec_type] [int] NULL,
[tkn_terms_binary] [varbinary] (max) NULL,
[tkn_hist_datetime] [datetime] NULL,
[tkn_hist_type] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkns] ADD CONSTRAINT [PK_tkns_id] PRIMARY KEY CLUSTERED ([tkns_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tkns] ADD CONSTRAINT [FK_tkns_card_templates_id] FOREIGN KEY ([tkn_tmls_id]) REFERENCES [dbo].[tkn_tmls] ([tkn_tmls_id])
GO
ALTER TABLE [dbo].[tkns] ADD CONSTRAINT [FK_tkns_key_blobs_id] FOREIGN KEY ([key_blobs_id]) REFERENCES [dbo].[key_objs] ([key_objs_id])
GO
ALTER TABLE [dbo].[tkns] ADD CONSTRAINT [FK_tkns_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO
ALTER TABLE [dbo].[tkns] ADD CONSTRAINT [FK_tkns_tkn_prfls_id] FOREIGN KEY ([tkn_prfls_id]) REFERENCES [dbo].[tkn_prfls] ([tkn_prfls_id])
GO

Uses

  • [dbo].[key_objs]

  • [dbo].[orgs]

  • [dbo].[tkn_prfls]

  • [dbo].[tkn_tmls]

Used By

  • [dbo].[crts]

  • [dbo].[key_objs]

  • [dbo].[tkn_usr_relns]

[dbo].[unit_tests]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:26 den 3 juli 2018

Last Modified

11:44:27 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

unit_tests_id

int

4

False

1 - 1

unit_test_char_test

nvarchar(100)

200

True

unit_test_binary_test

varbinary(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_unit_tests_id

unit_tests_id

True

SQL Script

CREATE TABLE [dbo].[unit_tests]
(
[unit_tests_id] [int] NOT NULL IDENTITY(1, 1),
[unit_test_char_test] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[unit_test_binary_test] [varbinary] (max) NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[unit_tests] ADD CONSTRAINT [PK_unit_tests_id] PRIMARY KEY CLUSTERED ([unit_tests_id]) ON [PRIMARY]
GO

[dbo].[usr_appvls]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:57:19 den 3 juli 2018

Last Modified

11:57:20 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

usr_appvls_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

usr_appvl_type

int

4

False

usr_appvl_usr_id

int

4

False

usr_appvl_category_id

int

4

False

usr_appvl_ref_id

nvarchar(100)

200

False

usr_appvl_binary

varbinary(max)

max

False

usr_appvl_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_usr_appvls_id

usr_appvls_id

True

Foreign Keys

Name Columns

FK_usr_appvls_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[usr_appvls]
(
[usr_appvls_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[usr_appvl_type] [int] NOT NULL,
[usr_appvl_usr_id] [int] NOT NULL,
[usr_appvl_category_id] [int] NOT NULL,
[usr_appvl_ref_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL,
[usr_appvl_binary] [varbinary] (max) NOT NULL,
[usr_appvl_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_appvls] ADD CONSTRAINT [PK_usr_appvls_id] PRIMARY KEY CLUSTERED ([usr_appvls_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_appvls] ADD CONSTRAINT [FK_usr_appvls_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[usr_grp_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

11:48:40 den 3 juli 2018

Last Modified

11:48:41 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

usr_grps_id

int

4

True

000047

usrs_id

int

4

True

Foreign Keys

Name Columns

FK_usr_grp_relns_usr_grps_id

usr_grps_id→[dbo].[usr_grps].[usr_grps_id]

FK_usr_grp_relns_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[usr_grp_relns]
(
[usr_grps_id] [int] NULL,
[usrs_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_grp_relns] ADD CONSTRAINT [FK_usr_grp_relns_usr_grps_id] FOREIGN KEY ([usr_grps_id]) REFERENCES [dbo].[usr_grps] ([usr_grps_id])
GO
ALTER TABLE [dbo].[usr_grp_relns] ADD CONSTRAINT [FK_usr_grp_relns_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[usr_grps]

  • [dbo].[usrs]

[dbo].[usr_grp_restr_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

12:00:31 den 3 juli 2018

Last Modified

12:00:31 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

orgs_id

int

4

True

usr_grp_restr_grp_id

int

4

False

usr_grp_restr_grp_restr_id

int

4

False

Foreign Keys

Name Columns

FK_usr_grp_restr_relns_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[usr_grp_restr_relns]
(
[orgs_id] [int] NULL,
[usr_grp_restr_grp_id] [int] NOT NULL,
[usr_grp_restr_grp_restr_id] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_grp_restr_relns] ADD CONSTRAINT [FK_usr_grp_restr_relns_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

[dbo].[usr_grps]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:48:39 den 3 juli 2018

Last Modified

11:56:14 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

usr_grps_id

int

4

False

1 - 1

000047

orgs_id

int

4

True

usr_grp_name

nvarchar(300)

600

False

Indexes

Key Name Key Columns Unique
000046

PK_usr_grps_id

usr_grps_id

True

Foreign Keys

Name Columns

FK_usr_grps_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[usr_grps]
(
[usr_grps_id] [int] NOT NULL IDENTITY(1, 1),
[orgs_id] [int] NULL,
[usr_grp_name] [nvarchar] (300) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_grps] ADD CONSTRAINT [PK_usr_grps_id] PRIMARY KEY CLUSTERED ([usr_grps_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_grps] ADD CONSTRAINT [FK_usr_grps_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[orgs]

Used By

  • [dbo].[role_usr_grp_relns]

  • [dbo].[tasks]

  • [dbo].[usr_grp_relns]

[dbo].[usr_imgs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Heap

True

Row Count (~)

0

Created

11:46:44 den 3 juli 2018

Last Modified

11:49:59 den 3 juli 2018

Columns

Name Data Type Max Length (Bytes) Allow Nulls Default

usr_img_id

nvarchar(100)

200

True

usr_img_binary

varbinary(max)

max

False

usr_img_datetime

datetime

8

False

usr_img_type_id

int

4

False

10

SQL Script

CREATE TABLE [dbo].[usr_imgs]
(
[usr_img_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_img_binary] [varbinary] (max) NOT NULL,
[usr_img_datetime] [datetime] NOT NULL,
[usr_img_type_id] [int] NOT NULL CONSTRAINT [DF__usr_imgs__usr_im__3EA749C6] DEFAULT ((10))
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO

[dbo].[usr_ofcs_relns]

Properties

Property Value

Heap

True

Row Count (~)

0

Created

14:30:12 den 12 april 2019

Last Modified

14:33:14 den 12 april 2019

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls
000047

usrs_id

int

4

True

000047

ofcs_id

int

4

True

Foreign Keys

Name Columns

FK_usr_ofcs_relns_ofcs_id

ofcs_id→[dbo].[ofcs].[ofcs_id]

FK_usr_ofcs_relns_usrs_id

usrs_id→[dbo].[usrs].[usrs_id]

SQL Script

CREATE TABLE [dbo].[usr_ofcs_relns]
(
[usrs_id] [int] NULL,
[ofcs_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usr_ofcs_relns] ADD CONSTRAINT [FK_usr_ofcs_relns_ofcs_id] FOREIGN KEY ([ofcs_id]) REFERENCES [dbo].[ofcs] ([ofcs_id])
GO
ALTER TABLE [dbo].[usr_ofcs_relns] ADD CONSTRAINT [FK_usr_ofcs_relns_usrs_id] FOREIGN KEY ([usrs_id]) REFERENCES [dbo].[usrs] ([usrs_id])
GO

Uses

  • [dbo].[ofcs]

  • [dbo].[usrs]

[dbo].[usrs]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

0

Created

11:44:04 den 3 juli 2018

Last Modified

11:57:15 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity Default
000046

usrs_id

int

4

False

1 - 1

usr_disp_name

nvarchar(200)

400

True

usr_uniq_name

nvarchar(500)

1000

True

usr_gn

nvarchar(200)

400

True

usr_sn

nvarchar(200)

400

True

000047

usr_cm_soc_sec_nrs_id

int

4

True

usr_snr

nvarchar(100)

200

True

000047

orgs_id

int

4

True

usr_img_id

nvarchar(100)

200

True

usr_fn

nvarchar(200)

400

True

usr_mn

nvarchar(200)

400

True

usr_dir_id

nvarchar(100)

200

False

('')

usr_dir_type

int

4

False

1

usr_empl_type

int

4

False

0

usr_empl_enddate

datetime

8

True

usr_mail_addr

nvarchar(200)

400

False

('')

usr_mobile_nr

nvarchar(100)

200

False

('')

usr_flags

nvarchar(50)

100

False

('0x0000')

000047

org_ofc_addrs_id

int

4

True

usr_sign_img_id

nvarchar(100)

200

True

ref_id

int

4

True

usr_adnl_info

nvarchar(max)

max

True

Indexes

Key Name Key Columns Unique
000046

PK_usrs_id

usrs_id

True

Foreign Keys

Name Columns

FK_usrs_cm_soc_sec_nrs_id

usr_cm_soc_sec_nrs_id→[dbo].[cm_soc_sec_nrs].[cm_soc_sec_nrs_id]

FK_usrs_org_ofc_addrs_id

org_ofc_addrs_id→[dbo].[org_ofc_addrs].[org_ofc_addrs_id]

FK_usrs_orgs_id

orgs_id→[dbo].[orgs].[orgs_id]

SQL Script

CREATE TABLE [dbo].[usrs]
(
[usrs_id] [int] NOT NULL IDENTITY(1, 1),
[usr_disp_name] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_uniq_name] [nvarchar] (500) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_gn] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_sn] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_cm_soc_sec_nrs_id] [int] NULL,
[usr_snr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[orgs_id] [int] NULL,
[usr_img_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_fn] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_mn] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[usr_dir_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_usrs_usr_dir_id] DEFAULT (''),
[usr_dir_type] [int] NOT NULL CONSTRAINT [DF_usrs_usr_dir_type] DEFAULT ((1)),
[usr_empl_type] [int] NOT NULL CONSTRAINT [DF_usrs_usr_empl_type] DEFAULT ((0)),
[usr_empl_enddate] [datetime] NULL,
[usr_mail_addr] [nvarchar] (200) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_usrs_usr_mail_addr] DEFAULT (''),
[usr_mobile_nr] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_usrs_usr_mobile_nr] DEFAULT (''),
[usr_flags] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NOT NULL CONSTRAINT [DF_usrs_usr_flags] DEFAULT ('0x0000'),
[org_ofc_addrs_id] [int] NULL,
[usr_sign_img_id] [nvarchar] (100) COLLATE Finnish_­Swedish_­CI_­AS NULL,
[ref_id] [int] NULL,
[usr_adnl_info] [nvarchar] (max) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY] TEXTIMAGE_­ON [PRIMARY]
GO
ALTER TABLE [dbo].[usrs] ADD CONSTRAINT [PK_usrs_id] PRIMARY KEY CLUSTERED ([usrs_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usrs] ADD CONSTRAINT [FK_usrs_cm_soc_sec_nrs_id] FOREIGN KEY ([usr_cm_soc_sec_nrs_id]) REFERENCES [dbo].[cm_soc_sec_nrs] ([cm_soc_sec_nrs_id])
GO
ALTER TABLE [dbo].[usrs] ADD CONSTRAINT [FK_usrs_org_ofc_addrs_id] FOREIGN KEY ([org_ofc_addrs_id]) REFERENCES [dbo].[org_ofc_addrs] ([org_ofc_addrs_id])
GO
ALTER TABLE [dbo].[usrs] ADD CONSTRAINT [FK_usrs_orgs_id] FOREIGN KEY ([orgs_id]) REFERENCES [dbo].[orgs] ([orgs_id])
GO

Uses

  • [dbo].[cm_soc_sec_nrs]

  • [dbo].[org_ofc_addrs]

  • [dbo].[orgs]

Used By

  • [dbo].[acquis_usr_relns]

  • [dbo].[act_usrs]

  • [dbo].[crts]

  • [dbo].[hist_tkns]

  • [dbo].[tasks]

  • [dbo].[tkn_usr_relns]

  • [dbo].[usr_grp_relns]

  • [dbo].[usr_org_ofc_addrs_relns]

[dbo].[version]

Properties

Property Value

Collation

Finnish_­Swedish_­CI_­AS

Row Count (~)

1

Created

11:43:46 den 3 juli 2018

Last Modified

11:43:46 den 3 juli 2018

Columns

Key Name Data Type Max Length (Bytes) Allow Nulls Identity
000046

version_id

int

4

False

1 - 1

version

nvarchar(50)

100

True

Indexes

Key Name Key Columns Unique
000046

PK_version_id

version_id

True

SQL Script

CREATE TABLE [dbo].[version]
(
[version_id] [int] NOT NULL IDENTITY(1, 1),
[version] [nvarchar] (50) COLLATE Finnish_­Swedish_­CI_­AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[version] ADD CONSTRAINT [PK_version_id] PRIMARY KEY CLUSTERED ([version_id]) ON [PRIMARY]
GO