Sunday, April 3, 2022

Host web to Github with Cpanel

 Host web to Github with Cpanel


                                            

Deploy individual files

The following .cpanel.yml file deploys the index.html and style.css files to the example account’s public_html directory:


  • Line 1 is the beginning of a YAML file.
  • Lines 2 and 3 add the deployment and tasks keys, respectively.
  • Lines 4 through 6 specify an array of BASH commands to run during deployment. You can add as many commands to this array as you wish.
---
deployment:
  tasks:
    - export DEPLOYPATH=/home/user/public_html/
    - /bin/cp index.html $DEPLOYPATH
    - /bin/cp style.css $DEPLOYPATH                                                                                                

Friday, March 25, 2022

Package Useful - Laravel

 


Package Laravelauthentication Log :-
https://github.com/rappasoft/laravel-authentication-log

Laravel Attribute Observer :-
https://github.com/alexstewartja/laravel-attribute-observer

Laravel Show SQL :-
https://github.com/dietercoopman/laravel-showsql

Bbiefy API Response :-
https://github.com/obiefy/api-response
https://laravel-tricks.com/tricks/api-response

Livewire Calendar :-
https://github.com/asantibanez/livewire-calendar
https://fullcalendar.io/
https://laravel-news.com/laravel-livewire-calendar

Eloquent Eager Limit :-
https://github.com/staudenmeir/eloquent-eager-limit

Laravel Frontend Presets :-
https://github.com/laravel-frontend-presets
laravel ui + livewire + alpine
https://github.com/laravel-frontend-presets/tall

Custom Admin Panels :-
https://lean-admin.dev/

Laravel Eloquent Limit Eager Loading Data :-
https://www.codecheef.org/article/laravel-eloquent-limit-eager-loading-data-example

NEW: Laravel Breeze with API and Next.js :-
https://laravel.com/docs/8.x/starter-kits#breeze-and-next
https://github.com/laravel/breeze-next
https://nextjs.org/

Parsley js validations :-
https://parsleyjs.org/
https://www.youtube.com/watch?v=y2jAwPVbyug&list=PLDc9bt_00KcKivT6H-Rsichd4md0X9MjE&index=21

Laravel Chatify munafio package :-
https://www.youtube.com/watch?v=mxGVjq8c3u4&list=PLDc9bt_00KcKivT6H-Rsichd4md0X9MjE&index=5
https://github.com/munafio/chatify
https://chatify.munafio.com/installation
https://github.com/MarcosGad/chatify-munafio-package-laravel-8

Validate ZIP Code in Laravel :-
https://minuteoflaravel.com/validation/how-to-validate-zip-code-in-laravel/

icalendar Generator :-
https://github.com/spatie/icalendar-generator
https://packagist.org/packages/spatie/icalendar-generator
https://dev.to/arxeiss/adding-events-to-calendar-automatically-from-email-1h0a

FREE Livewire Components :-
Livewire Official Plugins: https://github.com/orgs/livewire/repositories
Filament Admin: https://filamentadmin.com/
Wire Elements / Modal: https://github.com/wire-elements/modal
Wire Elements / Spotlight: https://github.com/wire-elements/spotlight
Asantibanez / livewire-calendar: https://github.com/asantibanez/livewire-calendar
Asantibanez / livewire-charts: https://github.com/asantibanez/livewire-charts
Asantibanez / livewire-select: https://github.com/asantibanez/livewire-select
Wire UI: https://github.com/wireui/wireui
Livewire Powergrid: https://github.com/Power-Components/livewire-powergrid

Rappasoft / laravel-livewire-tables:
https://github.com/rappasoft/laravel-livewire-tables
https://www.youtube.com/watch?v=-CXyKMkWZl4
Customizable :-
https://www.youtube.com/watch?v=Su21cHTDOKg
https://www.youtube.com/watch?v=52UGsI8gWxs

Mediconesystems / livewire-datatables: https://github.com/mediconesystems/livewire-datatables

Power joins :-
https://github.com/kirschbaum-development/eloquent-power-joins
https://www.youtube.com/watch?v=fc8HK7uIw7Y

Create Database Schema :-
https://dbeaver.io/

Laravel Mailbox :-
https://github.com/beyondcode/laravel-mailbox
https://dev.to/istanbulphp/laravel-incoming-emails-3bo8

