jde-server/migrations/initial.sql

21 lines
424 B
MySQL
Raw Permalink Normal View History

2023-11-13 07:38:01 +03:00
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;