-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOS_3A2.sql
More file actions
37 lines (32 loc) · 985 Bytes
/
OS_3A2.sql
File metadata and controls
37 lines (32 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
create database OS_3A2;
use OS_3A2;
create table usuario (
ID int unsigned auto_increment not null primary key,
nome varchar(80) default null,
email varchar(80) default null,
senha varchar(50) default null,
telefone varchar(18) default null,
setor int default null
);
create table setor (
id int unsigned auto_increment not null primary key,
descricao varchar(100) default null
);
create table tecnico (
id int unsigned auto_increment not null primary key,
nome varchar(80) default null,
email varchar(80) default null,
senha varchar(50) default null,
especialidade int default null
);
create table especialidade (
id int unsigned auto_increment not null primary key,
descricao varchar(100) default null
);
create table OS(
id int unsigned auto_increment not null primary key,
descricao varchar(100) default null,
status_os varchar(250) default null,
tecnico int null default null,
usuario int null default null
);