Code Generators :-
https://github.com/tailflow/laravel-orion
https://nova.laravel.com/
https://backpackforlaravel.com/
https://voyager.devdojo.com/
https://blueprint.laravelshift.com/
https://github.com/CrestApps/laravel-code-generator

Make Full Page Components in livewire :-
https://laravel-livewire.com/docs/2.x/rendering-components#page-components

Livewire Modal:-
https://github.com/wire-elements/modal
https://www.youtube.com/watch?v=obCvKM7p5ow

PEST :-
https://pestphp.com/
https://nunomaduro.com/using-pest-in-laravel/
https://www.youtube.com/watch?v=iZlZfKS1-K0
https://jayden-chua.medium.com/pest-testing-framework-with-laravel-8-0-ad755a567115

Http Client :-
https://symfony.com/doc/current/http_client.html

Migrator :-
https://github.com/rezaamini-ir/migrator
https://www.youtube.com/watch?v=CQT8xQ3nysY
https://www.youtube.com/watch?v=OnbgQRa27pU

Laravel Health :-
https://github.com/spatie/laravel-health
https://www.youtube.com/watch?v=iXH1RJJ4EUw

Laravel Easypanel :-
https://github.com/rezaamini-ir/laravel-easypanel

Laravel ipinfo :-
https://github.com/ipinfo/laravel

Laravel Seo Manager :-
https://github.com/michael-rubel/laravel-seo-manager

AdminLTE 3 RTL :-
https://github.com/RabeeaAli/AdminLTE-3-RTL

Termwind :-
https://github.com/nunomaduro/termwind
https://www.youtube.com/watch?v=5o37VTcvja8
https://github.com/Laratipsofficial/tips-and-tricks/blob/package/termwind/app/Console/Commands/MilesToKilometers.php
https://github.com/Laratipsofficial/tips-and-tricks/tree/package/termwind/resources/views/termwind

Laravel Monitoring :-
https://github.com/saeedvaziry/laravel-monitoring

Captchavel :-
https://github.com/DarkGhostHunter/Captchavel

Roles and Permissions Package :-
https://roles.ajimoti.com/docs/intro
https://dev.to/ajimoti/simple-roles-and-permissions-package-for-laravel-2lgi

zxcvbn PHP :-
https://github.com/bjeavons/zxcvbn-php

Laravel Backup :-
https://spatie.be/docs/laravel-backup/v7/introduction
https://www.youtube.com/watch?v=2VoekC_RtbE

ajimoti Roles and Permissions :-
https://github.com/ajimoti/roles-and-permissions

Laravel Teamwork :-
https://github.com/mpociot/teamwork
https://github.com/LaravelDaily/Laravel-Teamwork-Example

Tenancy for Laravel :-
https://tenancyforlaravel.com/

Laravel API tool kit :-
https://github.com/ahmedesa/laravel-api-tool-kit

Youtube Frame Generator :-
https://github.com/Syrian-Open-Source/laravel-youtube-iframe-generator

Media Upload :-
https://github.com/s1modev/media-upload

GetCandy 2 Laravel E-Commerce :-
https://getcandy.io/

Laravel Geographical Calculator :-
https://github.com/karam-mustafa/laravel-geographical-calculator?ref=laravelnews
https://laravel-news.com/laravel-geographical-calculator

Regex Helpers :-
https://github.com/hotmeteor/regex
https://laravel-news.com/regex-helpers-for-laravel

Google Chat Laravel Notification Channel :-
https://laravel-notification-channels.com/
https://developers.google.com/chat

Laravel Multi-step Forms :-
https://laravel-arcanist.com/
https://laravel-news.com/arcanist

Output With Laravel Dumper :-
https://github.com/glhd/laravel-dumper
https://laravel-news.com/laravel-dumper
https://www.youtube.com/watch?v=MB7HUI93Pbw

Laravel Eloquent Inspector :-
https://github.com/cerbero90/eloquent-inspector
https://laravel-news.com/eloquent-inspector-for-laravel

Laravel Slack Alerts :-
https://github.com/spatie/laravel-slack-alerts

Laravel Flags :-
https://github.com/JustSteveKing/laravel-feature-flags
https://github.com/ylsideas/feature-flags
https://www.youtube.com/watch?v=talhxcERVHM/

Laravel Verify New Email :-
https://github.com/protonemedia/laravel-verify-new-email
https://www.youtube.com/watch?v=ZUW5PftAuuk

