#60 H2 + Oracle的实际开发场景

This commit is contained in:
Calvin
2012-09-08 02:04:52 +08:00
parent cc8bc978f4
commit e6d1dd2764
3 changed files with 48 additions and 1 deletions
@@ -0,0 +1,24 @@
drop table if exists ss_task;
drop table if exists ss_user;
create table ss_task (
id bigint,
title varchar(128) not null,
description varchar(255),
user_id bigint,
primary key (id)
);
create table ss_user (
id bigint,
login_name varchar(64) not null unique,
name varchar(64),
password varchar(255),
salt varchar(64),
roles varchar(255),
primary key (id)
);
create sequence ss_seq_task start with 100 increment by 20;
create sequence ss_seq_user start with 100 increment by 20;
@@ -1,4 +1,3 @@
drop table if exists ss_task;
drop table if exists ss_user;
@@ -0,0 +1,24 @@
drop table ss_task;
drop table ss_user;
create table ss_task (
id number(19,0),
title varchar2(128) not null,
description varchar2(255),
user_id bigint,
primary key (id)
);
create table ss_user (
id number(19,0),
login_name varchar2(64) not null unique,
name varchar2(64),
password varchar2(255),
salt varchar2(64),
roles varchar2(255),
primary key (id)
);
create sequence ss_seq_task start with 100 increment by 20;
create sequence ss_seq_user start with 100 increment by 20;