21 lines
424 B
MySQL
21 lines
424 B
MySQL
|
BEGIN;
|
||
|
create database if not exists jde;
|
||
|
use jde;
|
||
|
|
||
|
|
||
|
create table if not exists profile (
|
||
|
id int8 primary key auto_increment,
|
||
|
full_name varchar(64),
|
||
|
phone varchar(30),
|
||
|
email varchar(64)
|
||
|
);
|
||
|
|
||
|
create table if not exists office (
|
||
|
code int8 primary key auto_increment,
|
||
|
features text,
|
||
|
contact_person_id int8 references profile(id),
|
||
|
person_count int8 default 0,
|
||
|
rating int8 default 0
|
||
|
);
|
||
|
|
||
|
COMMIT;
|