File: tables.sql

package info (click to toggle)
mono-tools 2.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,524 kB
  • ctags: 15,712
  • sloc: cs: 85,697; sh: 3,622; makefile: 1,662; xml: 112; sql: 18
file content (21 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use monodoc;
drop table person;
drop table status;
create table person (
	name varchar (80) not null,
	password varchar (20) not null,
	person_id int not null primary key auto_increment,
	last_serial int not null,
	last_update int not null,
	is_admin int not null
);

create table status (
	person_id int not null,
	serial int not null,
	status int not null
);

insert into person (name, password, last_serial, is_admin) values ('miguel@ximian.com', 'login1', 0, 1);
insert into person (name, password, last_serial) values ('nat@nat.org', 'login2', 0);