Guest User

Untitled

a guest
May 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. create table employees (
  2. employee_id int(11) not null auto_increment primary key ,
  3. department_id int(11) not null default 0 ,
  4. role_id int(11) not null default 0 ,
  5. manager_p tinyint(1) not null default 0 ,
  6. name varchar(100) not null default '' ,
  7.  
  8. -- rest of fields here
  9. --
  10. --
  11.  
  12. index (department_id),
  13. index (role_id)
  14. );
  15.  
  16. create table departments (
  17. department_id int(11) not null auto_increment primary key ,
  18. name varchar(100) not null default 'warehouse'
  19.  
  20. -- rest of fields here
  21. --
  22. --
  23.  
  24. );
  25.  
  26. create table roles (
  27. role_id int(11) not null auto_increment primary key ,
  28. name varchar(100) not null default ''
  29.  
  30. -- rest of fields here
  31. --
  32. --
  33. );
Add Comment
Please, Sign In to add comment