-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.sql
More file actions
35 lines (29 loc) · 981 Bytes
/
schema.sql
File metadata and controls
35 lines (29 loc) · 981 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
create database if not exists store;
-- create table if not exists products (
-- productId varchar(255) primary key,
-- productName varchar(255) not null,
-- productQty int default 0
-- );
-- create table if not exists customer (
-- id varchar(255) primary key,
-- username varchar(255) unique not null,
-- email varchar(255) unique not null,
-- password varchar(255) not null
-- );
-- create table if not exists users (
-- id int primary key,
-- name varchar(40),
-- email varchar(60),
-- phoneNo int unsigned,
-- city varchar(30),
-- state varchar(30)
-- );
-- alter table users modify email varchar(255) not null;
-- alter table users modify phoneNo int unsigned not null;
-- create an another table and insert values in bulk using @faker-js/faker package
create table if not exists user2 (
id varchar(255) primary key,
username varchar(70) not null,
email varchar(120) not null,
password varchar(120)
);