118 lines
2.9 KiB
Transact-SQL
118 lines
2.9 KiB
Transact-SQL
CREATE TABLE hrsa_auth_data
|
|
(
|
|
id bigint primary key,
|
|
role_id bigint NOT NULL,
|
|
link int NOT NULL,
|
|
target_type int NOT NULL,
|
|
target varchar(4000),
|
|
target_name varchar(4000),
|
|
sorted_index int NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10)
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_auth_member
|
|
(
|
|
id bigint primary key,
|
|
role_id bigint NOT NULL,
|
|
target_type int NOT NULL,
|
|
target varchar(4000) NOT NULL,
|
|
target_name varchar(4000) NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10)
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_auth_opt
|
|
(
|
|
id bigint primary key,
|
|
role_id bigint NOT NULL,
|
|
page varchar(200) NOT NULL,
|
|
opt varchar(200) NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10)
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_auth_role
|
|
(
|
|
id bigint primary key,
|
|
tax_agent_id bigint NOT NULL,
|
|
name varchar(255) NOT NULL,
|
|
description varchar(400),
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10) NOT NULL
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_auth_role_data
|
|
(
|
|
id bigint primary key,
|
|
role_id bigint NOT NULL,
|
|
employee_id bigint NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10) NOT NULL
|
|
)
|
|
GO
|
|
|
|
|
|
CREATE TABLE hrsa_auth_role_emp
|
|
(
|
|
id bigint primary key,
|
|
role_id bigint NOT NULL,
|
|
employee_id bigint NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10) NOT NULL
|
|
)
|
|
GO
|
|
|
|
CREATE TABLE hrsa_auth_resource
|
|
(
|
|
id bigint NOT NULL,
|
|
role_id bigint NOT NULL,
|
|
target_type int NOT NULL,
|
|
target bigint NOT NULL,
|
|
target_name varchar(255),
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10)
|
|
)
|
|
GO
|
|
|
|
CREATE TABLE hrsa_sob_tax_link
|
|
(
|
|
id bigint NOT NULL,
|
|
sob_id bigint NOT NULL,
|
|
tax_agent_id bigint NOT NULL,
|
|
creator bigint NOT NULL,
|
|
create_time datetime NOT NULL,
|
|
update_time datetime NOT NULL,
|
|
delete_type int NOT NULL,
|
|
tenant_key varchar(10)
|
|
)
|
|
GO |