Laravel User Activity :-
https://github.com/haruncpi/laravel-user-activity
Image description

Tailwind CSS Laravel :-
https://github.com/tonysm/tailwindcss-laravel

Meta Tags Laravel:-
https://github.com/butschster/LaravelMetaTags

(Toastr - SweetAlert) Livewire Notifications :-
https://www.itsolutionstuff.com/post/laravel-livewire-toastr-notifications-exampleexample.html
https://www.itsolutionstuff.com/post/laravel-livewire-sweetalert-exampleexample.html
https://www.youtube.com/watch?v=_AylBXWaTMQ

Type Safe Laravel :-
https://github.com/ash-jc-allen/type-safe

Statistics PHP package :-
https://github.com/Hi-Folks/statistics
https://laravel-news.com/php-statistics

Laravel Blanket (Dashboard to view your http client requests) :-
https://github.com/AhmadWaleed/laravel-blanket
https://www.youtube.com/watch?v=iQhVBhjf6-Y

Laravel Auto Routes :-
https://github.com/izniburak/laravel-auto-routes

Laravel Collections :-
https://packagist.org/packages/illuminate/collections
https://laravel.com/docs/9.x/collections#available-methods
https://dev.to/robertobutti/using-collections-package-outside-of-laravel-1alk

Laravel Cypress :-
https://github.com/laracasts/cypress
https://www.youtube.com/watch?v=Td8o2LA9gI0

Laravel Digest :-
https://github.com/hmones/laravel-digest

Laravel Recaptcha :-
https://github.com/LaravelDaily/laravel-recaptcha
https://github.com/LaravelDaily/laravel-recaptcha/commit/8ede616706eed5072e6bf9e628634a44220eceb8
https://github.com/LaravelDaily/laravel-recaptcha/commit/ff7e46398217b331ae8ae3b23a55a84bf6bcdfe4
https://www.youtube.com/watch?v=F5V8908k7rU

Laravel Route Discovery :-
https://github.com/spatie/laravel-route-discovery

Laravel Arabic Numbers :-
https://github.com/alkoumi/laravel-arabic-numbers

ZSH Artisan :- (help you to run artisan from anywhere in the project tree)
https://github.com/jessarcher/zsh-artisan

Enum Helpers for PHP :-
https://laravel-news.com/enum-helpers-for-php
https://github.com/archtechx/enums
https://www.php.net/manual/en/language.types.enumerations.php

Laravel Migrations Generator :-
https://github.com/kitloong/laravel-migrations-generator

Laravel Medialibrary :-
https://spatie.be/docs/laravel-medialibrary/v10/introduction

Laravel fluently interacting with Telegram Bots :-
https://github.com/def-studio/telegraph

keep your .env.example file up to date automatically :-
https://github.com/worksome/envy

Laravel Monolog Kinesis Driver :-
https://github.com/pod-point/laravel-monolog-kinesis

Laravel Settings Package :-
https://github.com/yazan-alnugnugh/laravel-settings

Enable ray(), dd() and dump() in all PHP files on your system :-
https://github.com/spatie/global-ray
https://laravel-news.com/global-ray

Laravel Livewire component for multi steps form :-
https://github.com/vildanbina/livewire-wizard/
https://www.youtube.com/watch?v=1j36z_MZsUg
https://github.com/LaravelDaily/Livewire-Wizard-Demo

Blade Cache Directive :-
https://github.com/ryangjchandler/blade-cache-directive

Implement a custom driver for Laravel Socialite :-
https://laravel-news.com/laravel-socialite-custom-driver

Useful Laravel Collection Macros :-
https://github.com/spatie/laravel-collection-macros

Laravel IDE Helper Generator :-
https://github.com/barryvdh/laravel-ide-helper
https://www.youtube.com/watch?v=WzEqkDfKKr4

Laravel ez Math :-
https://github.com/collab-corp/ez-math

NexoPOS is an Open-Source Point of Sale System (Laravel) :-
https://laravel-news.com/nexopos-point-of-sale-for-laravel
https://my.nexopos.com/en

Detect and Change Indentation With PHP :-
https://github.com/colinodell/indentation

Laravel Vue Pagination :-
https://github.com/gilbitron/laravel-vue-pagination
https://www.youtube.com/watch?v=Ie7zZ4E4u2Y

Laravel translations checker :-
https://github.com/LarsWiegers/laravel-translations-checker

This list is constantly updated.

