FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SMS_Application_UsingPython/schema.sql at main · KushanNalinka/SMS_Application_UsingPython · GitHub
KushanNalinka
/
SMS_Application_UsingPython
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SMS_Application_UsingPython
/
schema.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (24 loc) · 859 Bytes
Breadcrumbs
SMS_Application_UsingPython
/
schema.sql
Copy path
File metadata and controls
28 lines (24 loc) · 859 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
CREATE
DATABASE
IF
NOT EXISTS sms_receiving;
USE sms_receiving;
CREATE
TABLE
IF
NOT EXISTS sms_messages (
id
INT
AUTO_INCREMENT
PRIMARY KEY
,
mobile
VARCHAR
(
20
)
NOT NULL
,
message_body
VARCHAR
(
255
)
NOT NULL
,
status
VARCHAR
(
50
) DEFAULT
'
PENDING
'
,
created_at DATETIME DEFAULT
CURRENT_TIMESTAMP
,
updated_at DATETIME DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
);
--
Sample data
INSERT INTO
sms_messages (mobile, message_body, status)
VALUES
(
'
94771234567
'
,
'
Your OTP is 123456.
'
,
'
PENDING
'
),
(
'
94711234567
'
,
'
Your balance is Rs.5000
'
,
'
PENDING
'
);
CREATE
DATABASE
IF
NOT EXISTS sms_gateway;
USE sms_gateway;
CREATE
TABLE
IF
NOT EXISTS sms_delivery_log (
id
INT
AUTO_INCREMENT
PRIMARY KEY
,
message_id
INT
,
telco_partner
VARCHAR
(
50
),
reference_number
VARCHAR
(
50
),
status
VARCHAR
(
50
),
created_at DATETIME DEFAULT
CURRENT_TIMESTAMP
);
Back
|
FazBrowse Home
|
New Git URL