码迷,mamicode.com
首页 > 数据库 > 详细

DBS:TestSys

时间:2018-08-15 20:38:21      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:inf   home   hit   table   databases   rop   font   ima   name   

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 = NTestSys
)
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.返回顶部
 
技术分享图片 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

DBS:TestSys

标签:inf   home   hit   table   databases   rop   font   ima   name   

原文地址:https://www.cnblogs.com/ylbtech/p/9483557.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!