Saturday, February 26, 2022

React Native Style Component

 React Native Style Component:





Views:

JustifyContent:'center'
alignitems:'center'
flexdirection:'row-reverse'






React Native Research By Salman Ghouri

 React Native Research By Salman Ghouri




  •  States:

import React, {useState} from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';

export default function App() {

  const [name, setName] = useState('salo')
  return (
    <View style={styles.container}>
      <Text>hi my name is {name}</Text>
<Button title='Youtubesa' onPress={()=>{Linking.openURL('https://www.google.com/')} }/>
      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

State Controls

  1: const [name, setName] = useState('salo')
  const [session, setSession]  = useState({number:6,title:'state'})
  const onClickHandler = () => {
    setName('Programming With ali')
    setSession({number:9,title:'hacker'})
  }
  return (
    <View style={styles.container}>
      <Text>{name}</Text>
      <Text>this is my number {session.number} & about is {session.title}</Text>
     <Button title='Update State' onPress={onClickHandler}></Button>
     
    </View>
  );

Style Component:

 body:{
    flex:1,
    backgroundColor:'#fff',
    alignItems:'center',
    justifyContent:'center',
    borderWidth:10,
    borderColor:'red',
    borderRadius:10,

  },
  text:{
    fontStyle:'italic',
    color:'red',
    fontSize:20,
    margin:10,

  }

LInk:https://reactnative.dev/docs/components-and-apis


List, Scrollview & Refresh Control:

import React, { useState } from 'react';
import {
  StyleSheet,
  View,
  Text,
  ScrollView,
  RefreshControl,
} from 'react-native';

const App = () => {

  const [Items, setItems] = useState([
    { key: 1, item: 'Item 1' },
    { key: 2, item: 'Item 2' },
    { key: 3, item: 'Item 3' },
    { key: 4, item: 'Item 4' },
    { key: 5, item: 'Item 5' },
    { key: 6, item: 'Item 6' },
    { key: 7, item: 'Item 7' },
    { key: 8, item: 'Item 8' },
    { key: 44, item: 'Item 9' },
    { key: 68, item: 'Item 27' },
    { key: 0, item: 'Item 78' },
  ]);
  const [Refreshing, setRefreshing] = useState(false);

  const onRefresh = () => {
    setRefreshing(true);
    setItems([...Items, { key: 69, item: 'Item 69' }]);
    setRefreshing(false);
  }

  return (
    <ScrollView
      style={styles.body}
      refreshControl={
        <RefreshControl
          refreshing={Refreshing}
          onRefresh={onRefresh}
          colors={['#ff00ff']}
        />
      }
    >
      {
        Items.map((object) => {
          return (
            <View style={styles.item} key={object.key}>
              <Text style={styles.text}>{object.item}</Text>
            </View>
          )
        })
      }
    </ScrollView>
  );
};

const styles = StyleSheet.create({
  body: {
    flex: 1,
    flexDirection: 'column',
    backgroundColor: '#ffffff',
  },
  item: {
    margin: 10,
    backgroundColor: '#4ae1fa',
    justifyContent: 'center',
    alignItems: 'center',
  },
  text: {
    color: '#000000',
    fontSize: 45,
    fontStyle: 'italic',
    margin: 10,
  },
});

export default App;

Flarlist & SectionList with Nested Array

import React, { useState } from 'react';
import {
  StyleSheet,
  View,
  Text,
  ScrollView,
  RefreshControl,
  FlatList,
  SectionList,
} from 'react-native';

const App = () => {

  const [Items, setItems] = useState([
    { name: 'Item 1' },
    { name: 'Item 2' },
    { name: 'Item 3' },
    { name: 'Item 4' },
    { name: 'Item 5' },
    { name: 'Item 6' },
    { name: 'Item 7' },
    { name: 'Item 8' },
    { name: 'Item 9' },
    { name: 'Item 27' },
    { name: 'Item 78' },
  ]);
  const DATA = [
    {
      title: 'Title 1',
      data: ['Item 1-1', 'Item 1-2', 'Item 1-3'],
    },
    {
      title: 'Title 2',
      data: ['Item 2-1', 'Item 2-2', 'Item 2-3'],
    },
    {
      title: 'Title 3',
      data: ['Item 3-1'],
    },
    {
      title: 'Title 4',
      data: ['Item 4-1', 'Item 4-2'],
    },
  ]
  const [Refreshing, setRefreshing] = useState(false);

  const onRefresh = () => {
    setRefreshing(true);
    setItems([...Items, { name: 'Item 69' }]);
    setRefreshing(false);
  }

  return (
    <SectionList
      keyExtractor={(item, index) => index.toString()}
      sections={DATA}
      renderItem={({ item }) => (
        <Text style={styles.text}>{item}</Text>
      )}
      renderSectionHeader={({section})=>(
        <View style={styles.item}>
          <Text style={styles.text}>{section.title}</Text>
        </View>
      )}
    />
    // <FlatList
    //   keyExtractor={(item, index) => index.toString()}
    //   data={Items}
    //   renderItem={({ item }) => (
    //     <View style={styles.item}>
    //       <Text style={styles.text}>{item.name}</Text>
    //     </View>
    //   )}
    //   refreshControl={
    //     <RefreshControl
    //       refreshing={Refreshing}
    //       onRefresh={onRefresh}
    //       colors={['#ff00ff']}
    //     />
    //   }
    // />

    // <ScrollView
    //   style={styles.body}
    //   refreshControl={
    //     <RefreshControl
    //       refreshing={Refreshing}
    //       onRefresh={onRefresh}
    //       colors={['#ff00ff']}
    //     />
    //   }
    // >
    //   {
    //     Items.map((object) => {
    //       return (
    //         <View style={styles.item} key={object.key}>
    //           <Text style={styles.text}>{object.item}</Text>
    //         </View>
    //       )
    //     })
    //   }
    // </ScrollView>
  );
};

const styles = StyleSheet.create({
  body: {
    flex: 1,
    flexDirection: 'column',
    backgroundColor: '#ffffff',
  },
  item: {
    margin: 10,
    backgroundColor: '#4ae1fa',
    justifyContent: 'center',
    alignItems: 'center',
  },
  text: {
    color: '#000000',
    fontSize: 45,
    fontStyle: 'italic',
    margin: 10,
  },
});

export default App;


Text Input & Keyboard:


Thursday, January 20, 2022

Quiz 2 Solution

 //Q1-

create table Employee(

eid int not null,

primary key (eid),

ename varchar(50),

salary money,

hiredate date,

jobtitle varchar(40),

Departmentno int,

DepartmentLocation varchar(50)

)


insert into Employee values (401,'Azam Mustafa',35000,'2020-01-16','react Developer',4,'karachi'),

(402,'Baseer vodha',25400,'2020-01-16','Java Developer',3,'lahore'),

(403,'Wali Haider',32000,'2020-01-16','pascal Developer',2,'karachi'),

(404,'Tayyab Anwar',12500,'2020-01-16','c# Developer',1,'pindy'),

(405,'Salman Ghouri',31000,'2020-01-16',' mern stack Developer',4,'karachi')


//Q2-


UPDATE Employee SET ename = 'Baseer vohra' WHERE eid = 402

Update tablename set fieldname='change' where samefieldid='fieldid'


//Q4

Delete from Employee WHERE salary>30000


//Q5

A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database.


//Q6

CREATE VIEW EMPLOYEEVIEW AS

SELECT ename,salary,hiredate,jobtitle,DepartmentLocation FROM Employee 

WHERE DepartmentLocation='karachi'


//Q7

SELECT ename,len(ename) AS Ename FROM Employee;



//Q8

SELECT ename,salary+500 As '500+salary' FROM Employee;


//Q9

CREATE TABLE Airreservation  

(  

  AId INT PRIMARY KEY,  

  Passengername VARCHAR(45),  

  ticketno INT,

  seatno INT  

)  


insert into Airreservation values (403,'salman',101,22)

Delete from Airreservation where AId=403

update Airreservation set Passengername='baseer vohra' where AId=401

select * from Airreservation

select * from ARstatus


CREATE TABLE ARstatus 

(    

ARsId int IDENTITY,   

ARstatus text   

)  


create Trigger ARsinsert

ON Airreservation

for insert 

As begin

Declare @id int

select @id=AId from inserted

insert into ARstatus values ('Data Insert Sucessfully in table '+ CAST(@id as varchar(10)))

end


create Trigger ARsUpdate

ON Airreservation

for update 

As begin

Declare @id int

select @id=AId from inserted

insert into ARstatus values ('Data Update Sucessfully in table '+ CAST(@id as varchar(10)))

end



create Trigger ARsDelete

ON Airreservation

for DELETE 

As begin

Declare @id int

select @id=AId from inserted

insert into ARstatus values ('Data Delete Sucessfully in table ')

end


drop Trigger ARsDelete


//Q10

UPDATE Employee SET hiredate = '2020-12-25'


//Q11

SELECT ename,jobtitle,DepartmentLocation,Departmentno FROM Employee 

WHERE DepartmentLocation='lahore'

Thursday, January 13, 2022

quries

 CREATE TABLE `tbl_Appointments`(

`Appiontment_Id` INT AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Appiontment_Id),

`Patient_name` varchar(100) NOT NULL,

    `Patient_cnic` varchar(100) NOT NULL,

     `Patient_gender` varchar(100) NOT NULL,

     `Patient_contact` varchar(100) NOT NULL,

    `Patient_email` varchar(100) NOT NULL,

`Department_id` int NOT NULL,

    `Doctor_id` int NOT NULL,

`Datetime_id` int NOT NULL,

`Patient_message` text NOT NULL,

    `Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL

)

;


CREATE TABLE `tbl_Records_Doctors`(

`Doctor_id` int AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Doctor_id),

`Doctor_name` varchar(200) NOT NULL,

`Designation_id` int NOT NULL,

`Qualification_id` int NOT NULL,

`Department_Id` int NOT NULL,

`Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL,

    FOREIGN KEY (Designation_id) REFERENCES tbl_designation(Designation_id),

    FOREIGN KEY (Qualification_id) REFERENCES tbl_qualification(Qualification_id),

    FOREIGN KEY (Department_Id) REFERENCES tbl_departments(Department_Id)

    

)

;


CREATE TABLE `tbl_Designation`(

`Designation_id` int AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Designation_id),

`Designation_name` varchar(200) NOT NULL,

`Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL

)

;

CREATE TABLE `tbl_Qualification`(

`Qualification_id` int AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Qualification_id),

`Qualification_Disc` varchar(200) NOT NULL,

`Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL

)

