DBS:TestSys

时间:2023-03-08 20:21:06
ylbtech-DBS:TestSys
1.返回顶部
1、
-- =============================================
-- 测试系统
-- 2018-4-12
-- =============================================
USE master
GO -- Drop the database if it already exists
IF EXISTS (
SELECT name
FROM sys.databases
WHERE name = N'TestSys'
)
DROP DATABASE TestSys
GO CREATE DATABASE TestSys
GO
use TestSys
go
-- 资源表
create table Src
(
Id int primary key identity(10001,1), --编号【ID,PK】
Name varchar(200), --系统名称
Intro text, --系统介绍
Content1 text, --测试内容
Content2 text, --原型内容
)
-- 账户表
create table Account
(
Id int primary key identity(10001,1), --编号【ID,PK】
Name varchar(200) unique, --用户名【UQ】
Pwd varchar(200), --密码
IsDisabled bit --是否禁用
)
-- 账户资源表(权限表)
create table AccountSrc
(
Id int primary key identity(10001,1), --编号【ID,PK】
AccountId int, --账户Id
SrcId int, --资源Id
)
2、
2.返回顶部
3.返回顶部
4.返回顶部
5.返回顶部
6.返回顶部
DBS:TestSys 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。