From 791bd6368f24ba5670147fcb15d18843ee63beb6 Mon Sep 17 00:00:00 2001 From: VuVanHoc Date: Sun, 19 May 2019 15:32:04 +0700 Subject: [PATCH 1/3] Add file customer.sql.md --- 17020780_vu_van_hoc/mywallet/customers.sql.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 17020780_vu_van_hoc/mywallet/customers.sql.md diff --git a/17020780_vu_van_hoc/mywallet/customers.sql.md b/17020780_vu_van_hoc/mywallet/customers.sql.md new file mode 100644 index 0000000..904418d --- /dev/null +++ b/17020780_vu_van_hoc/mywallet/customers.sql.md @@ -0,0 +1,18 @@ +create database if not exists `my_wallet_systems`; +use `my_wallet_systems`; + +drop table if exists `customers`; +create table `customers` ( + `id` int(11) auto_increment, + `name` varchar(100) not null, + `email` varchar(100) not null, + `phone` varchar(50) not null, + `balance` double not null, + `created_date` datetime not null, + `updated_date` datetime, + primary key (`id`) +)ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- insert into `customers`(`name`, `email`, `phone`, `balance`, `created_date`) values +-- ("Vũ Văn Học", "hocvanvu1999@gmail.com", "0343847478", 1000000, "2019-05-19"), +-- ("Nguyen Van An", "hocvanvu1999@gmail.com", "0963245801", 500000, "2019-05-19"); \ No newline at end of file From 39b6ffc5241ce928676d4f4a2e1e30398b4a6c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=E1=BB=8Dc=20V=C5=A9=20V=C4=83n?= Date: Mon, 10 Jun 2019 22:36:58 +0700 Subject: [PATCH 2/3] Add file customer.sql.md --- 17020780_vu_van_hoc/mywallet/customer.sql.md | 64 ++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 17020780_vu_van_hoc/mywallet/customer.sql.md diff --git a/17020780_vu_van_hoc/mywallet/customer.sql.md b/17020780_vu_van_hoc/mywallet/customer.sql.md new file mode 100644 index 0000000..c891354 --- /dev/null +++ b/17020780_vu_van_hoc/mywallet/customer.sql.md @@ -0,0 +1,64 @@ +-- phpMyAdmin SQL Dump +-- version 4.8.5 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Jun 10, 2019 at 05:33 PM +-- Server version: 10.1.38-MariaDB +-- PHP Version: 7.3.2 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `my_walllet_systems` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `customer` +-- + +CREATE TABLE `customer` ( + `cus_id` int(11) NOT NULL, + `cus_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `cus_email` varchar(100) NOT NULL, + `cus_phone` varchar(50) NOT NULL, + `cus_balance` double UNSIGNED NOT NULL, + `cus_created_date` datetime NOT NULL, + `cus_updated_date` datetime DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `customer` +-- +ALTER TABLE `customer` + ADD PRIMARY KEY (`cus_id`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `customer` +-- +ALTER TABLE `customer` + MODIFY `cus_id` int(11) NOT NULL AUTO_INCREMENT; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; From 3c774580d356adf4e965f67e240147ac98d5ada1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=E1=BB=8Dc=20V=C5=A9=20V=C4=83n?= Date: Mon, 10 Jun 2019 22:45:07 +0700 Subject: [PATCH 3/3] Add file customer.sql --- 17020780_vu_van_hoc/mywallet/customers.sql.md | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 17020780_vu_van_hoc/mywallet/customers.sql.md diff --git a/17020780_vu_van_hoc/mywallet/customers.sql.md b/17020780_vu_van_hoc/mywallet/customers.sql.md deleted file mode 100644 index 904418d..0000000 --- a/17020780_vu_van_hoc/mywallet/customers.sql.md +++ /dev/null @@ -1,18 +0,0 @@ -create database if not exists `my_wallet_systems`; -use `my_wallet_systems`; - -drop table if exists `customers`; -create table `customers` ( - `id` int(11) auto_increment, - `name` varchar(100) not null, - `email` varchar(100) not null, - `phone` varchar(50) not null, - `balance` double not null, - `created_date` datetime not null, - `updated_date` datetime, - primary key (`id`) -)ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- insert into `customers`(`name`, `email`, `phone`, `balance`, `created_date`) values --- ("Vũ Văn Học", "hocvanvu1999@gmail.com", "0343847478", 1000000, "2019-05-19"), --- ("Nguyen Van An", "hocvanvu1999@gmail.com", "0963245801", 500000, "2019-05-19"); \ No newline at end of file