;

CREATE TABLE `tbl_Departments`(

`Department_Id` int AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Department_Id),

`Department_name` varchar(200) NOT NULL,

`Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL

)

;


CREATE TABLE `tbl_Datetime`(

`Datetime_id` int AUTO_INCREMENT NOT NULL,

    PRIMARY KEY (Datetime_id),

`Datetime_Disc` varchar(200) NOT NULL,

    `Doctor_id` int NOT NULL,

    `Created_On` datetime  DEFAULT CURRENT_TIMESTAMP NOT NULL,

    `Date_On` date  DEFAULT CURRENT_DATE NOT NULL,

    FOREIGN KEY (Doctor_id) REFERENCES tbl_records_doctors(Doctor_id)

)

;


CREATE VIEW tbl_view_doctors AS

SELECT tbl_records_doctors.Doctor_id,tbl_records_doctors.Doctor_name,tbl_qualification.Qualification_Disc,tbl_designation.Designation_name,tbl_departments.Department_name FROM tbl_records_doctors

INNER JOIN tbl_qualification ON tbl_qualification.Qualification_id=tbl_records_doctors.Qualification_id

INNER JOIN tbl_designation ON tbl_designation.Designation_id=tbl_records_doctors.Designation_id

INNER JOIN tbl_departments ON tbl_departments.Department_Id=tbl_records_doctors.Department_Id



SELECT tbl_appointments.Appiontment_Id,tbl_appointments.Patient_name,tbl_appointments.Patient_cnic,tbl_appointments.Patient_gender,tbl_appointments.Patient_contact,tbl_appointments.Patient_email,tbl_appointments.Patient_message,tbl_departments.Department_name,tbl_records_doctors.Doctor_name,tbl_datetime.Datetime_Disc FROM tbl_appointments  

INNER JOIN tbl_departments ON tbl_departments.Department_Id=tbl_appointments.Department_id

INNER JOIN tbl_records_doctors ON tbl_records_doctors.Doctor_id=tbl_appointments.Doctor_id

INNER JOIN tbl_datetime ON tbl_datetime.Datetime_id=tbl_appointments.Datetime_id


Sunday, September 12, 2021

Flutter Tools & Tech

 Tools:

1-Scaffold

2-stle( stateless wigit)

Contact Form

Name

Email *

Message *

 

© 2020 Mark2code. All rights resevered. Designed by Potfolio | Salman Ghouri

Back To Top