hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 98
values | lang
stringclasses 21
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
118
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
sequencelengths 1
10
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
118
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
sequencelengths 1
10
| max_issues_count
int64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
135
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
sequencelengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1
1.03M
| max_line_length
int64 2
1.03M
| alphanum_fraction
float64 0
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2e801702704c3093a19e17defe13f16ea24af20 | 9,049 | py | Python | sisppeo/readers/L8_USGS_L2.py | inrae/SISPPEO | f516bb778b505739fdf320affe651b715ed75324 | [
"Apache-2.0"
] | 5 | 2021-11-05T09:23:13.000Z | 2022-02-18T10:39:13.000Z | sisppeo/readers/L8_USGS_L2.py | inrae/SISPPEO | f516bb778b505739fdf320affe651b715ed75324 | [
"Apache-2.0"
] | null | null | null | sisppeo/readers/L8_USGS_L2.py | inrae/SISPPEO | f516bb778b505739fdf320affe651b715ed75324 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Arthur Coqué, Pôle OFB-INRAE ECLA, UR RECOVER
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""This module contains a reader for L8_USGS_L2C1 products with hdf files.
Typical usage example:
reader = L8USGSL2C1HDFReader(\*\*config)
reader.extract_bands()
reader.create_ds()
extracted_dataset = reader.dataset
"""
import io
import tarfile
from collections import defaultdict
from datetime import datetime
from pathlib import Path
import numpy as np
import rasterio
import xarray as xr
from pyproj import CRS
from rasterio.windows import Window
from tqdm import tqdm
from sisppeo.readers.reader import Reader
from sisppeo.utils.readers import get_ij_bbox, decode_data
def format_zippath(path: Path) -> str:
return f'tar://{str(path.resolve())}!/'
class L8USGSL2Reader(Reader):
"""A reader dedicated to extract data from L8_USGS_L2C1 products (.hdf).
Attributes:
dataset: A dataset containing extracted data.
"""
def extract_bands(self) -> None:
"""See base class."""
# Load data
compressed = False
if self._inputs.input_product.suffix == '.gz': # .tar.gz
compressed = True
root_path = format_zippath(self._inputs.input_product)
with tarfile.open(self._inputs.input_product) as archive:
hdf_path = [_ for _ in archive.getnames()
if _.endswith('.hdf')][0]
with rasterio.Env(RAW_CHECK_FILE_SIZE=False):
dataset = rasterio.open(root_path + hdf_path)
else:
dataset = rasterio.open(
list(self._inputs.input_product.glob('*.hdf'))[0]
)
# Load metadata
metadata = {'tags': dataset.tags()} # useful ?
metadata.update(self._load_metadata_from_MTL(compressed))
# Filter subdatasets
f_subdatasets = [subdataset for subdataset in dataset.subdatasets
if subdataset.rsplit(':', 1)[1][:4] == 'sr_b']
requested_bands = [(subdataset, b) for subdataset in f_subdatasets
if (b := subdataset.rsplit('_', 1)[1].replace(
'band', 'B'))
in self._inputs.requested_bands]
# Extract data
data = {}
for path, band in tqdm(requested_bands, unit='bands'):
with rasterio.open(path) as subdataset:
if self._intermediate_data['x'] is None:
# Store the CRS
self._intermediate_data['crs'] = CRS.from_epsg(
# pylint: disable=no-member
# False positive.
subdataset.crs.to_epsg()
)
band_array, xy_bbox = self._extract_first_band(subdataset)
else:
band_array = _extract_nth_band(subdataset, xy_bbox)
data[band] = band_array.reshape(1, *band_array.shape)
dataset.close()
print('')
# Store outputs
self._intermediate_data['data'] = data
self._intermediate_data['metadata'] = metadata
def create_ds(self) -> None:
"""See base class."""
# Create the dataset
ds = xr.Dataset(
{key: (['time', 'y', 'x'], val) for key, val
in self._intermediate_data['data'].items()},
coords={
'x': ('x', self._intermediate_data['x']),
'y': ('y', self._intermediate_data['y']),
'time': [datetime.fromisoformat(
self._intermediate_data['metadata']['MTL'][
'PRODUCT_METADATA']['DATE_ACQUIRED']
+ 'T'
+ self._intermediate_data['metadata']['MTL'][
'PRODUCT_METADATA']['SCENE_CENTER_TIME'][:-2]
)]
}
)
crs = self._intermediate_data['crs']
# Set up coordinate variables
ds.x.attrs['axis'] = 'X'
ds.x.attrs['long_name'] = f'x-coordinate ({crs.name})'
ds.x.attrs['standard_name'] = 'projection_x_coordinate'
ds.x.attrs['units'] = 'm'
ds.y.attrs['axis'] = 'Y'
ds.y.attrs['long_name'] = f'y-coordinate ({crs.name})'
ds.y.attrs['standard_name'] = 'projection_y_coordinate'
ds.y.attrs['units'] = 'm'
ds.time.attrs['axis'] = 'T'
ds.time.attrs['long_name'] = 'time'
# Set up the 'grid mapping variable'
ds['crs'] = xr.DataArray(name='crs', attrs=crs.to_cf())
# Store metadata
ds['product_metadata'] = xr.DataArray()
for key, val in self._intermediate_data['metadata']['tags'].items():
ds.product_metadata.attrs[key] = val
for key, val in {
f'{key1}:{key2}': val for key1
in self._intermediate_data['metadata']['MTL'] for key2, val
in self._intermediate_data['metadata']['MTL'][key1].items()
}.items():
ds.product_metadata.attrs[key] = val
ds.attrs['data_type'] = 'rho'
self.dataset = ds
# pylint: disable=invalid-name
# MTL is the name given by the USGS to the file containing metadata.
def _load_metadata_from_MTL(self, compressed):
if compressed:
with tarfile.open(self._inputs.input_product) as archive:
path = [_ for _ in archive.getnames()
if _.endswith('MTL.txt')][0]
with io.TextIOWrapper(archive.extractfile(path)) as f:
lines = f.readlines()
else:
path = list(self._inputs.input_product.glob('*MTL.txt'))[0]
with open(path, 'r') as f:
lines = f.readlines()
metadata = defaultdict(dict)
key = None
for line in lines[1:-2]:
line = line.lstrip(' ').rstrip('\n').replace('"', '').split(' = ')
if line[0] == 'GROUP':
metadata['MTL'][line[1]] = {}
key = line[1]
elif line[0] == 'END_GROUP':
continue
else:
metadata['MTL'][key][line[0]] = line[1]
return metadata
def _compute_x_coords(self, x0, x1):
x_start = x0 + 15
x_stop = x1 - 15
self._intermediate_data['x'] = np.arange(x_start, x_stop + 1, 30)
def _compute_y_coords(self, y0, y1):
y_start = y0 - 15
y_stop = y1 + 15
self._intermediate_data['y'] = np.arange(y_start, y_stop - 1, -30)
def _extract_first_band(self, subdataset):
if self._inputs.ROI is not None:
self._reproject_geom()
row_start, col_start, row_stop, col_stop = get_ij_bbox(
subdataset,
self._intermediate_data['geom']
)
arr = subdataset.read(
1,
window=Window.from_slices((row_start, row_stop + 1),
(col_start, col_stop + 1))
)
# Update internal coords
x0, y0 = subdataset.transform * (col_start, row_start)
x1, y1 = subdataset.transform * (col_stop + 1, row_stop + 1)
else:
arr = subdataset.read(1)
# Update internal coords
x0, y0 = subdataset.transform * (0, 0)
x1, y1 = subdataset.transform * (subdataset.width,
subdataset.height)
# Get encoding parameters
scale_factor = float(subdataset.tags()['scale_factor'])
fill_value = float(subdataset.tags()['_FillValue'])
# Decode extracted data
band_array = decode_data(arr, scale_factor, fill_value)
# Compute projected coordinates
self._compute_x_coords(x0, x1)
self._compute_y_coords(y0, y1)
# Update internal coords
x1 -= 1
y1 += 1
return band_array, [x0, y0, x1, y1]
def _extract_nth_band(subdataset, xy_bbox):
x0, y0, x1, y1 = xy_bbox
row_start, col_start = subdataset.index(x0, y0)
row_stop, col_stop = subdataset.index(x1, y1)
arr = subdataset.read(
1,
window=Window.from_slices(
(row_start, row_stop + 1),
(col_start, col_stop + 1)
)
)
# Get encoding parameters
scale_factor = float(subdataset.tags()['scale_factor'])
fill_value = float(subdataset.tags()['_FillValue'])
# Decode extracted data
band_array = decode_data(arr, scale_factor, fill_value)
return band_array
| 37.704167 | 78 | 0.56824 |
e8553139d3e60191008bdecbfc1d729a4df68388 | 2,542 | cs | C# | src/SpriteKit/ObsoleteCompat.cs | akoeplinger/xamarin-macios | 2c3fd9b7813a4a85cf804326074b14fba42c8341 | [
"BSD-3-Clause"
] | 1 | 2020-07-12T15:19:12.000Z | 2020-07-12T15:19:12.000Z | src/SpriteKit/ObsoleteCompat.cs | akoeplinger/xamarin-macios | 2c3fd9b7813a4a85cf804326074b14fba42c8341 | [
"BSD-3-Clause"
] | 1 | 2020-12-03T21:49:24.000Z | 2020-12-03T21:49:48.000Z | src/SpriteKit/ObsoleteCompat.cs | akoeplinger/xamarin-macios | 2c3fd9b7813a4a85cf804326074b14fba42c8341 | [
"BSD-3-Clause"
] | 1 | 2020-03-06T09:44:30.000Z | 2020-03-06T09:44:30.000Z | //
// Compat.cs: Compatibility functions
//
// Authors:
// Miguel de Icaza ([email protected])
//
// Copyright 2013-2014, 2016 Xamarin Inc
using System;
using ObjCRuntime;
using CoreGraphics;
namespace SpriteKit {
#if !XAMCORE_3_0 && !MONOMAC
public partial class SKAction {
[Obsolete ("Use the 'FalloffBy' method.")]
public static SKAction Falloff (float /* float, not CGFloat */ to, double duration)
{
return FalloffBy (to, duration);
}
[Obsolete ("Use the 'TimingFunction2' property.")]
public virtual void SetTimingFunction (SKActionTimingFunction timingFunction)
{
TimingFunction = timingFunction;
}
}
#endif
#if !XAMCORE_2_0 && !MONOMAC
public partial class SKPhysicsBody {
[Obsolete ("Use the 'FromBodies' method instead.")]
public static SKPhysicsBody BodyWithBodies (SKPhysicsBody [] bodies)
{
return FromBodies (bodies);
}
[Obsolete ("Use the 'CreateCircularBody' method instead.")]
public static SKPhysicsBody BodyWithCircleOfRadius (nfloat radius)
{
return CreateCircularBody (radius);
}
[Obsolete ("Use the 'CreateCircularBody' method instead.")]
public static SKPhysicsBody BodyWithCircleOfRadius (nfloat radius, CGPoint center)
{
return CreateCircularBody (radius, center);
}
[Obsolete ("Use the 'CreateRectangularBody' method instead.")]
public static SKPhysicsBody BodyWithRectangleOfSize (CGSize size)
{
return CreateRectangularBody (size);
}
[Obsolete ("Use the 'CreateRectangularBody' method instead.")]
public static SKPhysicsBody BodyWithRectangleOfSize (CGSize size, CGPoint center)
{
return CreateRectangularBody (size, center);
}
[Obsolete ("Use the 'CreateBodyFromPath' method instead.")]
public static SKPhysicsBody BodyWithPolygonFromPath (CGPath path)
{
return CreateBodyFromPath (path);
}
[Obsolete ("Use the 'CreateEdge' method instead.")]
public static SKPhysicsBody BodyWithEdgeFromPoint (CGPoint fromPoint, CGPoint toPoint)
{
return CreateEdge (fromPoint, toPoint);
}
[Obsolete ("Use the 'CreateEdgeChain' method instead.")]
public static SKPhysicsBody BodyWithEdgeChainFromPath (CGPath path)
{
return CreateEdgeChain (path);
}
[Obsolete ("Use the 'CreateEdgeLoop' method instead.")]
public static SKPhysicsBody BodyWithEdgeLoopFromPath (CGPath path)
{
return CreateEdgeLoop (path);
}
[Obsolete ("Use the 'CreateEdgeLoop' method instead.")]
public static SKPhysicsBody BodyWithEdgeLoopFromRect (CGRect rect)
{
return CreateEdgeLoop (rect);
}
}
#endif
}
| 26.206186 | 88 | 0.734068 |
e4114e6828cd5c908d19c053efc2abfc8b761611 | 145 | cs | C# | SUS/SUS.MVCFramework/ViewEngine/IView.cs | StanislavaMiteva/Csharp-Web-Basics_2020_Sep | 42e56cdca735554adf9376c052c47d250d9d21fd | [
"MIT"
] | null | null | null | SUS/SUS.MVCFramework/ViewEngine/IView.cs | StanislavaMiteva/Csharp-Web-Basics_2020_Sep | 42e56cdca735554adf9376c052c47d250d9d21fd | [
"MIT"
] | null | null | null | SUS/SUS.MVCFramework/ViewEngine/IView.cs | StanislavaMiteva/Csharp-Web-Basics_2020_Sep | 42e56cdca735554adf9376c052c47d250d9d21fd | [
"MIT"
] | null | null | null | namespace SUS.MVCFramework.ViewEngine
{
public interface IView
{
string ExecuteTemplate(object viewModel, string user);
}
}
| 18.125 | 62 | 0.689655 |
f4364c7fbbbbfb65ec75db344936cdc6cb59de5b | 358 | ts | TypeScript | src/common/graphql/enums/__test__/graphql-label-types-enum.spec.ts | bujosa/Moss-Green-Nest | ee0e48c04d16e5c894d03fa2441330cd652bf276 | [
"MIT"
] | 1 | 2022-02-14T00:56:33.000Z | 2022-02-14T00:56:33.000Z | src/common/graphql/enums/__test__/graphql-label-types-enum.spec.ts | devsangwoo/BE-nest.js-practice | 64099cadc0763e30f9c5add4d1c7129ca8e6b808 | [
"MIT"
] | 5 | 2022-01-17T04:08:07.000Z | 2022-01-18T07:53:46.000Z | src/common/graphql/enums/__test__/graphql-label-types-enum.spec.ts | devsangwoo/BE-nest.js-practice | 64099cadc0763e30f9c5add4d1c7129ca8e6b808 | [
"MIT"
] | 1 | 2021-06-09T13:12:38.000Z | 2021-06-09T13:12:38.000Z | import { GraphQlFieldNames } from '../graphql-label-types.enum';
describe('Graphql Labels enum', () => {
it('should match the enum values with the given strings', () => {
expect(GraphQlFieldNames.ID_FIELD).toEqual('id');
expect(GraphQlFieldNames.INPUT_FIELD).toEqual('input');
expect(GraphQlFieldNames.EMAIL_FIELD).toEqual('email');
});
});
| 35.8 | 67 | 0.698324 |
beaf021136948fdd5afa115a4babf80aaea0ab7a | 17,887 | rs | Rust | src/event.rs | pthariensflame/conrod | 4683a5f00ba08454dda25127783d1334c06df516 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/event.rs | pthariensflame/conrod | 4683a5f00ba08454dda25127783d1334c06df516 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/event.rs | pthariensflame/conrod | 4683a5f00ba08454dda25127783d1334c06df516 | [
"Apache-2.0",
"MIT"
] | null | null | null | //! Contains all the structs and enums to describe all of the input events that `Widget`s
//! can handle.
//!
//! The core of this module is the `Event` enum, which encapsulates all of those events.
//!
//!
//!
//! The backend for conrod's event system.
//!
//! Conrod's event system looks like this:
//!
//! *RawEvent -> Ui -> UiEvent -> Widget*
//!
//! The **Ui** receives **RawEvent**s such as `Press` and `Release` via the `Ui::handle_event`
//! method. It interprets these **RawEvent**s to create higher-level **UiEvent**s such as
//! `DoubleClick`, `WidgetCapturesKeyboard`, etc. These **UiEvent**s are stored and then fed to
//! each **Widget** when `Ui::set_widgets` is called. At the end of `Ui::set_widgets` the stored
//! **UiEvent**s are flushed ready for the next incoming **RawEvent**s.
//!
//! Conrod uses the `pistoncore-input` crate's `Event` type as the [**RawEvent**
//! type](./type.RawEvent.html). There are a few reasons for this:
//!
//! 1. This `Event` type already provides a number of useful variants of events that we wish to
//! provide and handle within conrod, and we do not yet see any great need to re-write it and
//! duplicate code.
//! 2. The `Event` type is already compatible with all `pistoncore-window` backends including
//! `glfw_window`, `sdl2_window` and `glutin_window`.
//! 3. The `pistoncore-input` crate also provides a `GenericEvent` trait which allows us to easily
//! provide a blanket implementation of `ToRawEvent` for all event types that already implement
//! this trait.
//!
//! Because we use the `pistoncore-input` `Event` type, we also re-export its associated data
//! types (`Button`, `ControllerAxisArgs`, `Key`, etc).
//!
//! The [**ToRawEvent** trait](./trait.ToRawEvent.html) should be implemented for event types that
//! are to be passed to the `Ui::handle_event` method. As mentioned above, a blanket implementation
//! is already provided for all types that implement `pistoncore-input::GenericEvent`, so users of
//! `glfw_window`, `sdl2_window` and `glutin_window` need not concern themselves with this trait.
use input;
use position::{Dimensions, Point, Scalar};
use utils::vec2_sub;
use widget;
use piston_input;
/// The event type that is used by conrod to track inputs from the world. Events yielded by polling
/// window backends should be converted to this type. This can be thought of as the event type
/// which is supplied by the window backend to drive the state of the `Ui` forward.
///
/// This type is solely used within the `Ui::handle_event` method which immediately converts
/// given user events to `RawEvent`s via the [**ToRawEvent** trait](./trait.ToRawEvent.html) bound.
/// The `RawEvent`s are interpreted to create higher level `Event`s (such as DoubleClick,
/// WidgetCapturesKeyboard, etc) which are stored for later processing by `Widget`s, which will
/// occur during the call to `Ui::set_widgets`.
///
/// **Note:** `Raw` events that contain co-ordinates must be oriented with (0, 0) at the middle of
/// the window with the *y* axis pointing upwards (Cartesian co-ordinates). Many windows provide
/// coordinates with the origin in the top left with *y* pointing down, so you might need to
/// translate these co-ordinates when implementing this method. Also be sure to invert the *y* axis
/// of MouseScroll events.
pub type Raw = piston_input::Event<piston_input::Input>;
/// Unfortunately we're unable to access variants of the `Event` enum via the `RawEvent` type
/// alias above, thus we must also re-export `Event` itself so that a user may use it if they
/// require accessing its variants.
pub use piston_input::Event as RawEvent;
#[doc(inline)]
pub use piston_input::{Input, Motion};
/// Enum containing all the events that the `Ui` may provide.
#[derive(Clone, PartialEq, Debug)]
pub enum Event {
/// Represents a raw `input::Input` event.
Raw(Input),
/// Events that have been interpreted from `backend::RawEvent`s by the `Ui`.
///
/// Most events usually
Ui(Ui)
}
/// Represents all events interpreted by the `Ui`.
#[derive(Clone, PartialEq, Debug)]
pub enum Ui {
/// Entered text, along with the widget that was capturing the keyboard at the time.
Text(Option<widget::Index>, Text),
/// Some button was pressed, along with the widget that was capturing the device whose button
/// which was pressed.
Press(Option<widget::Index>, Press),
/// Some button was released, along with the widget that was capturing the device whose button
/// which was released.
Release(Option<widget::Index>, Release),
/// Represents all forms of motion input, alongside with the widget that was capturing the
/// mouse at the time.
Move(Option<widget::Index>, Move),
/// The window's dimensions were resized.
WindowResized(Dimensions),
/// Represents a pointing device being pressed and subsequently released while over the same
/// location.
Click(Option<widget::Index>, Click),
/// Two `Click` events with the same `button` and `xy` occurring within a duration that is less
/// that the `theme.double_click_threshold`.
DoubleClick(Option<widget::Index>, DoubleClick),
/// Represents a pointing device button being pressed and a subsequent movement of the mouse.
Drag(Option<widget::Index>, Drag),
/// A generic scroll event.
///
/// `Scroll` does not necessarily have to get created by a mouse wheel, it could be generated
/// from a keypress, or as a response to handling some other event.
///
/// Received `Scroll` events are first applied to all scrollable widgets under the mouse from
/// top to bottom. The remainder will then be applied to either 1. whatever widget captures the
/// device from which the scroll was emitted or 2. whatever widget was specified.
Scroll(Option<widget::Index>, Scroll),
/// Indicates that the given widget has captured the mouse.
WidgetCapturesMouse(widget::Index),
/// Indicates that the given widget has released the mouse from capturing.
WidgetUncapturesMouse(widget::Index),
/// Indicates that the given widget has captured the keyboard.
WidgetCapturesKeyboard(widget::Index),
/// Indicates that the given widget has released the keyboard from capturing.
WidgetUncapturesKeyboard(widget::Index),
}
/// Events that apply to a specific widget.
///
/// Rather than delivering entire `event::Event`s to the widget (with a lot of redundant
/// information), this `event::Widget` is used as a refined, widget-specific event.
///
/// All `Widget` event co-ordinates will be relative to the centre of the `Widget` to which they
/// are delivered.
#[derive(Clone, PartialEq, Debug)]
pub enum Widget {
/// Entered text.
Text(Text),
/// Represents all forms of motion input.
Move(Move),
/// Some button was pressed.
Press(Press),
/// Some button was released.
Release(Release),
/// Represents a pointing device being pressed and subsequently released while over the same
/// location.
Click(Click),
/// Two `Click` events with the same `button` and `xy` occurring within a duration that is less
/// that the `theme.double_click_threshold`.
DoubleClick(DoubleClick),
/// Represents a pointing device button being pressed and a subsequent movement of the mouse.
Drag(Drag),
/// Represents the amount of scroll that has been applied to this widget.
Scroll(Scroll),
/// The window's dimensions were resized.
WindowResized(Dimensions),
/// The widget has captured the mouse.
CapturesMouse,
/// The widget has released the mouse from capturing.
UncapturesMouse,
/// The widget has captured the keyboard.
CapturesKeyboard,
/// Indicates that the given widget has released the keyboard from capturing.
UncapturesKeyboard,
}
/// Contains all relevant information for a Text event.
#[derive(Clone, PartialEq, Debug)]
pub struct Text {
/// All text that was entered as a part of the event.
pub string: String,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for a Motion event.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Move {
/// The type of `Motion` that occurred.
pub motion: Motion,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// The different kinds of `Button`s that may be `Press`ed or `Release`d.
#[derive(Copy, Clone, PartialEq, Debug)]
pub enum Button {
/// A keyboard button.
Keyboard(input::Key),
/// A mouse button along with the location at which it was `Press`ed/`Release`d.
Mouse(input::MouseButton, Point),
/// A controller button.
Controller(input::ControllerButton),
}
/// Contains all relevant information for a Press event.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Press {
/// The `Button` that was pressed.
pub button: Button,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for the event where a mouse button was pressed.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct MousePress {
/// The mouse button that was pressed.
pub button: input::MouseButton,
/// The location at which the mouse was pressed.
pub xy: Point,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for the event where a keyboard button was pressed.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct KeyPress {
/// The key that was pressed.
pub key: input::Key,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for a Release event.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Release {
/// The `Button` that was released.
pub button: Button,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for the event where a mouse button was released.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct MouseRelease {
/// The mouse button that was released.
pub button: input::MouseButton,
/// The location at which the mouse was released.
pub xy: Point,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all relevant information for the event where a keyboard button was release.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct KeyRelease {
/// The key that was release.
pub key: input::Key,
/// The modifier keys that were down at the time.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all the relevant information for a mouse drag.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Drag {
/// Which mouse button was being held during the drag
pub button: input::MouseButton,
/// The point from which the current series of drag events began.
///
/// This will be the position of the pointing device whenever the dragging press began.
pub origin: Point,
/// The point from which this drag event began.
pub from: Point,
/// The point at which this drag event ended.
pub to: Point,
/// The magnitude of the vector between `from` and `to`.
pub delta_xy: Point,
/// The magnitude of the vector between `origin` and `to`.
pub total_delta_xy: Point,
/// Which modifier keys are being held during the mouse drag.
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all the relevant information for a mouse click.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Click {
/// Which mouse button was clicked
pub button: input::MouseButton,
/// The position at which the mouse was released.
pub xy: Point,
/// Which modifier keys, if any, that were being held down when the user clicked
pub modifiers: input::keyboard::ModifierKey,
}
/// Contains all the relevant information for a double click.
///
/// When handling this event, be sure to check that you are handling the intended `button` too.
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct DoubleClick {
/// Which mouse button was clicked
pub button: input::MouseButton,
/// The position at which the mouse was released.
pub xy: Point,
/// Which modifier keys, if any, that were being held down when the user clicked
pub modifiers: input::keyboard::ModifierKey,
}
/// Holds all the relevant information about a scroll event
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct Scroll {
/// The amount of scroll along the x axis.
pub x: f64,
/// The amount of scroll along the y axis.
pub y: f64,
/// Which modifier keys, if any, that were being held down while the scroll occured
pub modifiers: input::keyboard::ModifierKey,
}
/// Constructor for a new `RawEvent::Render`.
pub fn render(dt_secs: f64, w_px: u32, h_px: u32, dpi: Scalar) -> RawEvent {
RawEvent::Render(input::RenderArgs {
ext_dt: dt_secs,
width: (w_px as Scalar / dpi) as u32,
height: (h_px as Scalar / dpi) as u32,
draw_width: w_px,
draw_height: h_px,
})
}
impl Move {
/// Returns a copy of the `Move` relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Move {
let motion = match self.motion {
Motion::MouseCursor(x, y) => Motion::MouseCursor(x - xy[0], y - xy[1]),
motion => motion,
};
Move {
motion: motion,
..*self
}
}
}
impl Button {
/// Returns a copy of the Button relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Button {
match *self {
Button::Mouse(m_button, self_xy) => Button::Mouse(m_button, vec2_sub(self_xy, xy)),
button => button,
}
}
}
impl Press {
/// Returns a copy of the Press relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Press {
Press {
button: self.button.relative_to(xy),
..*self
}
}
/// If the `Press` event represents the pressing of a mouse button, return `Some`.
pub fn mouse(self) -> Option<MousePress> {
match self.button {
Button::Mouse(button, xy) =>
Some(MousePress {
button: button,
xy: xy,
modifiers: self.modifiers,
}),
_ => None,
}
}
/// If the `Press` event represents the pressing of keyboard button, return `Some`.
pub fn key(self) -> Option<KeyPress> {
match self.button {
Button::Keyboard(key) =>
Some(KeyPress {
key: key,
modifiers: self.modifiers,
}),
_ => None,
}
}
}
impl Release {
/// Returns a copy of the Release relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Release {
Release {
button: self.button.relative_to(xy),
..*self
}
}
/// If the `Release` event represents the releasing of a mouse button, return `Some`.
pub fn mouse(self) -> Option<MouseRelease> {
match self.button {
Button::Mouse(button, xy) =>
Some(MouseRelease {
button: button,
xy: xy,
modifiers: self.modifiers,
}),
_ => None,
}
}
/// If the `Release` event represents the release of keyboard button, return `Some`.
pub fn key(self) -> Option<KeyRelease> {
match self.button {
Button::Keyboard(key) =>
Some(KeyRelease {
key: key,
modifiers: self.modifiers,
}),
_ => None,
}
}
}
impl Click {
/// Returns a copy of the Click relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Click {
Click {
xy: vec2_sub(self.xy, xy),
..*self
}
}
}
impl DoubleClick {
/// Returns a copy of the DoubleClick relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> DoubleClick {
DoubleClick {
xy: vec2_sub(self.xy, xy),
..*self
}
}
}
impl Drag {
/// Returns a copy of the Drag relative to the given `xy`
pub fn relative_to(&self, xy: Point) -> Drag {
Drag{
origin: vec2_sub(self.origin, xy),
from: vec2_sub(self.from, xy),
to: vec2_sub(self.to, xy),
..*self
}
}
}
impl From<Ui> for Event {
fn from(ui: Ui) -> Self {
Event::Ui(ui)
}
}
impl From<Input> for Event {
fn from(input: Input) -> Self {
Event::Raw(input)
}
}
impl From<Text> for Widget {
fn from(text: Text) -> Self {
Widget::Text(text)
}
}
impl From<Move> for Widget {
fn from(move_: Move) -> Self {
Widget::Move(move_)
}
}
impl From<Press> for Widget {
fn from(press: Press) -> Self {
Widget::Press(press)
}
}
impl From<Release> for Widget {
fn from(release: Release) -> Self {
Widget::Release(release)
}
}
impl From<Click> for Widget {
fn from(click: Click) -> Self {
Widget::Click(click)
}
}
impl From<DoubleClick> for Widget {
fn from(double_click: DoubleClick) -> Self {
Widget::DoubleClick(double_click)
}
}
impl From<Scroll> for Widget {
fn from(scroll: Scroll) -> Self {
Widget::Scroll(scroll)
}
}
impl From<Drag> for Widget {
fn from(drag: Drag) -> Self {
Widget::Drag(drag)
}
}
| 35.072549 | 99 | 0.651646 |
b3355945cdd2c18a433821671caac42e3d9f234e | 5,167 | py | Python | tests/markup/test_genshi.py | mkdryden/flatland-fork | 53a992fc059719c87ba702583b32ec674df82528 | [
"MIT"
] | null | null | null | tests/markup/test_genshi.py | mkdryden/flatland-fork | 53a992fc059719c87ba702583b32ec674df82528 | [
"MIT"
] | null | null | null | tests/markup/test_genshi.py | mkdryden/flatland-fork | 53a992fc059719c87ba702583b32ec674df82528 | [
"MIT"
] | null | null | null | from flatland import String
from flatland.out.generic import Markup
from tests._util import assert_raises
from tests.markup._util import render_genshi as render, need
TemplateSyntaxError = None
schema = String.named('element').using(default='val')
@need('genshi')
def setup():
global TemplateSyntaxError
from genshi.template.base import TemplateSyntaxError
def test_version_sensor():
from flatland.out import genshi
template = 'not a Genshi 0.6+ template'
assert_raises(RuntimeError, genshi.setup, template)
def test_bogus_tags():
for snippet in [
'<form:auto-name/>',
'<form:auto-value/>',
'<form:auto-domid/>',
'<form:auto-for/>',
'<form:auto-tabindex/>',
]:
assert_raises(TemplateSyntaxError, render, snippet, 'xml', schema)
def test_bogus_elements():
for snippet in [
'<div form:with="snacks" />',
'<div form:set="snacks" />',
]:
assert_raises(TemplateSyntaxError, render, snippet, 'xml', schema)
def test_directive_ordering():
markup = """\
<form form:bind="form" py:if="True">
<input form:bind="form" py:if="False"/>
<input py:with="foo=form" form:bind="foo" />
</form>
"""
expected = """\
<form name="element">
<input name="element" value="" />
</form>"""
rendered = render(markup, 'xhtml', schema)
assert rendered == expected
def test_attribute_interpolation():
markup = """\
<input form:bind="form" form:auto-domid="${ON}" />
<input form:bind="form" form:auto-domid="o${N}" />
<input type="checkbox" value="${VAL}" form:bind="form" />
<input type="checkbox" value="v${A}l" form:bind="form" />
<input type="checkbox" value="${V}a${L}" form:bind="form" />
"""
expected = """\
<input name="element" value="val" id="f_element" />
<input name="element" value="val" id="f_element" />
<input type="checkbox" value="val" name="element" checked="checked" />
<input type="checkbox" value="val" name="element" checked="checked" />
<input type="checkbox" value="val" name="element" checked="checked" />"""
rendered = render(markup, 'xhtml', schema.from_defaults,
ON='on',
N='n',
VAL=Markup('val'),
V='v',
A='a',
L='l',
)
assert rendered == expected
def test_pruned_tag():
markup = """\
<form:with auto-name="off" py:if="False">xxx</form:with>
"""
expected = ""
rendered = render(markup, 'xhtml', schema)
assert rendered == expected
def test_attributes_preserved():
markup = """\
<div xmlns:xyzzy="yo">
<input xyzzy:blat="pow" class="abc" form:bind="form" />
</div>
"""
expected = """\
<div xmlns:xyzzy="yo">
<input xyzzy:blat="pow" class="abc" name="element" value="" />
</div>"""
rendered = render(markup, 'xhtml', schema)
assert rendered == expected
def test_attribute_removal():
markup = """\
<input type="checkbox" form:bind="form" value="xyzzy" checked="checked" />
"""
expected = """\
<input type="checkbox" value="xyzzy" name="element" />"""
rendered = render(markup, 'xhtml', schema)
assert rendered == expected
def test_stream_preserved():
markup = """\
<py:def function="stream_fn()"><b py:if="1">lumpy.</b></py:def>
<py:def function="flattenable_fn()"><py:if test="1">flat.</py:if></py:def>
<button form:bind="form">
<em>wow!</em> ${1 + 1}
</button>
<button form:bind="form">${stream_fn()}</button>
<button form:bind="form">${flattenable_fn()}</button>
"""
expected = """\
<button name="element" value="">
<em>wow!</em> 2
</button>
<button name="element" value=""><b>lumpy.</b></button>
<button name="element" value="">flat.</button>"""
rendered = render(markup, 'xhtml', schema)
assert rendered == expected
def test_tortured_select():
markup = """\
<select form:bind="form">
<option value="hit"/>
<option value="miss"/>
<option value="hit" form:bind=""/>
<optgroup label="nested">
<option>
h${"i"}t
</option>
<option value="miss"/>
</optgroup>
<optgroup label="nested">
<option value="hit" form:bind=""/>
</optgroup>
<option value="hit" py:if="True">
<option value="hit">
<option value="hit" form:bind="form" py:if="True"/>
</option>
</option>
</select>
"""
expected = """\
<select name="element">
<option value="hit" selected="selected"></option>
<option value="miss"></option>
<option value="hit"></option>
<optgroup label="nested">
<option selected="selected">
hit
</option>
<option value="miss"></option>
</optgroup>
<optgroup label="nested">
<option value="hit"></option>
</optgroup>
<option value="hit" selected="selected">
<option value="hit" selected="selected">
<option value="hit" selected="selected"></option>
</option>
</option>
</select>"""
factory = schema.using(default='hit').from_defaults
rendered = render(markup, 'xhtml', factory)
if rendered != expected:
print("\n" + __name__)
print("Expected:\n" + expected)
print("Got:\n" + rendered)
assert rendered == expected
| 26.772021 | 74 | 0.606348 |
23f63dd504fb7b556fbd53224e786af6991a59a9 | 69 | js | JavaScript | test/index.test.js | jhwen840220/inline-raw-source-plugin | d365814ab92e16a0093d7f853148458498d659be | [
"MIT"
] | null | null | null | test/index.test.js | jhwen840220/inline-raw-source-plugin | d365814ab92e16a0093d7f853148458498d659be | [
"MIT"
] | null | null | null | test/index.test.js | jhwen840220/inline-raw-source-plugin | d365814ab92e16a0093d7f853148458498d659be | [
"MIT"
] | null | null | null | test('Check the result of 5 + ', () => {
expect(5 + 2).toBe(7)
}) | 23 | 40 | 0.492754 |
3ce8feb45fe3b3fd8a0ee6de6bf0ad3ff1b141b0 | 636 | kt | Kotlin | app/src/main/java/com/hadiyarajesh/flowersample/data/database/entity/Quote.kt | kikoso/flower | 17f4f724a8d185ab33cc87998327949fc8e8dc8f | [
"MIT"
] | 1 | 2020-10-17T12:49:41.000Z | 2020-10-17T12:49:41.000Z | app/src/main/java/com/hadiyarajesh/flowersample/data/database/entity/Quote.kt | kikoso/flower | 17f4f724a8d185ab33cc87998327949fc8e8dc8f | [
"MIT"
] | null | null | null | app/src/main/java/com/hadiyarajesh/flowersample/data/database/entity/Quote.kt | kikoso/flower | 17f4f724a8d185ab33cc87998327949fc8e8dc8f | [
"MIT"
] | null | null | null | package com.hadiyarajesh.flowersample.data.database.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
const val ID = 0
@Entity(tableName = "quote")
@JsonClass(generateAdapter = true)
data class Quote(
@ColumnInfo(name = "_internalId")
@Json(name = "_id")
val _internalId: String,
@ColumnInfo(name = "quote_id")
val id: String,
@Json(name = "en")
val title: String,
val author: String
) {
@PrimaryKey(autoGenerate = false)
@ColumnInfo(name = "id")
var primaryId: Int = ID
} | 23.555556 | 58 | 0.707547 |
8656a8532ce02e9c9243c3870b3896153f8f45fa | 2,327 | ps1 | PowerShell | PowerCD/PowerCD.tasks.ps1 | JustinGrote/PowerCD | 04927b397f5a65753ec79da2e181a58ef783f0e3 | [
"MIT"
] | 36 | 2018-07-11T11:45:45.000Z | 2022-01-26T00:28:49.000Z | PowerCD/PowerCD.tasks.ps1 | JustinGrote/PowerCD | 04927b397f5a65753ec79da2e181a58ef783f0e3 | [
"MIT"
] | 8 | 2018-07-01T18:56:42.000Z | 2020-07-01T15:53:12.000Z | PowerCD/PowerCD.tasks.ps1 | JustinGrote/PowerCD | 04927b397f5a65753ec79da2e181a58ef783f0e3 | [
"MIT"
] | 5 | 2019-06-06T04:55:23.000Z | 2021-08-05T22:59:30.000Z | Enter-Build {
Initialize-PowerCD
}
task PowerCD.Clean {
Invoke-PowerCDClean
}
task PowerCD.CleanPrerequisites {
Invoke-PowerCDClean -Prerequisites
}
task PowerCD.Version {
. Get-PowerCDVersion > $null
}
task PowerCD.BuildPSModule {
Build-PowerCDModule
}
task PowerCD.UpdateVersion {
Set-PowerCDVersion
}
task PowerCD.UpdatePublicFunctions {
Update-PowerCDPublicFunctions
}
task PowerCD.Test.Pester {
Test-PowerCDPester -OutputPath $PCDSetting.buildenvironment.buildoutput
}
task PowerCD.Package.Nuget {
$TaskParams = @{
Path = [IO.Path]::Combine(
$PCDSetting.BuildEnvironment.BuildOutput,
$PCDSetting.BuildEnvironment.ProjectName,
$PCDSetting.Version
)
Destination = $PCDSetting.BuildEnvironment.BuildOutput
}
if ($MetaBuildPath) {
#Import the Compress-PowerCDModule Command
. ([IO.Path]::Combine($MetaBuildPath.Directory,'Public','New-PowerCDNugetPackage.ps1'))
}
New-PowerCDNugetPackage @TaskParams
#Meta Build Cleanup
if ($MetaBuildPath) {Remove-Item Function:/New-PowerCDNugetPackage}
}
task PowerCD.Package.Zip {
[String]$ZipFileName = $PCDSetting.BuildEnvironment.ProjectName + '-' + $PCDSetting.VersionLabel + '.zip'
$CompressArchiveParams = @{
Path = $PCDSetting.BuildModuleOutput
Destination = join-path $PCDSetting.BuildEnvironment.BuildOutput $ZipFileName
}
if ($MetaBuildPath) {
#Import the Compress-PowerCDModule Command
. ([IO.Path]::Combine($MetaBuildPath.Directory,'Public','Compress-PowerCDModule.ps1'))
}
Compress-PowerCDModule @CompressArchiveParams
#Meta Build Cleanup
if ($MetaBuildPath) {Remove-Item Function:/Compress-PowerCDModule}
}
#region MetaTasks
task PowerCD.Build @(
'PowerCD.Version'
'PowerCD.BuildPSModule'
'PowerCD.UpdateVersion'
'PowerCD.UpdatePublicFunctions'
)
task PowerCD.Package @(
'PowerCD.Package.Zip'
'PowerCD.Package.Nuget'
)
task PowerCD.Test @(
'PowerCD.Test.Pester'
)
task PowerCD.Default @(
'PowerCD.Clean'
'PowerCD.Build'
'PowerCD.Test'
)
#endregion MetaTasks
#region Defaults
task Clean PowerCD.Clean
task Build PowerCD.Build
task Test PowerCD.Test
task Package PowerCD.Package
task . PowerCD.Default
#endregion Defaults | 23.505051 | 109 | 0.709497 |
dbf37ed04f8f2cd60978cd8a12c3f23b4116fa90 | 11,109 | php | PHP | app/Http/Controllers/Admin/Dashboardcontroller.php | zenoman/dvina | dd3ecb3baafbeeced803129b21e2f7efc7425b17 | [
"MIT"
] | null | null | null | app/Http/Controllers/Admin/Dashboardcontroller.php | zenoman/dvina | dd3ecb3baafbeeced803129b21e2f7efc7425b17 | [
"MIT"
] | 2 | 2021-05-06T19:09:38.000Z | 2021-05-07T21:53:47.000Z | app/Http/Controllers/Admin/Dashboardcontroller.php | zenoman/dvina | dd3ecb3baafbeeced803129b21e2f7efc7425b17 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
class DashboardController extends Controller
{
//========================================================
public function editprofil(){
return view('home/editprofile');
}
//========================================================
function cekbelumbayar(){
$datatransaksi = DB::table('tb_transaksis')
->where('status','diterima')
->get();
foreach ($datatransaksi as $row){
$maxkode = DB::table('log_cancel')->max('faktur');
if($maxkode != NULL){
$numkode = substr($maxkode, 6);
$countkode = $numkode+1;
$newkode = "Cancel".sprintf("%05s", $countkode);
}else{
$newkode = "Cancel00001";
}
if (date('Y-m-d', strtotime($row->tgl.' + 3 days')) <= date('Y-m-d')){
DB::table('log_cancel')
->insert([
'faktur'=>$newkode,
'total_akhir'=>$row->total,
'tgl'=>date("Y-m-d"),
'bulan'=>date("m"),
'status'=>'dicancel',
'id_user'=>$row->iduser,
'id_admin'=>session::get('iduser'),
'keterangan'=>'tidak membayar lebih dari 3 hari'
]);
$caridetail = DB::table('tb_details')
->where('faktur',$row->faktur)
->get();
foreach ($caridetail as $cdl) {
DB::table('detail_cancel')
->insert([
'idwarna'=>$cdl->idwarna,
'iduser'=>$cdl->iduser,
'kode'=>$newkode,
'tgl'=>$cdl->tgl,
'jumlah'=>$cdl->jumlah,
'harga'=>$cdl->harga,
'barang'=>$cdl->barang,
'total'=>$cdl->total,
'diskon'=>$cdl->diskon
]);
}
DB::table('tb_details')->where('faktur',$row->faktur)->delete();
DB::table('tb_transaksis')->where('faktur',$row->faktur)->delete();
}
}
}
//========================================================
function cekomset(){
$datasetting = DB::table('settings')->limit(1)->get();
foreach($datasetting as $row){
$bulanapps = $row->bulansistem;}
if($bulanapps != date('m')){
if(date('m')==1){
$transaksionline =
$this->carijumlahtransaksionline($bulanapps,date('Y'),"ny");
$transaksioffline =
$this->carijumlahtransaksioffline($bulanapps,date('Y'),"ny");
$pemasukanlain =
$this->caripemasukanlain($bulanapps,date('Y'),"ny");
$pengeluaran = $this->caripengeluaran($bulanapps,date('Y'),"ny");
if($transaksionline==''){
$transaksionline = 0;
}else if($transaksioffline==''){
$transaksioffline=0;
}else if($pemasukanlain==''){
$pemasukanlain=0;
}else if($pengeluaran==''){
$pengeluaran=0;
}
$omset = ($transaksionline + $transaksioffline + $pemasukanlain) - $pengeluaran;
DB::table('omset')
->insert([
'pemasukan_online'=>$transaksionline,
'pemasukan_offline'=>$transaksioffline,
'pemasukan_lain'=>$pemasukanlain,
'pengeluaran'=>$pengeluaran,
'omset'=>$omset,
'bulan'=>12,
'tahun'=>date('Y')-1
]);
}else{
$transaksionline =
$this->carijumlahtransaksionline($bulanapps,date('Y'),"y");
$transaksioffline =
$this->carijumlahtransaksioffline($bulanapps,date('Y'),"y");
$pemasukanlain =
$this->caripemasukanlain($bulanapps,date('Y'),"y");
$pengeluaran = $this->caripengeluaran($bulanapps,date('Y'),"y");
if($transaksionline==''){
$transaksionline = 0;
}else if($transaksioffline==''){
$transaksioffline=0;
}else if($pemasukanlain==''){
$pemasukanlain=0;
}else if($pengeluaran==''){
$pengeluaran=0;
}
$omset = $transaksionline + $transaksioffline + $pemasukanlain - $pengeluaran;
DB::table('omset')
->insert([
'pemasukan_online'=>$transaksionline,
'pemasukan_offline'=>$transaksioffline,
'pemasukan_lain'=>$pemasukanlain,
'pengeluaran'=>$pengeluaran,
'omset'=>$omset,
'bulan'=>date('m')-1,
'tahun'=>date('Y')
]);
}
DB::table('settings')
->update([
'bulansistem'=>date('m')
]);
}
}
//=========================================================
public function index()
{
$this->cekomset();
$this->cekbelumbayar();
$tgl = date('d-m-Y');
$hapuslogcancel = DB::table('log_cancel')
->whereMonth('tgl','!=',date("m"))
->delete();
$hapusdetailcancel = DB::table('detail_cancel')
->whereMonth('tgl','!=',date("m"))
->delete();
$hapuscancelkeranjang = DB::table('keranjang_cancel')
->whereMonth('tgl','!=',date("m"))
->delete();
$datakeranjang = DB::table('tb_details')
->whereNull('faktur')
->get();
foreach ($datakeranjang as $row) {
if($row->tgl_kadaluarsa < date('Y-m-d')){
DB::table('keranjang_cancel')
->insert([
'tgl'=>date('Y-m-d'),
'idbarang'=>$row->idwarna,
'jumlah'=>$row->jumlah
]);
DB::table('tb_details')->where('id',$row->id)->delete();
}
}
$websetting = DB::table('settings')->limit(1)->get();
return view('home/index',[
'jumlahuser'=>$this->jumlahuser(),
'jumlahstok'=>$this->jumlahstok(),
'jumlahtransaksi' =>$this->jumlahtransaksi(),
'jumlahtransaksig'=>$this->jumlahtransaksig(),
'websettings'=>$websetting
]);
}
//===========================================================
function jumlahuser(){
$jumlah = DB::table('tb_users')->count();
return $jumlah;
}
//===========================================================
function jumlahtransaksi(){
$bulan = date('m');
$jumlah = DB::table('tb_transaksis')->where('tgl','like','%'.$bulan.'%')->count();
return $jumlah;
}
//===========================================================
function jumlahtransaksig(){
$bulan = date('m');
$jumlah = DB::table('log_cancel')->where('bulan',$bulan)->count();
return $jumlah;
}
//===========================================================
function jumlahstok(){
$jumlah = DB::table('tb_barangs')->sum('stok');
return $jumlah;
}
//===========================================================
function carijumlahtransaksionline($bulan,$tahun,$status){
if($status=="ny"){
$tahun -=1;
}
$data = DB::table('tb_transaksis')
->select(DB::raw('SUM(total_akhir) as totalnya'))
->whereMonth('tgl',$bulan)
->whereYear('tgl',$tahun)
->where('status','sukses')
->orwhere('status','diterima')
->get();
foreach ($data as $row) {
$newdata = $row->totalnya;
}
return $newdata;
}
//===========================================================
function carijumlahtransaksioffline($bulan,$tahun,$status){
if($status=="ny"){
$tahun -=1;
}
$data = DB::table('tb_transaksis')
->select(DB::raw('SUM(total_akhir) as totalnya'))
->whereMonth('tgl',$bulan)
->whereYear('tgl',$tahun)
->where('metode','langsung')
->get();
foreach ($data as $row) {
$newdata = $row->totalnya;
}
return $newdata;
}
//===========================================================
function caripemasukanlain($bulan,$tahun,$status){
if($status=="ny"){ $tahun -=1; }
$data = DB::table('tb_tambahstoks')
->select(DB::raw('SUM(total) as totalnya'))
->whereMonth('tgl',$bulan)
->whereYear('tgl',$tahun)
->where('aksi','kurangi')
->get();
foreach ($data as $row){
$newdata = $row->totalnya;
}
return $newdata;
}
//===========================================================
function caripengeluaran($bulan,$tahun,$status){
if($status=="ny"){
$tahun -=1;
}
$data = DB::table('tb_tambahstoks')
->select(DB::raw('SUM(total) as totalnya'))
->whereMonth('tgl',$bulan)
->whereYear('tgl',$tahun)
->where('aksi','tambah')
->get();
foreach ($data as $row){
$newdata = $row->totalnya;
}
return $newdata;
}
//===========================================================
public function cektransaksi(){
$transaksi = DB::table('tb_transaksis')
->select(DB::raw('tb_transaksis.*,tb_users.username'))
->join('tb_users','tb_transaksis.iduser','=','tb_users.id')
->where([['tb_transaksis.status','=','terkirim'],['tb_transaksis.metode','=','pesan']])
->get();
return response()->json($transaksi);
}
//============================================================
public function updatetransaksi($id){
DB::table('tb_transaksis')
->where('id',$id)
->update([
'status'=>'dibaca'
]);
}
//============================================================
public function cekbar(){
$transaksi = DB::table('tb_transaksis')
->select(DB::raw('tb_transaksis.*,tb_users.username'))
->join('tb_users','tb_transaksis.iduser','=','tb_users.id')
->where([
['tb_transaksis.status','=','terkirim']
,['tb_transaksis.metode','=','pesan']])
->orwhere([['tb_transaksis.status','=','dibaca']
,['tb_transaksis.metode','=','pesan']])
->limit(10)
->get();
return response()->json($transaksi);
}
}
| 35.835484 | 107 | 0.423981 |
a351b57d89baf640edb8ca533f3a52dc59fb3324 | 1,095 | c | C | Alura/Avançando na Linguagem/fogefoge.c | Evaldo-comp/C | 63128d8193575a0af8af435bdf990c6dd629e746 | [
"MIT"
] | null | null | null | Alura/Avançando na Linguagem/fogefoge.c | Evaldo-comp/C | 63128d8193575a0af8af435bdf990c6dd629e746 | [
"MIT"
] | null | null | null | Alura/Avançando na Linguagem/fogefoge.c | Evaldo-comp/C | 63128d8193575a0af8af435bdf990c6dd629e746 | [
"MIT"
] | 1 | 2020-10-07T08:06:29.000Z | 2020-10-07T08:06:29.000Z | #include<stdio.h>
#include<stdlib.h>
#include "fogefoge.h"
char** mapa;
int linhas;
int colunas;
void lemapa(){
FILE* f;
f = fopen("mapa.txt", "r"); // abre o mapa em doc de texto apenas para leitura
if (f == 0) { // faz a verificação do arquivo, se estiver vazio, ele sai
printf("Erro na leitura do mapa");
exit(1);
}
// ler as linhas e colunas no mapa e guarda nas suas respectivas variáveis
fscanf(f, "%d %d", &linhas, &colunas);
alocamapa(); // call de função
for(int i =0; i < 5; i++){
fscanf(f, "%s", mapa[i]);
}
fclose(f);
}
//função para alocação dinâmica de memória
void alocamapa(){
mapa = malloc(sizeof(char*) * linhas);
for(int i = 0; i < linhas; i++){
mapa[i] = malloc(sizeof(char) * colunas + 1);
}
}
// função para liberar memória
void liberamapa(){
for(int i = 0; i < linhas; i++){
free (mapa[i]);
}
free(mapa);
}
// função principal
int main(){
lemapa();
for(int i = 0; i < linhas; i++){
printf("%s\n", mapa[i]);
}
liberamapa();
}
| 18.559322 | 82 | 0.552511 |
6ff03bc9141ba2d76a122f9a9f37b44af95d35c5 | 1,319 | rb | Ruby | test/test_que_locks.rb | superpro-inc/que-locks | 8e5eed732f619c1e821d7ed546eb855669bd4a48 | [
"MIT"
] | null | null | null | test/test_que_locks.rb | superpro-inc/que-locks | 8e5eed732f619c1e821d7ed546eb855669bd4a48 | [
"MIT"
] | 14 | 2020-02-10T08:14:39.000Z | 2021-07-12T07:28:25.000Z | test/test_que_locks.rb | superpro-inc/que-locks | 8e5eed732f619c1e821d7ed546eb855669bd4a48 | [
"MIT"
] | 1 | 2020-07-29T22:21:30.000Z | 2020-07-29T22:21:30.000Z | require_relative "test_helper"
$executions = []
class TestUntouchedJob < Que::Job
def run(user_id)
$executions << user_id
end
end
class TestJob < Que::Job
self.exclusive_execution_lock = true
def run(user_id)
$executions << user_id
end
end
class TestReenqueueJob < Que::Job
self.exclusive_execution_lock = true
def run(user_id)
$executions << user_id
TestReenqueueJob.enqueue(user_id)
end
end
class TestQueLocks < Minitest::Test
def setup
$executions = []
end
def test_sync_execution_of_untouched_job
with_synchronous_execution do
TestUntouchedJob.enqueue(1)
end
assert_equal [1], $executions
end
def test_sync_execution_of_locked_job
with_synchronous_execution do
TestJob.enqueue(1)
end
assert_equal [1], $executions
end
def test_execution_of_locked_job
TestJob.enqueue(1)
run_jobs
assert_equal [1], $executions
end
def test_execution_of_locked_job_with_reenqueue_during_execution
TestReenqueueJob.enqueue(1)
run_jobs
assert_equal [1], $executions
end
def test_execution_of_locked_job_with_reenqueue_during_execution
TestReenqueueJob.enqueue(1)
TestReenqueueJob.enqueue(2)
TestReenqueueJob.enqueue(3)
run_jobs
assert_equal [1, 2, 3].sort, $executions.sort
end
end
| 19.115942 | 66 | 0.736922 |
2c9a4be39b6f62045c34b2d32e6883bbca91d8c0 | 453 | cc | C++ | sandbox/policy/linux/bpf_print_backend_policy_linux.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | sandbox/policy/linux/bpf_print_backend_policy_linux.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | sandbox/policy/linux/bpf_print_backend_policy_linux.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/policy/linux/bpf_print_backend_policy_linux.h"
namespace sandbox {
namespace policy {
PrintBackendProcessPolicy::PrintBackendProcessPolicy() = default;
PrintBackendProcessPolicy::~PrintBackendProcessPolicy() = default;
} // namespace policy
} // namespace sandbox
| 30.2 | 73 | 0.788079 |
4391a9d1b6d9f9b9301dcdc774d893ecb68b94a3 | 10,603 | tsx | TypeScript | ubl-model-library/src/ubl/2.3/display/doc/DigitalAgreementDisplay.tsx | aleris/ubl-model | 43cf9e491a166e9090cb0795af445f045d59a26f | [
"MIT"
] | null | null | null | ubl-model-library/src/ubl/2.3/display/doc/DigitalAgreementDisplay.tsx | aleris/ubl-model | 43cf9e491a166e9090cb0795af445f045d59a26f | [
"MIT"
] | null | null | null | ubl-model-library/src/ubl/2.3/display/doc/DigitalAgreementDisplay.tsx | aleris/ubl-model | 43cf9e491a166e9090cb0795af445f045d59a26f | [
"MIT"
] | null | null | null | import React from 'react'
import { FieldMeta } from '../../meta/FieldMeta'
import { DigitalAgreement } from '../../model/doc/DigitalAgreement'
import { DigitalAgreementField, DigitalAgreementFieldMeta, DigitalAgreementTypeName } from '../../meta/doc/DigitalAgreementMeta'
import { RenderContext } from '../RenderContext'
import { FieldConfig } from '../FieldConfig'
import { renderTemplatedTypeElement, SubElementsTemplatesMap } from '../Template'
import { CodeDisplay } from '../cbc/CodeDisplay'
import { CountryDisplay } from '../cac/CountryDisplay'
import { DateDisplay } from '../cbc/DateDisplay'
import { DigitalAgreementTermsDisplay } from '../cac/DigitalAgreementTermsDisplay'
import { DigitalProcessDisplay } from '../cac/DigitalProcessDisplay'
import { DocumentReferenceDisplay } from '../cac/DocumentReferenceDisplay'
import { IdentifierDisplay } from '../cbc/IdentifierDisplay'
import { ParticipantPartyDisplay } from '../cac/ParticipantPartyDisplay'
import { PartyDisplay } from '../cac/PartyDisplay'
import { SignatureDisplay } from '../cac/SignatureDisplay'
import { TimeDisplay } from '../cbc/TimeDisplay'
import { UBLExtensionsDisplay } from '../ext/UBLExtensionsDisplay'
type Props<TFieldMeta> = {
meta: FieldMeta<TFieldMeta>
fieldConfig?: FieldConfig<DigitalAgreement, void>
digitalAgreement: DigitalAgreement[] | undefined
renderContext: RenderContext
}
export const DigitalAgreementSubElementsMap: SubElementsTemplatesMap<DigitalAgreementField, DigitalAgreement, void> = new Map([
[
DigitalAgreementField.UBLExtensions,
{ meta: DigitalAgreementFieldMeta.UBLExtensions,
template: ({value, renderContext, fieldConfig}) => <UBLExtensionsDisplay
key={DigitalAgreementField.UBLExtensions}
meta={DigitalAgreementFieldMeta.UBLExtensions}
fieldConfig={fieldConfig}
ublExtensions={value?.UBLExtensions}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.UBLVersionID,
{ meta: DigitalAgreementFieldMeta.UBLVersionID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.UBLVersionID}
meta={DigitalAgreementFieldMeta.UBLVersionID}
fieldConfig={fieldConfig}
identifier={value?.UBLVersionID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.CustomizationID,
{ meta: DigitalAgreementFieldMeta.CustomizationID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.CustomizationID}
meta={DigitalAgreementFieldMeta.CustomizationID}
fieldConfig={fieldConfig}
identifier={value?.CustomizationID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.ProfileID,
{ meta: DigitalAgreementFieldMeta.ProfileID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.ProfileID}
meta={DigitalAgreementFieldMeta.ProfileID}
fieldConfig={fieldConfig}
identifier={value?.ProfileID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.ProfileExecutionID,
{ meta: DigitalAgreementFieldMeta.ProfileExecutionID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.ProfileExecutionID}
meta={DigitalAgreementFieldMeta.ProfileExecutionID}
fieldConfig={fieldConfig}
identifier={value?.ProfileExecutionID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.ID,
{ meta: DigitalAgreementFieldMeta.ID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.ID}
meta={DigitalAgreementFieldMeta.ID}
fieldConfig={fieldConfig}
identifier={value?.ID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.UUID,
{ meta: DigitalAgreementFieldMeta.UUID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.UUID}
meta={DigitalAgreementFieldMeta.UUID}
fieldConfig={fieldConfig}
identifier={value?.UUID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.IssueDate,
{ meta: DigitalAgreementFieldMeta.IssueDate,
template: ({value, renderContext, fieldConfig}) => <DateDisplay
key={DigitalAgreementField.IssueDate}
meta={DigitalAgreementFieldMeta.IssueDate}
fieldConfig={fieldConfig}
date={value?.IssueDate}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.IssueTime,
{ meta: DigitalAgreementFieldMeta.IssueTime,
template: ({value, renderContext, fieldConfig}) => <TimeDisplay
key={DigitalAgreementField.IssueTime}
meta={DigitalAgreementFieldMeta.IssueTime}
fieldConfig={fieldConfig}
time={value?.IssueTime}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.AgreementTypeCode,
{ meta: DigitalAgreementFieldMeta.AgreementTypeCode,
template: ({value, renderContext, fieldConfig}) => <CodeDisplay
key={DigitalAgreementField.AgreementTypeCode}
meta={DigitalAgreementFieldMeta.AgreementTypeCode}
fieldConfig={fieldConfig}
code={value?.AgreementTypeCode}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.VersionID,
{ meta: DigitalAgreementFieldMeta.VersionID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.VersionID}
meta={DigitalAgreementFieldMeta.VersionID}
fieldConfig={fieldConfig}
identifier={value?.VersionID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.PreviousVersionID,
{ meta: DigitalAgreementFieldMeta.PreviousVersionID,
template: ({value, renderContext, fieldConfig}) => <IdentifierDisplay
key={DigitalAgreementField.PreviousVersionID}
meta={DigitalAgreementFieldMeta.PreviousVersionID}
fieldConfig={fieldConfig}
identifier={value?.PreviousVersionID}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.RequiredResponseMessageLevelCode,
{ meta: DigitalAgreementFieldMeta.RequiredResponseMessageLevelCode,
template: ({value, renderContext, fieldConfig}) => <CodeDisplay
key={DigitalAgreementField.RequiredResponseMessageLevelCode}
meta={DigitalAgreementFieldMeta.RequiredResponseMessageLevelCode}
fieldConfig={fieldConfig}
code={value?.RequiredResponseMessageLevelCode}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.Signature,
{ meta: DigitalAgreementFieldMeta.Signature,
template: ({value, renderContext, fieldConfig}) => <SignatureDisplay
key={DigitalAgreementField.Signature}
meta={DigitalAgreementFieldMeta.Signature}
fieldConfig={fieldConfig}
signature={value?.Signature}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.GovernorParty,
{ meta: DigitalAgreementFieldMeta.GovernorParty,
template: ({value, renderContext, fieldConfig}) => <PartyDisplay
key={DigitalAgreementField.GovernorParty}
meta={DigitalAgreementFieldMeta.GovernorParty}
fieldConfig={fieldConfig}
party={value?.GovernorParty}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.ParticipantParty,
{ meta: DigitalAgreementFieldMeta.ParticipantParty,
template: ({value, renderContext, fieldConfig}) => <ParticipantPartyDisplay
key={DigitalAgreementField.ParticipantParty}
meta={DigitalAgreementFieldMeta.ParticipantParty}
fieldConfig={fieldConfig}
participantParty={value?.ParticipantParty}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.AgreementCountry,
{ meta: DigitalAgreementFieldMeta.AgreementCountry,
template: ({value, renderContext, fieldConfig}) => <CountryDisplay
key={DigitalAgreementField.AgreementCountry}
meta={DigitalAgreementFieldMeta.AgreementCountry}
fieldConfig={fieldConfig}
country={value?.AgreementCountry}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.RequiredCertificationDocumentReference,
{ meta: DigitalAgreementFieldMeta.RequiredCertificationDocumentReference,
template: ({value, renderContext, fieldConfig}) => <DocumentReferenceDisplay
key={DigitalAgreementField.RequiredCertificationDocumentReference}
meta={DigitalAgreementFieldMeta.RequiredCertificationDocumentReference}
fieldConfig={fieldConfig}
documentReference={value?.RequiredCertificationDocumentReference}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.DigitalAgreementTerms,
{ meta: DigitalAgreementFieldMeta.DigitalAgreementTerms,
template: ({value, renderContext, fieldConfig}) => <DigitalAgreementTermsDisplay
key={DigitalAgreementField.DigitalAgreementTerms}
meta={DigitalAgreementFieldMeta.DigitalAgreementTerms}
fieldConfig={fieldConfig}
digitalAgreementTerms={value?.DigitalAgreementTerms}
renderContext={renderContext}
/>}
],
[
DigitalAgreementField.DigitalProcess,
{ meta: DigitalAgreementFieldMeta.DigitalProcess,
template: ({value, renderContext, fieldConfig}) => <DigitalProcessDisplay
key={DigitalAgreementField.DigitalProcess}
meta={DigitalAgreementFieldMeta.DigitalProcess}
fieldConfig={fieldConfig}
digitalProcess={value?.DigitalProcess}
renderContext={renderContext}
/>}
]
])
export function DigitalAgreementDisplay<TFieldMeta>({ meta, fieldConfig, digitalAgreement, renderContext }: Props<TFieldMeta>) {
return renderTemplatedTypeElement(
DigitalAgreementTypeName,
meta,
fieldConfig,
digitalAgreement,
renderContext,
DigitalAgreementSubElementsMap,
)
}
| 37.867857 | 129 | 0.686127 |
cf05105dd486bc26a14dee13ecc511bd22bef02c | 2,552 | php | PHP | tests/src/Collections/FieldCollectionTest.php | baboons/schema | 0c9095d6d2c718119e4f2245db3dc994c3e32d46 | [
"MIT"
] | 1 | 2018-12-11T17:49:42.000Z | 2018-12-11T17:49:42.000Z | tests/src/Collections/FieldCollectionTest.php | baboons/schema | 0c9095d6d2c718119e4f2245db3dc994c3e32d46 | [
"MIT"
] | null | null | null | tests/src/Collections/FieldCollectionTest.php | baboons/schema | 0c9095d6d2c718119e4f2245db3dc994c3e32d46 | [
"MIT"
] | null | null | null | <?php declare(strict_types=1);
namespace GQLSchema\Tests\Collections;
use GQLSchema\Types\InterfaceType;
use GQLSchema\Types\Scalars\IntegerType;
use GQLSchema\Types\Scalars\StringType;
use GQLSchema\Field;
use GQLSchema\Collections\FieldCollection;
use PHPUnit\Framework\TestCase;
/**
* Class FieldCollectionTest
* @package GQLSchema\Tests\Collections
*/
class FieldCollectionTest extends TestCase
{
/**
* @throws \GQLSchema\Exceptions\SchemaException
*/
public function testCollection()
{
$fields = new FieldCollection();
$fields->add(new Field('simpleField', new IntegerType()));
$this->assertEquals(" simpleField: Int\n", $fields->__toString());
$fields = new FieldCollection();
$fields->add(new Field('name', new StringType()));
$fields->add(new Field('age', new IntegerType()));
$fields->add(new Field('size', new IntegerType()));
$expected = " name: String\n";
$expected .= " age: Int\n";
$expected .= " size: Int\n";
$this->assertEquals($expected, $fields->__toString());
}
/**
* @throws \GQLSchema\Exceptions\SchemaException
*/
public function testImplements()
{
$fields = new FieldCollection();
$fields->add(new Field('name', new StringType()));
$fields->add(new Field('age', new IntegerType()));
$fields->add(new Field('size', new IntegerType()));
$interfaceFields = new FieldCollection();
$interfaceFields->add(new Field('name', new StringType()));
$interface = new InterfaceType('Wine', $interfaceFields);
$this->assertTrue($fields->implements($interface));
$interfaceFields = new FieldCollection();
$interfaceFields->add(new Field('test', new StringType()));
$interface = new InterfaceType('Wine', $interfaceFields);
$this->assertFalse($fields->implements($interface));
}
public function testEmpty()
{
$collection = new FieldCollection();
$this->assertEquals('', $collection->__toString());
}
/**
* @expectedException \GQLSchema\Exceptions\SchemaException
* @expectedExceptionMessage The field must have a unique name within type, field name [age] seen twice.
*/
public function testUniqueNames()
{
$fields = new FieldCollection();
$fields->add(new Field('age', new IntegerType()));
$fields->add(new Field('test', new IntegerType()));
$fields->add(new Field('age', new IntegerType()));
}
} | 32.303797 | 108 | 0.635188 |
a61d30c2c217a06516bdcfad8fc723c1a9942450 | 624 | dart | Dart | lib/stripe_sdk_ui.dart | emran92/stripe-sdk | b3b96543eb0b43cfb0ea384a8428c3b392fefbcf | [
"BSD-2-Clause-FreeBSD"
] | 133 | 2019-11-11T17:03:45.000Z | 2022-03-24T23:49:46.000Z | lib/stripe_sdk_ui.dart | emran92/stripe-sdk | b3b96543eb0b43cfb0ea384a8428c3b392fefbcf | [
"BSD-2-Clause-FreeBSD"
] | 135 | 2019-11-10T22:15:29.000Z | 2022-02-20T05:10:28.000Z | lib/stripe_sdk_ui.dart | emran92/stripe-sdk | b3b96543eb0b43cfb0ea384a8428c3b392fefbcf | [
"BSD-2-Clause-FreeBSD"
] | 135 | 2019-11-17T09:43:45.000Z | 2022-03-24T23:49:51.000Z | /// UI widgets, screens and helpers for Stripe and Stripe SDK.
library stripe_sdk_ui;
export 'src/models/card.dart';
export 'src/ui/checkout_page.dart';
export 'src/ui/models.dart';
export 'src/ui/screens/add_payment_method_screen.dart';
export 'src/ui/screens/payment_methods_screen.dart';
export 'src/ui/stores/payment_method_store.dart';
export 'src/ui/stripe_ui.dart';
export 'src/ui/widgets/card_cvc_form_field.dart';
export 'src/ui/widgets/card_expiry_form_field.dart';
export 'src/ui/widgets/card_form.dart';
export 'src/ui/widgets/card_number_form_field.dart';
export 'src/ui/widgets/payment_method_selector.dart';
| 39 | 62 | 0.801282 |
8d8232ae82da980eedcc509d55252713fc1a51be | 1,125 | js | JavaScript | src/services/ChatService.js | FozzieHi/Arrow | b3b5031694d9f4a29e28bc3a6c5ec63819b65035 | [
"Apache-2.0"
] | 5 | 2018-01-13T08:12:13.000Z | 2021-08-29T22:02:59.000Z | src/services/ChatService.js | FozzieHi/Arrow | b3b5031694d9f4a29e28bc3a6c5ec63819b65035 | [
"Apache-2.0"
] | 1 | 2019-12-04T09:05:16.000Z | 2019-12-04T09:05:16.000Z | src/services/ChatService.js | FozzieHi/Arrow | b3b5031694d9f4a29e28bc3a6c5ec63819b65035 | [
"Apache-2.0"
] | 1 | 2018-02-11T09:57:54.000Z | 2018-02-11T09:57:54.000Z | const db = require('../database');
const Constants = require('../utility/Constants.js');
const Random = require('../utility/Random.js');
const USD = require('../utility/USD.js');
class ChatService {
constructor() {
this.messages = new Map();
}
async applyCash(msg, sender) {
const lastMessage = this.messages.get(msg.author.id);
const isMessageCooldownOver = lastMessage === undefined || Date.now() - lastMessage > Constants.messageCooldown;
const isLongEnough = msg.content.length >= Constants.minCharLength;
if (isMessageCooldownOver && isLongEnough) {
this.messages.set(msg.author.id, Date.now());
if (msg.dbGuild.lottery !== false) {
if (Random.nextFloat(0, 100) <= 1) {
const winnings = Random.nextInt(500, 10000) * 100;
await sender.reply('Congratulations! You just won the Lottery and gained ' + USD(winnings));
return db.userRepo.modifyCash(msg.dbGuild, msg.member, winnings);
}
}
return db.userRepo.modifyCash(msg.dbGuild, msg.member, Constants.cashPerMessage * 100);
}
}
}
module.exports = new ChatService();
| 36.290323 | 116 | 0.664 |
2ac8d517b4959a3bc3fa94627eb9242bd967ed6b | 875 | css | CSS | css/style.css | rocketmix/rocketmix.github.io | e984029a87a8ebf791869e6ab9da8c5ee3a4ec08 | [
"Apache-2.0"
] | null | null | null | css/style.css | rocketmix/rocketmix.github.io | e984029a87a8ebf791869e6ab9da8c5ee3a4ec08 | [
"Apache-2.0"
] | null | null | null | css/style.css | rocketmix/rocketmix.github.io | e984029a87a8ebf791869e6ab9da8c5ee3a4ec08 | [
"Apache-2.0"
] | 1 | 2020-10-08T16:57:18.000Z | 2020-10-08T16:57:18.000Z | html, body {
font-family: 'Raleway', sans-serif;
}
h1 {
font-family: 'merriweather', serif;
font-weight: bold;
color: #DDDDDD;
}
.text-primary {
color: #42d3a5 !important;
}
.navbar-brand {
font-family: 'Caveat', cursive;
font-size: 1.6rem;
padding-top: 0rem;
padding-bottom: 0rem;
}
.bg-light {
background-color: #f1f1f1 !important;
}
#particles-container {
position: relative;
min-height: 700px;
width: 100%;
max-width: 100%;
padding-right: 0px;
padding-left: 0px;
background-color: black;
}
@media (max-width: 575px) {
#particles-container {
min-height: 500px;
}
}
#particles, #particles-content {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin-left: 0;
margin-right: 0;
}
#particles-content {
z-index: 10;
padding-top: 100px;
}
| 16.509434 | 41 | 0.6 |
0d809b937142f0f720583e90a1f7f8156d35cce1 | 4,325 | h | C | src/object/jsbasicobject.h | PrinceDhaliwal/grok-exprimental | 4db619a91e235c9d0da5bb5a11f7e643f999e022 | [
"Apache-2.0"
] | 5 | 2015-12-31T16:30:16.000Z | 2019-07-13T15:50:15.000Z | src/object/jsbasicobject.h | PrinceDhaliwal/grok-exprimental | 4db619a91e235c9d0da5bb5a11f7e643f999e022 | [
"Apache-2.0"
] | null | null | null | src/object/jsbasicobject.h | PrinceDhaliwal/grok-exprimental | 4db619a91e235c9d0da5bb5a11f7e643f999e022 | [
"Apache-2.0"
] | null | null | null | #ifndef OBJECT_H_
#define OBJECT_H_
#include "object/object.h"
#include <map>
namespace grok { namespace obj {
// type of javascript objects
enum class ObjectType {
_null,
_undefined,
_bool,
_number,
_double,
_string,
_object,
_array,
_argument,
_function
};
template <class Key, class Value>
using PropertyContainer = std::map<Key, Value>;
static inline std::shared_ptr<Handle> CreateUndefinedObject();
// A javascript object is a set of name : value pair
class JSObject {
public:
using Name = std::string;
using Value = std::shared_ptr<Handle>;
using iterator = PropertyContainer<Name, Value>::iterator;
using const_iterator = PropertyContainer<Name, Value>::const_iterator;
JSObject(const PropertyContainer<Name, Value> &map) : object_(map) {}
JSObject() : object_(), enumerable_{ true }, writable_{ true } {}
JSObject(const JSObject &obj) : object_(obj.object_), writable_{ true } {}
virtual ~JSObject() { }
virtual ObjectType GetType() const
{
// returns the type of the javascript object
return ObjectType::_object;
}
// add a new property to the object
virtual void AddProperty(const Name &name, const Value &prop) {
object_[name] = prop;
}
// remove a property currently existing in the object
virtual void RemoveProperty(const Name &name) { object_.erase(name); }
// returns true if a property exists in the object
virtual bool HasProperty(const Name &name) {
return object_.find(name) != object_.end();
}
virtual Value GetProperty(const Name &name);
bool IsEnumerable() const { return enumerable_; }
void SetNonEnumerable() { enumerable_ = false; }
bool IsWritable() const { return writable_; }
void SetNonWritable() { writable_ = false; }
iterator begin() { return object_.begin(); }
iterator end() { return object_.end(); }
void Clear() { object_.clear(); }
virtual std::string ToString() const;
virtual std::string AsString() const;
virtual bool IsTrue() const
{
return true;
}
private:
PropertyContainer<Name, Value> object_;
bool enumerable_;
bool writable_;
public:
static std::shared_ptr<Handle> st_obj;
static void Init();
static std::pair<std::shared_ptr<Handle>, bool>
GetStaticProperty(const std::string &name);
};
class JSNull : public JSObject {
std::string ToString() const override
{
return "null";
}
std::string AsString() const override
{
return "null";
}
ObjectType GetType() const override
{
return ObjectType::_null;
}
};
class UndefinedObject : public JSObject {
public:
UndefinedObject() :
JSObject{}
{
}
std::string ToString() const override
{
return "undefined";
}
std::string AsString() const override
{
return "undefined";
}
ObjectType GetType() const override
{
return ObjectType::_undefined;
}
bool IsTrue() const override
{
return false;
}
};
static inline bool CanEvaluateToTrue(std::shared_ptr<Handle> obj)
{
auto type = obj->as<JSObject>()->GetType();
return (type != ObjectType::_undefined)
|| (type != ObjectType::_null);
}
static inline std::shared_ptr<Handle> CreateUndefinedObject()
{
auto Undef = std::make_shared<UndefinedObject>();
auto UndefWrapper = std::make_shared<Handle>(Undef);
return UndefWrapper;
}
static inline std::shared_ptr<Handle> CreateJSNull()
{
auto Null = std::make_shared<JSNull>();
auto UndefWrapper = std::make_shared<Handle>(Null);
return UndefWrapper;
}
static inline bool IsUndefined(std::shared_ptr<Handle> obj)
{
auto O = obj->as<JSObject>();
return O->GetType() == ObjectType::_undefined;
}
static inline bool IsNull(std::shared_ptr<Handle> obj)
{
auto O = obj->as<JSObject>();
return O->GetType() == ObjectType::_null;
}
extern void DefineInternalObjectProperties(JSObject *obj);
/// This is one of 5 other Create**() function. Each of these
/// function wraps the actual object in the Handle. So, Handle
/// is actually a reference to the object. That is in simple words,
/// these functions return a reference to the newly created object.
/// Name Handle is ambiguous and it should be Reference or Wrapper.
extern std::shared_ptr<Handle> CreateJSObject();
extern std::shared_ptr<Handle> CreateCopy(std::shared_ptr<Handle> obj);
} // obj
} // grok
#endif // OBJECT_H_
| 22.409326 | 76 | 0.696879 |
e4058d867c1b5bf782e2579d626dee9ba82c30c3 | 935 | cs | C# | src/Zigbee.Protocol.Zigate/ZCL.Clusters.Color/MoveToColorTemperatureRequest.cs | LsquaredTechnologies/smarthome-zigbee | 60e406428e6a235709289d1cdfee9cbf3cffd2e3 | [
"MIT"
] | 1 | 2021-02-12T23:40:30.000Z | 2021-02-12T23:40:30.000Z | src/Zigbee.Protocol.Zigate/ZCL.Clusters.Color/MoveToColorTemperatureRequest.cs | LsquaredTechnologies/smarthome-zigbee | 60e406428e6a235709289d1cdfee9cbf3cffd2e3 | [
"MIT"
] | null | null | null | src/Zigbee.Protocol.Zigate/ZCL.Clusters.Color/MoveToColorTemperatureRequest.cs | LsquaredTechnologies/smarthome-zigbee | 60e406428e6a235709289d1cdfee9cbf3cffd2e3 | [
"MIT"
] | null | null | null | using System;
using Lsquared.SmartHome.Zigbee.Protocol.Zigate;
namespace Lsquared.SmartHome.Zigbee.ZCL.Clusters.Color
{
public sealed record MoveToColorTemperatureRequest : Request
{
public MoveToColorTemperatureRequest(NWK.Address nwkAddr, APP.Endpoint endpoint, int colorTemperature, TimeSpan transitionTime)
: base(
new ZigateCommandHeader(0x00C0, 0),
new Command<MoveToColorTemperatureRequestPayload>(
new APP.Address(nwkAddr),
endpoint,
endpoint,
new MoveToColorTemperatureRequestPayload(
(ushort)(1000000 / colorTemperature),
(ushort)(transitionTime.TotalSeconds / 10))))
{ }
public MoveToColorTemperatureRequest(ICommand command)
: base(new ZigateCommandHeader(0x00C0, 0), command) { }
}
}
| 38.958333 | 135 | 0.613904 |
3931a3f02863abaac2d2ac923368ffeed6782fa6 | 1,283 | py | Python | server/dataset/models.py | johnugeorge/medperf | 5bc3f643064df14e9476bd4d4c1a4c0cce5337d5 | [
"Apache-2.0"
] | 1 | 2021-09-24T18:09:53.000Z | 2021-09-24T18:09:53.000Z | server/dataset/models.py | johnugeorge/medperf | 5bc3f643064df14e9476bd4d4c1a4c0cce5337d5 | [
"Apache-2.0"
] | 2 | 2021-09-27T16:14:04.000Z | 2021-11-03T14:24:54.000Z | server/dataset/models.py | johnugeorge/medperf | 5bc3f643064df14e9476bd4d4c1a4c0cce5337d5 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class Dataset(models.Model):
DATASET_STATE = (
("DEVELOPMENT", "DEVELOPMENT"),
("OPERATION", "OPERATION"),
)
name = models.CharField(max_length=20)
description = models.CharField(max_length=20, blank=True)
location = models.CharField(max_length=100, blank=True)
owner = models.ForeignKey(User, on_delete=models.PROTECT)
input_data_hash = models.CharField(max_length=128)
generated_uid = models.CharField(max_length=128, unique=True)
split_seed = models.IntegerField()
data_preparation_mlcube = models.ForeignKey(
"mlcube.MlCube",
on_delete=models.PROTECT,
related_name="benchmark_preprocessor_mlcube",
)
is_valid = models.BooleanField(default=True)
state = models.CharField(
choices=DATASET_STATE, max_length=100, default="DEVELOPMENT"
)
generated_metadata = models.JSONField(default=dict, blank=True, null=True)
user_metadata = models.JSONField(default=dict, blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)
modified_at = models.DateTimeField(auto_now=True)
def __str__(self):
return self.name
class Meta:
ordering = ["modified_at"]
| 34.675676 | 78 | 0.710055 |
7ad439ff53a0de87f68672a8565c167f365009c0 | 12,051 | cs | C# | Test/Test.cs | sbarisic/Foam | a3cf62854f13c635c63effe3208926492c9343f1 | [
"Unlicense"
] | null | null | null | Test/Test.cs | sbarisic/Foam | a3cf62854f13c635c63effe3208926492c9343f1 | [
"Unlicense"
] | null | null | null | Test/Test.cs | sbarisic/Foam | a3cf62854f13c635c63effe3208926492c9343f1 | [
"Unlicense"
] | null | null | null | using Foam;
using RaylibSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Color = RaylibSharp.Color;
using Image = RaylibSharp.Image;
using NetImage = System.Drawing.Image;
namespace Test {
unsafe class Program {
const float Pi = (float)Math.PI;
static string[] ImgExtensions = new string[] { ".png", ".tga", ".jpg" };
static Vertex3 ToVert3(FoamVertex3 V) {
return new Vertex3(V.Position, new Vector2(V.UV2.X, 1.0f - V.UV2.Y));
}
static Texture2D LoadTexture(Image Img) {
Texture2D Tex = Raylib.LoadTextureFromImage(Img);
//Raylib.GenTextureMipmaps(&Tex);
//Raylib.SetTextureFilter(Tex, TextureFilterMode.FILTER_ANISOTROPIC_16X);
//Raylib.SetTextureWrap(Tex, TextureWrapMode.WRAP_CLAMP);
Raylib.SetTextureFilter(Tex, TextureFilterMode.FILTER_POINT);
Raylib.SetTextureWrap(Tex, TextureWrapMode.WRAP_CLAMP);
return Tex;
}
static Texture2D LoadTexture(string FileName) {
string DirName = Path.GetDirectoryName(FileName);
string Name = Path.GetFileNameWithoutExtension(FileName);
foreach (var ImgExt in ImgExtensions) {
string NewFileName = Path.Combine(DirName, Name + ImgExt);
if (File.Exists(NewFileName)) {
FileName = NewFileName;
break;
}
}
if (!File.Exists(FileName)) {
Console.WriteLine("Could not find " + FileName);
FileName = "data/missing.png";
}
Image Img = Raylib.LoadImage(FileName);
return LoadTexture(Img);
}
static Texture2D LoadTexture(FoamExtension Ext) {
using (MemoryStream MS = new MemoryStream(Ext.Data)) {
MS.Seek(0, SeekOrigin.Begin);
using (Bitmap Bmp = new Bitmap(NetImage.FromStream(MS))) {
BitmapData Data = Bmp.LockBits(new System.Drawing.Rectangle(0, 0, Bmp.Width, Bmp.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
uint* OrigColors = (uint*)Data.Scan0;
int Len = Bmp.Width * Bmp.Height;
uint* Colors = (uint*)Marshal.AllocHGlobal(Len * sizeof(uint));
for (int i = 0; i < Len; i++) {
uint Orig = OrigColors[i];
byte R = (byte)((Orig >> 16) & 255);
byte G = (byte)((Orig >> 8) & 255);
byte B = (byte)((Orig >> 0) & 255);
byte A = (byte)((Orig >> 24) & 255);
Colors[i] = (uint)((R << 0) | (G << 8) | (B << 16) | (A << 24));
}
Image Img = Raylib.LoadImagePro(new IntPtr(Colors), Bmp.Width, Bmp.Height, (int)RaylibSharp.PixelFormat.UNCOMPRESSED_R8G8B8A8);
Marshal.FreeHGlobal(new IntPtr(Colors));
Bmp.UnlockBits(Data);
return LoadTexture(Img);
}
}
}
static void SetTexture(Model Mdl, Texture2D Tex) {
Raylib.SetMaterialTexture(&Mdl.materials[0], MaterialMapType.MAP_ALBEDO, Tex);
}
static void SetTexture(Model Mdl, string FileName) {
SetTexture(Mdl, LoadTexture(FileName));
}
static Model FoamMeshToModel(string RootDir, FoamMesh Mesh, FoamModel FoamModel) {
Vertex3[] Verts = Mesh.GetFlatVertices().Select(V => ToVert3(V)).ToArray();
Mesh RaylibMesh = Raylib.GenMeshRaw(Verts);
Model Mdl = Raylib.LoadModelFromMesh(RaylibMesh);
// Mdl.transform = Matrix4x4.CreateFromYawPitchRoll(0, Pi / 2, 0);
Mesh.Userdata = Mdl;
foreach (var Ext in FoamModel.Extensions) {
if (Ext.Name.Contains("lightmap")) {
Texture2D LightmapTex = LoadTexture(Ext);
for (int i = 0; i < FoamModel.Materials.Length; i++) {
if (FoamModel.Materials[i].FindTexture(FoamTextureType.LightMap, out FoamTexture LightTex))
SetTexture(Mdl, LightmapTex);
}
break;
}
}
if (FoamModel.Materials[Mesh.MaterialIndex].FindTexture(FoamTextureType.Diffuse, out FoamTexture Tex))
SetTexture(Mdl, Path.Combine(RootDir, Tex.Name));
//Mdl.transform = Matrix4x4.CreateFromYawPitchRoll(0, Pi / 2, 0);
Mdl.transform = Matrix4x4.CreateScale(0.01f);
return Mdl;
}
static Model[] LoadModels(string FileName, out float Scale, out FoamModel FoamModel) {
string RootDir = Path.GetDirectoryName(FileName);
Scale = 0;
FoamModel = null;
string Ext = Path.GetExtension(FileName).ToLower();
if (!(Ext == ".foam" || Ext == ".mapfoam")) {
FoamModel = FoamConverter.Load(FileName);
// FoamModel.SaveToFile(Path.Combine(RootDir, Path.GetFileNameWithoutExtension(FileName) + ".foam"));
}
//try {
if (FoamModel == null)
FoamModel = FoamModel.FromFile(FileName);
FoamModel.CalcBounds(out Vector3 Min, out Vector3 Max);
Scale = Utils.Max(Max - Min);
List<Model> LoadedModels = new List<Model>();
foreach (var M in FoamModel.Meshes)
LoadedModels.Add(FoamMeshToModel(RootDir, M, FoamModel));
return LoadedModels.ToArray();
/*} catch (Exception E) {
Console.WriteLine("{0}", E.Message);
}*/
return null;
}
static int FrameIndex = 0;
static Stopwatch AnimStopwatch = null;
static void DrawBones(FoamModel Mdl) {
if (Mdl.Bones == null)
return;
if (WorldTexts == null || WorldTexts.Length != Mdl.Bones.Length) {
WorldTexts = new KeyValuePair<Vector2, string>[Mdl.Bones.Length];
for (int i = 0; i < WorldTexts.Length; i++)
WorldTexts[i] = new KeyValuePair<Vector2, string>(new Vector2(0, 0), "null");
}
//Matrix4x4 ParentRotMat = Matrix4x4.CreateFromYawPitchRoll(0, -Pi / 2, 0);
for (int i = 0; i < Mdl.Bones.Length; i++) {
FoamBone Bone = Mdl.Bones[i];
//*
if (Mdl.Animations != null) {
// Actual bones
Matrix4x4 ParentWorld = Matrix4x4.Identity;
if (Bone.ParentBoneIndex != -1)
ParentWorld = Mdl.CalcWorldTransform(0, FrameIndex, Bone.ParentBoneIndex);
Matrix4x4.Decompose(ParentWorld, out Vector3 ParentScale, out Quaternion ParentRot, out Vector3 ParentPos);
Matrix4x4 World = Mdl.CalcWorldTransform(0, FrameIndex, i);
Matrix4x4.Decompose(World, out Vector3 Scale, out Quaternion Rot, out Vector3 Pos);
DrawLine3D(ParentPos, Pos, Color.Red);
// Text
Vector3 Center = (Pos + ParentPos) / 2;
WorldTexts[i] = new KeyValuePair<Vector2, string>(Raylib.GetWorldToScreen(RotateVec3(Center), Cam3D), Bone.Name);
}
//*/
// Bind pose bones
Matrix4x4 BindParentWorld = Matrix4x4.Identity;
if (Bone.ParentBoneIndex != -1)
BindParentWorld = Mdl.CalcBindTransform(Bone.ParentBoneIndex);
Matrix4x4.Decompose(BindParentWorld, out Vector3 BindParentScale, out Quaternion BindParentRot, out Vector3 BindParentPos);
Matrix4x4 BindWorld = Mdl.CalcBindTransform(i);
Matrix4x4.Decompose(BindWorld, out Vector3 BindScale, out Quaternion BindRot, out Vector3 BindPos);
DrawLine3D(BindParentPos, BindPos, Color.Green);
//*/
}
}
static Vector3 RotateVec3(Vector3 V) {
return Vector3.Transform(V, Matrix4x4.CreateFromYawPitchRoll(0, -Pi / 2, 0));
}
static void DrawLine3D(Vector3 A, Vector3 B, Color Clr) {
Raylib.DrawLine3D(RotateVec3(A), RotateVec3(B), Clr);
}
static void UpdateModel(FoamModel Model, int FrameIndex) {
if (Model.Animations == null)
return;
//Matrix4x4 ParentRotMat = Matrix4x4.CreateFromYawPitchRoll(0, -Pi / 2, 0);
foreach (var Msh in Model.Meshes) {
List<Vertex3> Verts = new List<Vertex3>();
if (Msh.BoneInformation == null)
continue;
foreach (var Index in Msh.Indices) {
FoamVertex3 Vert = Msh.Vertices[Index];
FoamBoneInfo Info = Msh.BoneInformation[Index];
FoamBone Bone1 = Model.Bones[Info.Bone1];
// TODO: Weights
Matrix4x4 BindWorld = Bone1.BindMatrix;
Matrix4x4 WorldTrans = Model.CalcWorldTransform(0, FrameIndex, Info.Bone1);
Vector3 Pos = Vector3.Transform(Vert.Position, BindWorld * WorldTrans);
// TODO: Flip?
Verts.Add(new Vertex3(Pos, Vert.UV));
}
Mesh* RayMesh = ((Model)Msh.Userdata).meshes;
Raylib.UnloadMesh(*RayMesh);
*RayMesh = Raylib.GenMeshRaw(Verts.ToArray());
}
}
static void UpdateModelAnimation(FoamModel Mdl) {
if (Mdl.Animations != null) {
FoamAnimation Anim = Mdl.Animations[0];
int Frames = Anim.Frames.Length;
float TicksPerSecond = Anim.TicksPerSecond;
if (TicksPerSecond == 0)
TicksPerSecond = 21;
float SecondsPerFrame = (Anim.DurationInTicks / TicksPerSecond) / Frames;
if (AnimStopwatch == null)
AnimStopwatch = Stopwatch.StartNew();
if ((AnimStopwatch.ElapsedMilliseconds / 1000.0f) >= SecondsPerFrame) {
FrameIndex++;
if (FrameIndex >= Anim.Frames.Length)
FrameIndex = 0;
UpdateModel(Mdl, FrameIndex);
AnimStopwatch.Restart();
}
}
}
static KeyValuePair<Vector2, string>[] WorldTexts = null;
static Camera3D Cam3D;
static void Main(string[] args) {
Raylib.InitWindow(1366, 768, "Foam Test");
Raylib.SetTargetFPS(60);
//args = new string[] { "C:/Projekti/Foam/bin/mapfoam/sample/test.mapfoam" };
//args = new[] { "C:/Projekti/Ray/build/bin/sample/light_test.mapfoam" };
Cam3D = new Camera3D(new Vector3(1, 1, 1), Vector3.Zero, Vector3.UnitY);
Raylib.SetCameraMode(Cam3D, CameraMode.CAMERA_FREE);
Model[] Models = null;
FoamModel FoamModel = null;
bool DrawText = true;
bool DrawWireframe = false;
bool DrawSkeleton = true;
bool UpdateAnimation = true;
while (!Raylib.WindowShouldClose()) {
if (Raylib.IsKeyPressed(KeyboardKey.KEY_F1))
DrawText = !DrawText;
if (Raylib.IsKeyPressed(KeyboardKey.KEY_F2))
DrawWireframe = !DrawWireframe;
if (Raylib.IsKeyPressed(KeyboardKey.KEY_F3))
DrawSkeleton = !DrawSkeleton;
if (Raylib.IsKeyPressed(KeyboardKey.KEY_F4))
UpdateAnimation = !UpdateAnimation;
if (Raylib.IsFileDropped() || (args != null && args.Length > 0)) {
string DroppedFile = null;
if (args != null && args.Length > 0) {
DroppedFile = args[0];
args = null;
} else
DroppedFile = Raylib.GetDroppedFiles()[0];
Model[] NewModels = LoadModels(DroppedFile, out float Scale, out FoamModel NewFoamModel);
if (NewModels != null && NewFoamModel != null) {
if (NewModels.Length == 0 && NewFoamModel.Animations != null && FoamModel != null) {
foreach (var NewAnim in NewFoamModel.Animations)
Utils.Append(ref FoamModel.Animations, NewAnim);
} else {
if (Models != null) {
foreach (var M in Models)
Raylib.UnloadModel(M);
}
Models = NewModels;
FoamModel = NewFoamModel;
//Cam3D.position = new Vector3(0.5f, 0.25f, 0.5f) * Scale;
//Cam3D.target = new Vector3(0, 0.25f, 0) * Scale;
}
}
Raylib.ClearDroppedFiles();
}
/*if (Models != null)
UpdateModel(FoamModel, FrameIndex);*/
Raylib.BeginDrawing();
Raylib.ClearBackground(new Color(50, 50, 50));
//Raylib.ClearBackground(new Color(0, 0, 0));
if (Models != null) {
Raylib.UpdateCamera(ref Cam3D);
Raylib.BeginMode3D(Cam3D);
for (int i = 0; i < Models.Length; i++) {
if (DrawWireframe)
Raylib.DrawModelWires(Models[i], Vector3.Zero, 1, Color.White);
else
Raylib.DrawModel(Models[i], Vector3.Zero, 1, Color.White);
}
if (UpdateAnimation)
UpdateModelAnimation(FoamModel);
if (FoamModel != null && DrawSkeleton)
DrawBones(FoamModel);
Raylib.EndMode3D();
if (DrawText) {
if (WorldTexts != null)
foreach (var KV in WorldTexts)
Raylib.DrawText(KV.Value, (int)KV.Key.X, (int)KV.Key.Y, 10, Color.White);
}
}
DrawTextLine("F1 - Toggle bone names", 0);
DrawTextLine("F2 - Toggle wireframe", 1);
DrawTextLine("F3 - Toggle skeleton", 2);
DrawTextLine("F4 - Toggle animations", 3);
Raylib.DrawFPS(5, 5);
Raylib.EndDrawing();
}
}
static void DrawTextLine(string Txt, int Idx) {
const int FontSize = 10;
const int YOffset = 30;
Raylib.DrawText(Txt, 5, (int)(YOffset + FontSize * 1.1f * Idx), FontSize, Color.White);
}
}
}
| 30.278894 | 171 | 0.668492 |
c93d51e1d70f368b519e8193ab0db0c47716896b | 687 | tsx | TypeScript | src/app/pages/AdminPage/sections/CreateContact/index.tsx | pantoine-arsene/carbonapp-boilerplate-front | 3a3c1b1922ee0a265014d66223c4d8b14cdeab35 | [
"MIT"
] | null | null | null | src/app/pages/AdminPage/sections/CreateContact/index.tsx | pantoine-arsene/carbonapp-boilerplate-front | 3a3c1b1922ee0a265014d66223c4d8b14cdeab35 | [
"MIT"
] | null | null | null | src/app/pages/AdminPage/sections/CreateContact/index.tsx | pantoine-arsene/carbonapp-boilerplate-front | 3a3c1b1922ee0a265014d66223c4d8b14cdeab35 | [
"MIT"
] | null | null | null | import {
FormConfirmButton,
FormElement,
FormInput,
FormLabel,
FormTitle,
FormWrapper,
} from '../FormComponents';
export function CreateContact() {
return (
<FormWrapper>
<FormTitle>Créer un contact</FormTitle>
<FormElement>
<FormLabel>Nom</FormLabel> <FormInput />
</FormElement>
<FormElement>
<FormLabel>Prénom</FormLabel> <FormInput />
</FormElement>
<FormElement>
<FormLabel>Email</FormLabel> <FormInput />
</FormElement>
<FormElement>
<FormLabel>Téléphone</FormLabel> <FormInput />
</FormElement>
<FormConfirmButton>Valider</FormConfirmButton>
</FormWrapper>
);
}
| 22.9 | 54 | 0.636099 |
bb8a40906527f260c9acfb5fdda11019a425f62a | 224 | cs | C# | JsonLogViewer/Startup.cs | HighEncryption/JsonLogViewer | bec681a3d559f8b84cfdc2fbb807a8d93b8cb7e0 | [
"MIT"
] | null | null | null | JsonLogViewer/Startup.cs | HighEncryption/JsonLogViewer | bec681a3d559f8b84cfdc2fbb807a8d93b8cb7e0 | [
"MIT"
] | null | null | null | JsonLogViewer/Startup.cs | HighEncryption/JsonLogViewer | bec681a3d559f8b84cfdc2fbb807a8d93b8cb7e0 | [
"MIT"
] | null | null | null | namespace JsonLogViewer
{
using System;
using System.Windows;
public class Startup
{
[STAThread]
internal static void Main(string[] args)
{
App.Start();
}
}
} | 16 | 48 | 0.526786 |
da87ee0caac2b36b158ccee48c3799e87f963d60 | 1,297 | php | PHP | app/Helper/DateHelper.php | ali-nikookherad/khanero | e6b3fb29a4f86d852f4702685c7b681e37207dd9 | [
"MIT"
] | null | null | null | app/Helper/DateHelper.php | ali-nikookherad/khanero | e6b3fb29a4f86d852f4702685c7b681e37207dd9 | [
"MIT"
] | null | null | null | app/Helper/DateHelper.php | ali-nikookherad/khanero | e6b3fb29a4f86d852f4702685c7b681e37207dd9 | [
"MIT"
] | null | null | null | <?php
namespace App\Helper;
use App\Jobs\SendAdminEmail;
use App\Jobs\SendMail;
use Illuminate\Support\Facades\Mail;
use App\Jobs\sendShareMail;
use Morilog\Jalali\jDateTime;
class DateHelper
{
public static function SolarToGregorian($date, $delimeter = '/', $imploder = '-')
{
$date = explode($delimeter, $date);
$gregorian_date_array = jDateTime::toGregorian($date[0], $date[1], $date[2]);
$gregorian_date = [];
collect($gregorian_date_array)->each(function($gregorian_index) use(&$gregorian_date){
if($gregorian_index < 10) $gregorian_index = '0'.$gregorian_index;
array_push($gregorian_date, $gregorian_index);
});
return implode($imploder, $gregorian_date);
}
public static function GregorianDateToSolar($date, $delimeter = '/')
{
$date = explode($delimeter, $date);
$gregorian_date_array = jDateTime::toJalali($date[0], $date[1], $date[2]);
$gregorian_date = [];
collect($gregorian_date_array)->each(function($gregorian_index) use(&$gregorian_date){
if($gregorian_index < 10) $gregorian_index = '0'.$gregorian_index;
array_push($gregorian_date, $gregorian_index);
});
return implode('/', $gregorian_date);
}
}
| 25.94 | 94 | 0.64148 |
6dfd7d5767cfe92cc1e50196da5011b5aa17fb91 | 158 | h | C | SimpleGamesCollection/Classes/life/ZOrderValues.h | beardog-ukr/fuzzy-panther | 0282c29afdcfe0f068f9b624de487d566a9a6c14 | [
"Unlicense"
] | 1 | 2020-09-05T04:39:06.000Z | 2020-09-05T04:39:06.000Z | SimpleGamesCollection/Classes/life/ZOrderValues.h | beardog-ukr/fuzzy-panther | 0282c29afdcfe0f068f9b624de487d566a9a6c14 | [
"Unlicense"
] | null | null | null | SimpleGamesCollection/Classes/life/ZOrderValues.h | beardog-ukr/fuzzy-panther | 0282c29afdcfe0f068f9b624de487d566a9a6c14 | [
"Unlicense"
] | null | null | null | #pragma once
namespace life {
enum ZOrderValues {
kGameBackgroundZOrder = 10,
kCellsZOrder = 30,
kCreatureZOrder = 31,
kLifeMarkZOrder = 32,
};
}
| 11.285714 | 29 | 0.696203 |
2c7b23b7628299f1113d367a80f7877aa0071952 | 589 | py | Python | csgame/views.py | someshdube/Crowdsourcing | 497fd46415b4c0fc2be69d42e0661d7fe423b278 | [
"Apache-2.0"
] | null | null | null | csgame/views.py | someshdube/Crowdsourcing | 497fd46415b4c0fc2be69d42e0661d7fe423b278 | [
"Apache-2.0"
] | null | null | null | csgame/views.py | someshdube/Crowdsourcing | 497fd46415b4c0fc2be69d42e0661d7fe423b278 | [
"Apache-2.0"
] | null | null | null | from django.http import *
from django.shortcuts import render_to_response,redirect,render
def profile(request):
return render(request, 'profile.html')
def over(request):
return render(request, 'over.html')
def about(request):
return render(request, 'about.html')
def handler404(request, *args, **argv):
return render(request, '404.html')
def handler500(request, *args, **argv):
return render(request, '500.html')
def phase01b(request):
return render(request, 'phase01b.html')
def stop(request):
return render(request, 'stop.html')
| 24.541667 | 64 | 0.689304 |
b31acfd9ef0b22cc00d423564148ee8cbd5800b7 | 1,639 | py | Python | tests/operation_test.py | SeaOfOcean/EasyParallelLibrary | 93baaa851f5ce078b1c55032a27398a588ca4107 | [
"Apache-2.0"
] | 100 | 2022-02-23T08:54:35.000Z | 2022-03-31T04:02:38.000Z | tests/operation_test.py | chenyang472043503/EasyParallelLibrary | cd2873fe04c86c62e55418129ba2f1dc83d222b4 | [
"Apache-2.0"
] | null | null | null | tests/operation_test.py | chenyang472043503/EasyParallelLibrary | cd2873fe04c86c62e55418129ba2f1dc83d222b4 | [
"Apache-2.0"
] | 22 | 2022-02-23T09:02:01.000Z | 2022-03-18T03:24:00.000Z | # Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# =============================================================================
"""Test for operation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.python.platform import test
import epl
# pylint: disable=missing-docstring,unused-variable
# pylint: disable=protected-access
class OperationTest(test.TestCase):
"""Test cases for operation."""
def test_str(self):
epl.init()
epl.set_default_strategy(epl.replicate(1))
tf.ones([1, 2], name="test")
epl_op = epl.Graph.get().operations["test"]
device = "/job:worker/replica:0/task:0/device:GPU:0"
phase = "MODEL_FORWARD_PHASE"
true_value = "epl.Operation(name='test', device={}, ".format(device) + \
"type=Const, function=None, phase={})".format(phase)
self.assertEqual(str(epl_op), true_value)
# pylint: enable=missing-docstring,unused-variable
# pylint: enable=protected-access
if __name__ == "__main__":
test.main()
| 34.87234 | 79 | 0.704698 |
586ea8ea8193b81329f3810c0c2f001927be5d50 | 2,205 | css | CSS | src/App.css | Nishchay9518/quote-machine | d90a0849e49e4e24682ad11132f8c888e413e0aa | [
"MIT"
] | null | null | null | src/App.css | Nishchay9518/quote-machine | d90a0849e49e4e24682ad11132f8c888e413e0aa | [
"MIT"
] | null | null | null | src/App.css | Nishchay9518/quote-machine | d90a0849e49e4e24682ad11132f8c888e413e0aa | [
"MIT"
] | null | null | null | #root,html,body{
margin: 0;
padding: 0;
height: 100vh;
box-sizing: border-box;
font-size: 15px;
}
.app{
height: 100%;
margin: 0;
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: blueviolet;
text-align: center;
transition: all 300ms ease-in-out;
}
.card{
position: relative;
border: 2px solid white;
background:whitesmoke;
backdrop-filter: blur(10px);
width: 500px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2%;
border-radius: 25px;
box-shadow: 0px 0 20px rgba(0, 0, 0, 0.3);
}
.heading{
display: flex;
justify-content: center;
/* align-items: center; */
padding: 20px;
font-size: 30px;
transition: all 50ms ease-in-out;
}
.heading i{
padding: 0;
margin: 0;
transition: none;
}
.app-header{
color: white;
padding-bottom: 50px;
letter-spacing: 20px;
font-size: 30px;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
text-shadow: 0px 0 20px rgba(0, 0, 0, 0.3);
}
.buttons{
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 44px;
width: 104px;
border:none;
border-radius: 3px;
background-color: blueviolet;
color: white;
outline: none;
font-size: 0.85em;
padding: 8px 18px 6px 18px;
margin-top: 30px;
opacity: 1;
margin-right: -350px;
margin-bottom: 20px;
cursor: pointer;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-shadow: none;
text-align: center;
transition: all 300ms ease-in-out;
}
#author{
position: relative;
align-self: flex-end;
/* right: -170px; */
padding-right: 2rem;
font-size: 1.2rem;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: all 50ms ease-in-out;
}
#footer{
color: white;
font: 100;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
letter-spacing: normal;
padding: 20px;
}
#footer b{
font-size: 12px;
}
| 19.342105 | 75 | 0.620862 |
7ac1d98d61046823d43cef6a0a32e7cf5a4f8c95 | 7,821 | asm | Assembly | x86/vhd/vbr1.asm | gramado/gramlo | d738775276e9b085568553fa664ab7c71be96a13 | [
"BSD-2-Clause"
] | 4 | 2020-12-18T01:32:16.000Z | 2020-12-18T14:09:05.000Z | ge/boot/x86/0vhd/vbr1.asm | moneytech/gramado | 6cef2167281f4d9e93aa1c84135cc918ecb8a008 | [
"BSD-2-Clause"
] | null | null | null | ge/boot/x86/0vhd/vbr1.asm | moneytech/gramado | 6cef2167281f4d9e93aa1c84135cc918ecb8a008 | [
"BSD-2-Clause"
] | 1 | 2020-12-18T14:10:37.000Z | 2020-12-18T14:10:37.000Z | ;; VBR para a partição de boot.
;; O volume começa no setor 63 com esse VBR (boot sector do volume).
;;
;; A FAT1 fica no setor 67, a FAT2 fica no setor ??, o root dir fica
;; no setor 559 a área de dados começa no setor 591.
;;
;;
;; ## VBR ##
;;
;; unsigned char JumpInstruction[3];
db 0xEB, 0x3C, 0x90
;; unsigned char OemName[8];
;; Compatibilidade com host.
db "MSDOS5.0"
;;db 0x4D, 0x53, 0x44, 0x4F, 0x53, 0x35, 0x2E, 0x30
;; unsigned short BytesPerSector;
;; 0x0200
;;Bytes per Sector. The size of a hardware sector.
;;For most disks in use in the United States,
;;the value of this field is 512.
db 0x00, 0x02
;; unsigned char SectorsPerCluster;
;; Sectors Per Cluster. The number of sectors in a cluster.
;; The default cluster size for a volume depends on the volume size
;; and the file system.
db 0x01
;; ?
;; unsigned short NumberOfReservedSectors;
;; O número de setores reservados que ficam entre o vbr e a primeira fat.
;; Reserved Sectors. The number of sectors from the Partition Boot Sector
;; to the start of the first file allocation table,
;; >>>*(INCLUDING) the Partition Boot Sector. <<<
;;The minimum value is 1. (1+3=4)
;; If the value is greater than 1, it means that the bootstrap code
;; is too long to fit completely in the Partition Boot Sector.
db 0x04, 0x00
;; unsigned char NumberOfFATs;
;; Number of file allocation tables (FATs).
;; The number of copies of the file allocation table on the volume.
;; Typically, the value of this field is 2.
db 0x02
;; unsigned short NumberOfRootDirectoryEntries;
;; 0x0200
;; Root Entries. The total number of file name entries
;; that can be stored in the root folder of the volume.
;; One entry is always used as a Volume Label.
;; Files with long filenames use up multiple entries per file.
;; Therefore, the largest number of files in the root folder is
;; typically 511, but you will run out of entries sooner if you
;; use long filenames.
db 0x00, 0x02
;; ??
;; unsigned short TotalSectorCount16;
;; Small Sectors. The number of sectors on the volume if
;; the number fits in 16 bits (65535).
;; For volumes larger than 65536 sectors,
;; this field has a value of 0 and the Large Sectors field is used instead.
;; 0xF8000 = 63488 setores = 31744 KB
;; 0x43FE = 17406 setores = 8703 KB.
;db 0x00, 0xF8
db 0xFE, 0x43
;; ??
;; unsigned char Media;
;; media descriptor. ok.
;; Media Type. Provides information about the media being used.
;; A value of 0xF8 indicates a hard disk.
db 0xF8
;; ??
;; unsigned short SectorsPerFAT;
;; Sectors per file allocation table (FAT).
;;Number of sectors occupied by each of the file allocation tables
;;on the volume. By using this information, together with the
;;Number of FATs and Reserved Sectors, you can compute where
;;the root folder begins. By using the number of entries in the root folder,
;;you can also compute where the user data area of the volume begins.
db 0xF6, 0x00
;; ??
;; unsigned short SectorsPerTrack;
;; Sectors per Track. The apparent disk geometry in use when
;;the disk was low-level formatted.
db 0x3F, 0x00
;; ??
;; unsigned short NumberOfHeads;
;; Number of Heads. The apparent disk geometry in use when
;;the disk was low-level formatted.
db 0x04, 0x00
;; ??
;; unsigned long NumberOfHiddenSectors;
;; ?? Hidden Sectors. Same as the Relative Sector field in the Partition Table.
db 0x3F, 0x00, 0x00, 0x00 ;;@todo: talvez sejam os 63 escondidos.
;; ??
;; unsigned long TotalSectorCount32;
;; Large Sectors. If the Small Sectors field is zero,
;;this field contains the total number of sectors in the volume.
;;If Small Sectors is nonzero, this field contains zero.
db 0x00, 0x00, 0x00, 0x00
;; unsigned char DriveNumber;
;; Physical Disk Number. This is related to the BIOS physical disk number.
;;Floppy drives are numbered starting with 0x00 for the A disk.
;;Physical hard disks are numbered starting with 0x80.
;;The value is typically 0x80 for hard disks, regardless of how many
;;physical disk drives exist, because the value is only relevant if
;;the device is the startup disk.
db 0x80
;; ??
;; unsigned char Reserved1;
;; Current Head. Not used by the FAT file system.
;; @todo: precisa ser 0.
db 0x01
;; unsigned char ExtendedBootSignature;
;; Signature. Must be either 0x28 or 0x29 in
;; order to be recognized by Windows NT.
db 0x29
;; ??
;; #importante
;; unsigned long VolumeSerialNumber;
;; Volume Serial Number. A unique number that is created when you
;; format the volume.
db 0xE3, 0x50, 0xB1, 0x6E
;; unsigned char VolumeLabel[11];
;; Volume Label. This field was used to store the volume label,
;; but the volume label is now stored as special file in the root directory.
db "GRAMADO VBR"
;; unsigned char FileSystemType[8];
;; System ID. Either FAT12 or FAT16, depending on the format of the disk.
db "FAT16 "
;db 0x31, 0x36, 0x20, 0x20
;db 0x20, 0x33, 0xC9, 0x8E
;;
;; ?? Ainda não sei se posso usar outra coisa aqui nessa área de código.
;;
;; unsigned char BootCode[448];
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
;; unsigned short Signature;
db 0x55, 0xAA
| 37.966019 | 97 | 0.703491 |
f4eeeee8c4782bbbbf7a51c2490a853bb849dfce | 151 | ts | TypeScript | types/lib.d.ts | ducnmisbk/react-native-simple-twitter | cfc8855f9d7f46d63a16e26a98af9e13a9eab7c7 | [
"MIT"
] | null | null | null | types/lib.d.ts | ducnmisbk/react-native-simple-twitter | cfc8855f9d7f46d63a16e26a98af9e13a9eab7c7 | [
"MIT"
] | null | null | null | types/lib.d.ts | ducnmisbk/react-native-simple-twitter | cfc8855f9d7f46d63a16e26a98af9e13a9eab7c7 | [
"MIT"
] | null | null | null | export declare const decodeHTMLEntities: (text: string) => string;
export declare const getRelativeTime: (dateTime: string | number | Date) => string;
| 50.333333 | 83 | 0.761589 |
a44aa7647d68a1634fedabbf3fcd93da1d863156 | 12,486 | php | PHP | resources/views/khaosat.blade.php | andv118/bao_cao_hanh_chinh | 289f0b960851d4bf57a7c6eab277843e7369536b | [
"MIT"
] | null | null | null | resources/views/khaosat.blade.php | andv118/bao_cao_hanh_chinh | 289f0b960851d4bf57a7c6eab277843e7369536b | [
"MIT"
] | null | null | null | resources/views/khaosat.blade.php | andv118/bao_cao_hanh_chinh | 289f0b960851d4bf57a7c6eab277843e7369536b | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<title>Hệ thống quản lý hiệp hội</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="sở nội vụ" />
<script src="public/admin/vendors/jquery/dist/jquery.min.js"></script>
<script src="public/canvasjs.min.js"></script>
<script src="public/js/jquery-1.9.1.js"></script>
<script src="public/js/jquery-ui.js"></script>
<script src="public/js/bootstrap3-typeahead.min.js"></script>
<!-- Latest compiled JavaScript -->
<!-- Bootstrap -->
<link href="public/admin/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="public/admin/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="public/admin/vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- iCheck -->
<link href="public/admin/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<!-- bootstrap-progressbar -->
<link href="public/admin/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
<!-- JQVMap -->
<link href="public/admin/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
<!-- bootstrap-daterangepicker -->
<link href="public/admin/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="public/admin/build/css/custom.min.css" rel="stylesheet">
<link href="public/admin/build/css/style.css" rel="stylesheet">
<meta name="csrf-token" content="{{ csrf_token() }}" />
<style type="text/css">
@media (min-width: 1200px) {
.container{
max-width: 1000px;
}
}
body{
background: #fff;
}
.relative{
position: relative;
}
.absolute{
position: absolute;
}
header .form_search{
right: 10px;
bottom: 20px;
}
header .form_search form input{
opacity: .8;
height: 30px;
}
header .form_search form .btn{
right: 0;
top: 50%;
transform: translateY(-50%);
margin: 0;
padding: 2px 5px;
margin-right: 2px;
border-radius: 0;
}
.navbar{
border-radius: 0;
}
.navbar-inverse{
background-color: #015ab4;
border: 0;
min-height: 36px;
}
.navbar-header{
background-color: #015ab4;
}
.nav.navbar-nav>li>a{
color: #fff !important;
}
.navbar-brand{
height: 36px;
padding: 12px 3px;
font-size: 15px;
}
.navbar-brand, .navbar-nav>li>a{
line-height: 15px;
text-transform: uppercase;
}
ul li{
list-style-type: none;
}
.list-group-item:first-child{
border-radius: 0 !important;
}
.list-group-item:last-child{
border-radius: 0 !important;
}
.list-group-item{
background-color: #015ab4;
}
.list-group-item a{
color: #fff;
}
.list-group.v2 .list-group-item{
background: #fff;
border: 0 !important;
padding: 0;
}
.content_main .title{
border-bottom: 1px solid #eee;
color: #015ab4;
margin-bottom: 30px;
}
.content_main .title:before{
content: '';
width: 50px;
height: 1px;
position: absolute;
bottom: 0;
left: 0;
background: #000;
}
.title_v2{
color: #100404;
font-weight: bold;
margin-bottom: 30px;
}
.content_main .content_child .title_child{
font-size: 14px;
color: #000;
font-weight: 600;
margin-bottom: 20px;
line-height: 20px;
}
.content_main .content_child h4{
color: #000;
font-weight: bold;
font-size: 14px;
}
.content_main .content_child .item{
margin-bottom: 30px;
border: 1px solid #eee;
padding: 20px;
}
p{
line-height: 22px;
color: #868686;
}
footer{
padding: 20px;
background: #015ab4;
display: flex;
color: #fff;
margin: 0;
}
footer img{
margin-right: 20px;
object-fit: contain;
}
</style>
</head>
<body class="container">
<header>
<div class="relative text-center" style="padding: 30px;margin-bottom: 30px;">
<a href="#" style="font-size: 36px;font-weight: 600;color: #222;">
HỆ THỐNG QUẢN LÝ HIỆP HỘI
</a>
@if(Session::has('username'))
<a href="{{route('logout')}}" style="position: absolute;right: 0;top: 20px;font-size: 16px;"><span class="glyphicon glyphicon-user"></span><b>{{Session::get('username')}}</b> | Đăng xuất</a>
@else
<a href="{{route('loginn')}}" style="position: absolute;right: 0;top: 20px;font-size: 16px;"><span class="glyphicon glyphicon-user"></span> Đăng nhập</a>
@endif
<!-- <div class="form_search absolute">
<form class="relative">
<input type="text" name="s">
<button type="submit" class="btn btn-primary absolute"><i class="fa fa-search"></i></button>
</form>
</div> -->
</div>
<div class="form_search">
<form class="relative" style="">
<div class="form-group">
<input type="text" class="form-control">
</div>
<button type="submit" class="btn btn-primary absolute"><i class="fa fa-search"></i></button>
</form>
</div>
</header>
<main>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 content_main">
<h3 class="title relative">PHIẾU KHẢO SÁT NĂNG LỰC HỘI NÔNG DÂN VIỆT NAM</h3>
<h3 class="title_v2">Các tổ chức hội, hiệp hội ngành Thông tin và Truyền thông</h3>
<form method="post">
<div class="form-group">
<label for="email">Tên phiếu:</label>
<input type="text" value="Đánh giá hội" placeholder="Nhập tên phiếu" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">Mã phiếu:</label>
<input type="text" value="PH001" placeholder="Nhập mã phiếu" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">Tiêu chuẩn:</label>
<input type="text" value="Năng lực hội" placeholder="Nhập mã tiêu chuẩn" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">Tiêu chí:</label>
<input type="text" value="Đánh giá năng lực hội" placeholder="Nhập tiêu chí" class="form-control" style="width: 400px;">
</div>
<p><b>1. Mô tả hiện trạng (Mô tả theo từng mức đánh giá đối với từng chỉ báo):</b></p>
<div class="form-group">
<label for="pwd">1.1.Mức 1:</label><br>
<b> a)</b><input type="text" class="form-control" style="width: 400px;">
<b> b)</b><input type="text" class="form-control" style="width: 400px;">
<b> c)</b><input type="text" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">1.2.Mức 2 (Nếu có):</label><br>
<input type="text" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">1.3.Mức 3 (Nếu có):</label><br>
<input type="text" class="form-control" style="width: 400px;">
</div>
<div class="form-group">
<label for="pwd">2.Điểm mạnh:</label><br>
<textarea style="width: 400px;"></textarea>
</div>
<div class="form-group">
<label for="pwd">3.Điểm yếu:</label><br>
<textarea style="width: 400px;"></textarea>
</div>
<div class="form-group">
<label for="pwd">4.Kế hoạch phát triển hội:</label><br>
<textarea style="width: 600px;"></textarea>
</div>
<p><b>5.Tự đánh giá</b></p>
<table data-toggle="table" class="table table-hover table-bordered table-responsive table-striped jambo_table bulk_action">
<thead >
<tr>
<th colspan="2" style="text-align: center;">Mức 1</th>
<th colspan="2" style="text-align: center;">Mức 2</th>
<th colspan="2" style="text-align: center;">Mức 3</th>
</tr>
<tr>
<th style="text-align: center;">Chỉ báo</th>
<th style="text-align: center;">Đạt/ Không đạt</th>
<th style="text-align: center;">Chỉ báo</th>
<th style="text-align: center;">Đạt/ Không đạt (Nếu có)</th>
<th style="text-align: center;">Chỉ báo</th>
<th style="text-align: center;">Đạt/ Không đạt (Nếu có)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
</tr>
<tr>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
</tr>
<tr>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
<td style="text-align: center;"><input type="text" name="" class="form-control"></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">Đạt/ Không đạt</td>
<td colspan="2" style="text-align: center;">Đạt/ Không đạt</td>
<td colspan="2" style="text-align: center;">Đạt/ Không đạt</td>
</tr>
</tbody>
</table>
<a href="{{route('userview')}}" class="btn btn-info">Nộp phiếu</a>
</form>
</div>
</div>
</main>
<footer>
<img src="public/images/logo-mic.png" class="img-responsive" alt="">
<div>
<div>CƠ QUAN CHỦ QUẢN: SỞ NỘI VỤ THÀNH PHỐ HÀ NỘI</div>
<div>Copyright 2019 © HTN SOFTWARE</div>
</div>
</footer>
</body>
</html> | 39.891374 | 193 | 0.513615 |
545bf39a2fa84f4e1d37d358992dd67eae0b43b7 | 117 | dart | Dart | shoppingapp/lib/core/constants/inapp/shop_strings.dart | VB10/shopp | ba7a7c7f861d9408fb40e3c7c24c7865ed2caf47 | [
"Apache-2.0"
] | 49 | 2020-04-12T21:13:58.000Z | 2022-03-10T11:37:40.000Z | shoppingapp/lib/core/constants/inapp/shop_strings.dart | VB10/shopp | ba7a7c7f861d9408fb40e3c7c24c7865ed2caf47 | [
"Apache-2.0"
] | null | null | null | shoppingapp/lib/core/constants/inapp/shop_strings.dart | VB10/shopp | ba7a7c7f861d9408fb40e3c7c24c7865ed2caf47 | [
"Apache-2.0"
] | 14 | 2020-04-12T23:22:11.000Z | 2022-03-29T09:20:38.000Z | part of "../app_strings.dart";
class _ShopStrings {
final title = "Pasta & Noodies";
final subTitle = "Card";
}
| 16.714286 | 34 | 0.65812 |
a43877094568ff894a94db3b146282e7587575b1 | 2,408 | swift | Swift | ValidationsDemo/UIViewControllers/Others/ChangePasswordVC.swift | Mindinventory/MIFieldValidator | 281f2950dcab6d595469ff616684eb5acf1e7997 | [
"MIT"
] | 30 | 2019-10-19T21:39:21.000Z | 2021-12-10T09:05:45.000Z | ValidationsDemo/UIViewControllers/Others/ChangePasswordVC.swift | Mindinventory/MIFieldValidator | 281f2950dcab6d595469ff616684eb5acf1e7997 | [
"MIT"
] | null | null | null | ValidationsDemo/UIViewControllers/Others/ChangePasswordVC.swift | Mindinventory/MIFieldValidator | 281f2950dcab6d595469ff616684eb5acf1e7997 | [
"MIT"
] | 12 | 2019-11-06T04:32:16.000Z | 2021-08-03T15:07:18.000Z | //
// ChangePasswordVC.swift
// ValidationsDemo
//
// Created by mac-00011 on 09/10/19.
// Copyright © 2019 Mac-0008. All rights reserved.
//
import UIKit
final class ChangePasswordVC: BaseViewController {
// MARK:- IBOutlets -
@IBOutlet weak var containerView: UIView!
@IBOutlet private weak var confirmPasswordFieldView: InputBaseView!
@IBOutlet private weak var newPasswordFieldView: InputBaseView!
@IBOutlet private weak var oldPasswordFieldView: InputBaseView!
@IBOutlet private weak var updateButton: UIButton!
// MARK:- View LifeCycle -
override func viewDidLoad() {
super.viewDidLoad()
self.isHideNavigationBar = true
}
// MARK:- General Methods -
private func removeInputValues() {
self.oldPasswordFieldView.textField.text = ""
self.newPasswordFieldView.textField.text = ""
self.confirmPasswordFieldView.textField.text = ""
}
override func configUI() {
oldPasswordFieldView.textField.isSecureTextEntry = true
newPasswordFieldView.textField.isSecureTextEntry = true
confirmPasswordFieldView.textField.isSecureTextEntry = true
updateButton.applyCircle()
containerView.makeRoundedCorner(cornderRadious: 20, isTopLeftCorner: true, isTopRightCorner: true, isBottomLeftCorner: false, isBottomRightCorner: false)
}
@IBAction func onBackButton(_ sender: Any) {
self.navigationController?.popViewController(animated: true)
}
}
// MARK:- Action Events -
extension ChangePasswordVC {
@IBAction func onUpdateClicked(_ sender: UIButton) {
// Check Validation For Change Password
let currentPassword = CCurrentPassword // For Testing Set Current Password mind@123
if MIValidation.changePassword(
currentPassword: currentPassword,
oldPasswordFieldView.textField.text?.trim ?? "",
newPasswordFieldView.textField.text?.trim ?? "",
confirmPasswordFieldView.textField.text?.trim ?? ""
) {
self.view.endEditing(true)
CTopMostViewController.presentAlertViewWithOneButtonMIV(
alertTitle: nil,
alertMessage: CPasswordChangeAlert ,
btnOneTitle: COk) { (onOkClicked) in
self.removeInputValues()
self.pop()
}
}
}
}
| 32.540541 | 161 | 0.666113 |
e68a4ee402a454ca3563ea91edda3e36f50a0d92 | 6,501 | c | C | src/vhdwriter/vhdwriter.c | fujiawei-dev/assembly-notes | 883b364ecf80df96b6d5e6cf4e3731de05184e49 | [
"MIT"
] | 1 | 2022-02-04T08:46:41.000Z | 2022-02-04T08:46:41.000Z | src/vhdwriter/vhdwriter.c | fujiawei-dev/assembly-notes | 883b364ecf80df96b6d5e6cf4e3731de05184e49 | [
"MIT"
] | null | null | null | src/vhdwriter/vhdwriter.c | fujiawei-dev/assembly-notes | 883b364ecf80df96b6d5e6cf4e3731de05184e49 | [
"MIT"
] | null | null | null | /*
* @Date: 2022.02.05 20:54
* @Description: Omit
* @LastEditors: Rustle Karl
* @LastEditTime: 2022.02.05 20:54
*/
#include <string.h>
#include <stdarg.h>
#include <getopt.h>
#include <stdlib.h>
#include "vhdwriter.h"
int init_vhd_writer(vhd_writer *writer, const char *vhd_file) {
FILE *fp = fopen(vhd_file, "rb+");
if (fp == NULL) {
writer->error = OPEN_FILE_ERROR;
return 0;
}
writer->fp = fp;
writer->error = NO_ERROR;
return 1;
}
void release_vhd_writer(vhd_writer *writer) {
fclose(writer->fp);
}
int is_valid_vhd(vhd_writer *writer) {
char cookie[9] = {0};
/* the beginning of last sector means VHD cookie */
fseek(writer->fp, -512, SEEK_END);
fread(cookie, 1, 8, writer->fp);
return strcmp(cookie, "conectix") == 0 && (writer->valid = 1);
}
int is_fixed_vhd(vhd_writer *writer) {
int type;
/* the last sector with offset 0x3C means VHD type */
fseek(writer->fp, -512 + 0x3C, SEEK_END);
fread(&type, sizeof(int), 1, writer->fp);
return type == 0x02000000 && (writer->fixed = 1);
}
uint64_t swap_big_little_endian_uint64(uint64_t val) {
val = ((val << 8) & 0xFF00FF00FF00FF00ULL) | ((val >> 8) & 0x00FF00FF00FF00FFULL);
val = ((val << 16) & 0xFFFF0000FFFF0000ULL) | ((val >> 16) & 0x0000FFFF0000FFFFULL);
return (val << 32) | (val >> 32);
}
uint64_t get_vhd_original_size(vhd_writer *writer) {
uint64_t size;
/* the last sector with offset 0x28 means original size */
fseek(writer->fp, -512 + 0x28, SEEK_END);
fread(&size, sizeof(int64_t), 1, writer->fp);
/* reverse big-endian into little-endian */
return writer->size = swap_big_little_endian_uint64(size);
}
geometry get_vhd_geometry(vhd_writer *writer) {
geometry geo;
fseek(writer->fp, -512 + 0x38, SEEK_END);
fread(&geo, sizeof(geo), 1, writer->fp);
return geo;
}
unsigned int write_one_vhd_sector(vhd_writer *writer, int sector_offset, vhd_sector *sector) {
fseek(writer->fp, sector_offset * 512, SEEK_SET);
return fwrite(sector->buffer, 1, sector->valid_bytes, writer->fp);
}
unsigned int write_to_vhd_from_binary_file(vhd_writer *writer, int sector_offset, char *bin_file) {
unsigned int valid_bytes, bytes_written;
unsigned int total_bytes_written = 0, total_sectors = writer->size / 512;
if (sector_offset < 0 || sector_offset >= total_sectors) {
writer->error = OFFSET_OUT_OF_RANGE;
return 0;
}
FILE *fp = fopen(bin_file, "rb");
vhd_sector sector;
if (fp == NULL) {
writer->error = OPEN_FILE_ERROR;
return 0;
}
do {
valid_bytes = fread(sector.buffer, 1, 512, fp);
sector.valid_bytes = valid_bytes;
bytes_written = write_one_vhd_sector(writer, sector_offset++, §or);
total_bytes_written += bytes_written;
} while (sector_offset < total_sectors && valid_bytes == 512 && bytes_written);
fclose(fp);
return total_bytes_written;
}
void printf_message(char *format, ...) {
va_list vl;
va_start(vl, format);
vfprintf(stdout, format, vl);
fprintf(stdout, "\n");
va_end(vl);
}
#define WRITER_MESSAGE(s, ...) printf_message(s, ##__VA_ARGS__)
int main(int argc, char **argv) {
char *help = "Fixed VHD Writer\n\n"
"[-h] usage help\n"
"[-s] show information about specify .vhd file\n"
"[-v] specify .vhd file to write [required]\n"
"[-b] specify .bin file to read\n"
"[-o] specify sector offset to write\n";
if (argc <= 1) {
WRITER_MESSAGE(help);
return -1;
}
vhd_writer writer;
char vhd_file[512] = {0}, bin_file[512] = {0};
int sector_offset = 0;
int show_geometry = 0;
int option;
char *options = "hv:b:o:s";
while ((option = getopt(argc, argv, options)) != -1) {
switch (option) {
case 'h':
WRITER_MESSAGE(help);
return 0;
case 's':
show_geometry = 1;
break;
case 'v':
strcpy(vhd_file, optarg);
break;
case 'b':
strcpy(bin_file, optarg);
break;
case 'o':
sector_offset = atoi(optarg);
break;
default:
printf("default");
break;
}
}
if (strlen(vhd_file) == 0) {
WRITER_MESSAGE("VHD image file is not specified");
return -1;
}
init_vhd_writer(&writer, vhd_file);
if (writer.error == OPEN_FILE_ERROR) {
WRITER_MESSAGE("Open %s file error", vhd_file);
return -1;
}
if (!is_valid_vhd(&writer)) {
WRITER_MESSAGE("Invalid or broken VHD image file");
release_vhd_writer(&writer);
return -1;
}
if (!is_fixed_vhd(&writer)) {
WRITER_MESSAGE("The VHD image is not fixed which is still not support");
release_vhd_writer(&writer);
return -1;
}
uint64_t original_size = get_vhd_original_size(&writer);
if (show_geometry) {
geometry geo = get_vhd_geometry(&writer);
fprintf(stdout,
"Original size: %lluMB\n"
"Cylinder: %d\n"
"Heads: %d\n"
"Sectors Per Cylinder: %d\n",
original_size >> 20, (geo.cylinder[0] << 4) + geo.cylinder[1],
geo.heads, geo.sectors_per_cylinder
);
return 0;
}
if (strlen(bin_file) == 0) {
WRITER_MESSAGE("binary file is not specified");
return -1;
}
unsigned int total_bytes_written = write_to_vhd_from_binary_file(&writer, sector_offset, bin_file);
writer_error error = writer.error;
if (error == OFFSET_OUT_OF_RANGE) {
WRITER_MESSAGE("sector_offset is out of range (0 - %d)", writer.size / 512 - 1);
release_vhd_writer(&writer);
return -1;
} else if (error == OPEN_FILE_ERROR) {
WRITER_MESSAGE("Open %s file error", bin_file);
release_vhd_writer(&writer);
return -1;
}
fprintf(stdout,
"Data: %s\n"
"VHD: %s (sector offset: %d)\n"
"Total bytes written: %u\n"
"Total sectors written: %u\n",
bin_file, vhd_file, sector_offset, total_bytes_written,
total_bytes_written / 512 + (total_bytes_written % 512 != 0));
release_vhd_writer(&writer);
return 0;
}
| 28.265217 | 103 | 0.585756 |
08ab087ea1d136f187f8656b49a479564002a548 | 731 | cpp | C++ | SET_1/00/main.cpp | tony9402/FastCampus_Solution | eb48db9e192cefbe5e0f455afa5195dde25d19c0 | [
"MIT"
] | 19 | 2021-07-06T17:33:33.000Z | 2022-03-25T03:11:28.000Z | SET_1/00/main.cpp | tony9402/FastCampus_Solution | eb48db9e192cefbe5e0f455afa5195dde25d19c0 | [
"MIT"
] | null | null | null | SET_1/00/main.cpp | tony9402/FastCampus_Solution | eb48db9e192cefbe5e0f455afa5195dde25d19c0 | [
"MIT"
] | 3 | 2021-07-07T04:33:47.000Z | 2021-09-25T01:51:14.000Z | // #include<bits/stdc++.h>
#include<iostream>
#include<vector>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int N, M; cin >> N >> M;
vector<int> bulb(N + 1);
for(int i=1;i<=N;i++) cin >> bulb[i];
for(int i=0;i<M;i++){
int command, a, b; cin >> command >> a >> b;
if(command == 1){
bulb[a] = b;
}
else if(command == 2) {
for(int i=a;i<=b;i++) bulb[i] ^= 1;
}
else if(command == 3){
for(int i=a;i<=b;i++) bulb[i] &= 0;
}
else if(command == 4){
for(int i=a;i<=b;i++) bulb[i] |= 1;
}
}
for(int i=1;i<=N;i++) cout << bulb[i] << " ";
return 0;
}
| 20.885714 | 52 | 0.428181 |
c93bea3ebcd95f0cf1d4a0674a5df7057a9aa831 | 46 | tsx | TypeScript | src/components/common/DropdownMultiMenu/index.tsx | harsandevhunt/react-poc | 226b75577f7ec27529a997ae7714dd5651b7c14d | [
"MIT"
] | null | null | null | src/components/common/DropdownMultiMenu/index.tsx | harsandevhunt/react-poc | 226b75577f7ec27529a997ae7714dd5651b7c14d | [
"MIT"
] | 4 | 2021-03-10T17:45:56.000Z | 2022-02-27T04:33:50.000Z | src/components/common/DropdownMultiMenu/index.tsx | harsandevhunt/react-poc | 226b75577f7ec27529a997ae7714dd5651b7c14d | [
"MIT"
] | null | null | null | export { default } from './DropdownMultiMenu'; | 46 | 46 | 0.73913 |
43de784e43e743dd76019b9ee98ebd8e3c809d4c | 4,750 | ts | TypeScript | packages/data/tests/unit/models/metadata/table-test.ts | DekusDenial/framework | 46531c57fbc86dde3d2179aa199debce4db5522f | [
"MIT"
] | null | null | null | packages/data/tests/unit/models/metadata/table-test.ts | DekusDenial/framework | 46531c57fbc86dde3d2179aa199debce4db5522f | [
"MIT"
] | null | null | null | packages/data/tests/unit/models/metadata/table-test.ts | DekusDenial/framework | 46531c57fbc86dde3d2179aa199debce4db5522f | [
"MIT"
] | null | null | null | import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import TableMetadataModel, { TableMetadataPayload } from 'navi-data/models/metadata/table';
import KegService from 'navi-data/services/keg';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let Payload: TableMetadataPayload, Model: TableMetadataModel, Keg: KegService, TableFactory: any;
module('Unit | Metadata Model | Table', function (hooks) {
setupTest(hooks);
hooks.beforeEach(function () {
Payload = {
id: 'tableA',
name: 'Table A',
description: 'Table A',
category: 'table',
cardinality: 'LARGE',
metricIds: ['pv'],
dimensionIds: ['age'],
timeDimensionIds: ['orderDate'],
requestConstraintIds: ['constraint'],
isFact: true,
source: 'bardOne',
tags: ['DISPLAY'],
};
Model = this.owner.factoryFor('model:metadata/table').create(Payload);
//Looking up and injecting keg into the model
Keg = this.owner.lookup('service:keg');
Keg.push(
'metadata/metric',
{
id: 'pv',
name: 'Page Views',
description: 'Page Views',
category: 'Page Views',
source: 'bardOne',
},
{ namespace: 'bardOne' }
);
Keg.push(
'metadata/dimension',
{
id: 'age',
name: 'Age',
description: 'Age',
category: 'category',
source: 'bardOne',
},
{ namespace: 'bardOne' }
);
Keg.push(
'metadata/timeDimension',
{
id: 'orderDate',
name: 'Order Date',
description: 'Order Date',
category: 'category',
source: 'bardOne',
},
{ namespace: 'bardOne' }
);
Keg.push(
'metadata/requestConstraint',
{
id: 'constraint',
name: 'Constraint',
description: 'Constraint',
type: 'existence',
constraint: {},
source: 'bardOne',
},
{ namespace: 'bardOne' }
);
TableFactory = this.owner.factoryFor('model:metadata/table').class;
});
test('factory has identifierField defined', function (assert) {
assert.expect(1);
assert.equal(TableFactory.identifierField, 'id', 'identifierField property is set to `id`');
});
test('it properly hydrates properties', function (assert) {
assert.expect(12);
const {
id,
name,
description,
category,
cardinality,
metricIds,
dimensionIds,
timeDimensionIds,
requestConstraintIds,
source,
isFact,
tags,
} = Model;
assert.equal(id, Payload.id, 'id property is hydrated properly');
assert.equal(name, Payload.name, 'name property is hydrated properly');
assert.equal(description, Payload.description, 'description property is hydrated properly');
assert.equal(category, Payload.category, 'category property is hydrated properly');
assert.equal(cardinality, Payload.cardinality, 'cardinality property is hydrated properly');
assert.deepEqual(metricIds, Payload.metricIds, 'metricIds property is hydrated properly');
assert.deepEqual(dimensionIds, Payload.dimensionIds, 'dimensionIds property is hydrated properly');
assert.deepEqual(timeDimensionIds, Payload.timeDimensionIds, 'timeDimensionIds property is hydrated properly');
assert.deepEqual(
requestConstraintIds,
Payload.requestConstraintIds,
'requestConstraintIds property is hydrated properly'
);
assert.equal(source, Payload.source, 'source property is hydrated properly');
assert.deepEqual(tags, Payload.tags, 'tags property is hydrated properly');
assert.deepEqual(isFact, Payload.isFact, 'isFact property is hydrated properly');
});
test('Metric in Table', function (assert) {
assert.expect(1);
assert.equal(
Model.metrics[0],
Keg.getById('metadata/metric', 'pv', 'bardOne'),
'The Page view metric is properly hydrated'
);
});
test('Dimension in Table', function (assert) {
assert.expect(1);
assert.equal(
Model.dimensions[0],
Keg.getById('metadata/dimension', 'age', 'bardOne'),
'The age dimension is properly hydrated'
);
});
test('Time Dimension in Table', function (assert) {
assert.expect(1);
assert.equal(
Model.timeDimensions[0],
Keg.getById('metadata/timeDimension', 'orderDate', 'bardOne'),
'The Order date time-dimension is properly hydrated'
);
});
test('Request Constraint in Table', function (assert) {
assert.expect(1);
assert.equal(
Model.requestConstraints[0],
Keg.getById('metadata/requestConstraint', 'constraint', 'bardOne'),
'The requestConstraint is properly hydrated'
);
});
});
| 29.141104 | 115 | 0.633263 |
7c01f5fa8329cd5fa6a9c416885f42b8af42f214 | 2,531 | py | Python | examples/rough_translated1/osggraphicscost.py | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | examples/rough_translated1/osggraphicscost.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | examples/rough_translated1/osggraphicscost.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | #!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osggraphicscost"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osg
from osgpypp import osgDB
from osgpypp import osgViewer
# Translated from file 'osggraphicscost.cpp'
# OpenSceneGraph example, osgterrain.
#*
#* Permission is hereby granted, free of charge, to any person obtaining a copy
#* of this software and associated documentation files (the "Software"), to deal
#* in the Software without restriction, including without limitation the rights
#* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#* copies of the Software, and to permit persons to whom the Software is
#* furnished to do so, subject to the following conditions:
#*
#* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#* THE SOFTWARE.
#
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgDB/ReadFile>
#include <osg/GraphicsCostEstimator>
class CalibrateCostEsimator (osg.GraphicsOperation) :
CalibrateCostEsimator(osg.GraphicsCostEstimator* gce):
osg.GraphicsOperation("CalbirateCostEstimator",False),
_gce(gce)
virtual void operator () (osg.GraphicsContext* context)
renderInfo = osg.RenderInfo(context.getState(), 0)
_gce.calibrate(renderInfo)
_gce = osg.GraphicsCostEstimator()
def main(argv):
arguments = osg.ArgumentParser(argv)
# construct the viewer.
viewer = osgViewer.Viewer(arguments)
node = osgDB.readNodeFiles(arguments)
if not node : return 0
gce = osg.GraphicsCostEstimator()
viewer.setSceneData(node)
viewer.realize()
compileCost = gce.estimateCompileCost(node)
drawCost = gce.estimateDrawCost(node)
OSG_NOTICE, "estimateCompileCost(", node.getName(), "), CPU=", compileCost.first, " GPU=", compileCost.second
OSG_NOTICE, "estimateDrawCost(", node.getName(), "), CPU=", drawCost.first, " GPU=", drawCost.second
return viewer.run()
if __name__ == "__main__":
main(sys.argv)
| 29.091954 | 113 | 0.732122 |
ab10ce6f06d4f1fa4bb3efbb81f8ae7bde61dcfd | 4,934 | dart | Dart | lib/src/proto/proto_gen/cosmos/slashing/v1beta1/tx.pb.dart | provenance-io/provenance-dart | 7b3c4dec367cf5a533d6119a9cb10527dec0873b | [
"Apache-2.0"
] | null | null | null | lib/src/proto/proto_gen/cosmos/slashing/v1beta1/tx.pb.dart | provenance-io/provenance-dart | 7b3c4dec367cf5a533d6119a9cb10527dec0873b | [
"Apache-2.0"
] | 1 | 2022-02-05T14:20:38.000Z | 2022-02-05T14:20:38.000Z | lib/src/proto/proto_gen/cosmos/slashing/v1beta1/tx.pb.dart | provenance-io/provenance-dart | 7b3c4dec367cf5a533d6119a9cb10527dec0873b | [
"Apache-2.0"
] | null | null | null | ///
// Generated code. Do not modify.
// source: cosmos/slashing/v1beta1/tx.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
class MsgUnjail extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'MsgUnjail',
package: const $pb.PackageName(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'cosmos.slashing.v1beta1'),
createEmptyInstance: create)
..aOS(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'validatorAddr')
..hasRequiredFields = false;
MsgUnjail._() : super();
factory MsgUnjail({
$core.String? validatorAddr,
}) {
final _result = create();
if (validatorAddr != null) {
_result.validatorAddr = validatorAddr;
}
return _result;
}
factory MsgUnjail.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory MsgUnjail.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
MsgUnjail clone() => MsgUnjail()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgUnjail copyWith(void Function(MsgUnjail) updates) =>
super.copyWith((message) => updates(message as MsgUnjail))
as MsgUnjail; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgUnjail create() => MsgUnjail._();
MsgUnjail createEmptyInstance() => create();
static $pb.PbList<MsgUnjail> createRepeated() => $pb.PbList<MsgUnjail>();
@$core.pragma('dart2js:noInline')
static MsgUnjail getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MsgUnjail>(create);
static MsgUnjail? _defaultInstance;
@$pb.TagNumber(1)
$core.String get validatorAddr => $_getSZ(0);
@$pb.TagNumber(1)
set validatorAddr($core.String v) {
$_setString(0, v);
}
@$pb.TagNumber(1)
$core.bool hasValidatorAddr() => $_has(0);
@$pb.TagNumber(1)
void clearValidatorAddr() => clearField(1);
}
class MsgUnjailResponse extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'MsgUnjailResponse',
package: const $pb.PackageName(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'cosmos.slashing.v1beta1'),
createEmptyInstance: create)
..hasRequiredFields = false;
MsgUnjailResponse._() : super();
factory MsgUnjailResponse() => create();
factory MsgUnjailResponse.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory MsgUnjailResponse.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
MsgUnjailResponse clone() => MsgUnjailResponse()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
MsgUnjailResponse copyWith(void Function(MsgUnjailResponse) updates) =>
super.copyWith((message) => updates(message as MsgUnjailResponse))
as MsgUnjailResponse; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static MsgUnjailResponse create() => MsgUnjailResponse._();
MsgUnjailResponse createEmptyInstance() => create();
static $pb.PbList<MsgUnjailResponse> createRepeated() =>
$pb.PbList<MsgUnjailResponse>();
@$core.pragma('dart2js:noInline')
static MsgUnjailResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<MsgUnjailResponse>(create);
static MsgUnjailResponse? _defaultInstance;
}
| 41.462185 | 212 | 0.693758 |
1310f0ee33e0521a0b89a3793bde48a1dd25129d | 900 | c | C | src/mrbx_vm_call_by_method.c | dearblue/mruby-aux | 534a2a06720b8ad45243506536782780fa56a53c | [
"CC0-1.0"
] | null | null | null | src/mrbx_vm_call_by_method.c | dearblue/mruby-aux | 534a2a06720b8ad45243506536782780fa56a53c | [
"CC0-1.0"
] | null | null | null | src/mrbx_vm_call_by_method.c | dearblue/mruby-aux | 534a2a06720b8ad45243506536782780fa56a53c | [
"CC0-1.0"
] | 1 | 2018-02-13T04:10:01.000Z | 2018-02-13T04:10:01.000Z | #include <mruby-aux/vmext.h>
#include <mruby-aux/compat/mruby.h>
#include <mruby-aux/compat/proc.h>
#include <mruby-aux/proc.h>
mrb_value
mrbx_vm_call_by_method(mrb_state *mrb, struct RClass *tc, mrb_method_t m,
mrb_sym mid, mrb_value recv, int argc, const mrb_value argv[], mrb_value block)
{
mrb_func_t cfunc;
struct RProc *proc;
mrb_assert(!MRB_METHOD_UNDEF_P(m));
mrbx_method_extract(mrb, m, argc, &proc, &cfunc);
int ai = mrb_gc_arena_save(mrb);
mrb_callinfo *ci = mrbx_vm_cipush(mrb, 0, -2 /* ACC_DIRECT */, tc, proc, mid, 0 /* dummy for argc */);
int keeps = mrbx_vm_set_args(mrb, ci, recv, argc, argv, block, 0);
mrb_value ret;
if (cfunc) {
ret = cfunc(mrb, recv);
mrbx_vm_cipop(mrb);
} else {
ci->acc = -1; /* ACC_SKIP */
ret = mrb_vm_run(mrb, proc, recv, keeps);
}
mrb_gc_arena_restore(mrb, ai);
mrb_gc_protect(mrb, ret);
return ret;
}
| 26.470588 | 104 | 0.676667 |
dbe7805810820e156ca83de88edae32ff6f8f319 | 5,133 | php | PHP | resources/views/formateur/create.blade.php | ismael4174/Gestion_stagiaire | 385fa31f658ef07ca2211cff0fbc1d3a454526f6 | [
"MIT"
] | null | null | null | resources/views/formateur/create.blade.php | ismael4174/Gestion_stagiaire | 385fa31f658ef07ca2211cff0fbc1d3a454526f6 | [
"MIT"
] | null | null | null | resources/views/formateur/create.blade.php | ismael4174/Gestion_stagiaire | 385fa31f658ef07ca2211cff0fbc1d3a454526f6 | [
"MIT"
] | null | null | null | @extends("layouts.app")
@section("style")
<link href="assets/plugins/datatable/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
@endsection
@section("wrapper")
<!--start page wrapper -->
<div class="page-wrapper">
<div class="page-content">
<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
<div class="breadcrumb-title pe-3">Formateurs</div>
<div class="ps-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0 p-0">
<li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a>
</li>
<li class="breadcrumb-item active" aria-current="page">Ajouter un formateur</li>
</ol>
</nav>
</div>
</div>
<!--end breadcrumb-->
<div class="row">
<div class="col-xl-7 mx-auto">
<div class="card border-top border-0 border-4 border-primary">
<div class="card-body p-5">
<div class="card-title d-flex align-items-center">
<div><i class="bx bxs-user me-1 font-22 text-primary"></i>
</div>
<h5 class="mb-0 text-primary">Enregistrement d'un formateur</h5>
</div>
<hr>
@if($errors)
@foreach($errors->all() as $error)
<p class="text-danger">{{$error}}</p>
@endforeach
@endif
@if(Session::has('success'))
<p class="text-success">{{session('success')}}</p>
@endif
<form class="row g-3" method="post" action="{{url('formateur')}}">
@csrf
<div class="col-md-6">
<label for="nom_form" class="form-label">Nom</label>
<input type="text" class="form-control" name="nom_form" placeholder="Entrer votre nom">
</div>
<div class="col-md-6">
<label for="pren_form" class="form-label">Prenom</label>
<input type="text" class="form-control" name="pren_form" placeholder="Entrer votre prénom">
</div>
<div class="col-md-6">
<label for="adress_form" class="form-label">Adresse mail</label>
<input type="email" class="form-control" name="adress_form" placeholder="Entrer votre email">
</div>
<div class="col-md-6">
<label for="tel_form" class="form-label">Numero de téléphone</label>
<input type="tel" class="form-control" name="tel_form" placeholder="Entrer votre numero">
</div>
<div class="col-md-6">
<label for="nom_serv" class="form-label">Service d'activité</label>
<select name="id_serv" class="form-select">
<option selected>Choisir...</option>
@foreach($serv as $service)
<option value="{{$service->id}}">{{$service->nom_serv}}</option>
@endforeach
</select>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary px-5">Ajouter</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end page wrapper -->
@endsection
@section("script")
<script src="assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
<script src="assets/plugins/datatable/js/dataTables.bootstrap5.min.js"></script>
<script>
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<script>
$(document).ready(function() {
var table = $('#example2').DataTable( {
lengthChange: false,
buttons: [ 'copy', 'excel', 'pdf', 'print']
} );
table.buttons().container()
.appendTo( '#example2_wrapper .col-md-6:eq(0)' );
} );
</script>
@endsection | 49.834951 | 137 | 0.403273 |
0db6b6770b31905fc2e6731693cdfe48c48f3b49 | 15,019 | cs | C# | src/Orchard.Web/Modules/CloudBust.Application/Services/GamesService.cs | doticca/Orchard.CloudBust | b1fae5236fe37ce00ec19d03ac0159c6e94f6592 | [
"BSD-3-Clause"
] | 1 | 2017-10-23T06:28:08.000Z | 2017-10-23T06:28:08.000Z | src/Orchard.Web/Modules/CloudBust.Application/Services/GamesService.cs | doticca/Orchard.CloudBust | b1fae5236fe37ce00ec19d03ac0159c6e94f6592 | [
"BSD-3-Clause"
] | null | null | null | src/Orchard.Web/Modules/CloudBust.Application/Services/GamesService.cs | doticca/Orchard.CloudBust | b1fae5236fe37ce00ec19d03ac0159c6e94f6592 | [
"BSD-3-Clause"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using CloudBust.Application.Models;
using Orchard;
using Orchard.ContentManagement;
using Orchard.Data;
using Orchard.Security;
using Orchard.Services;
namespace CloudBust.Application.Services {
public class GamesService : IGamesService {
private readonly IApplicationsService _applicationsService;
private readonly IClock _clock;
private readonly IContentManager _contentManager;
private readonly IDataNotificationService _dataNotificationService;
private readonly IRepository<GameEventRecord> _gameeventsRepository;
private readonly IRepository<GameScoreRecord> _gamescoreRepository;
private readonly IRepository<ApplicationGameRecord> _gamesRepository;
private readonly IOrchardServices _orchardServices;
public GamesService(
IContentManager contentManager
, IOrchardServices orchardServices
, IRepository<ApplicationGameRecord> gamesRepository
, IRepository<GameEventRecord> gameeventsRepository
, IApplicationsService applicationsService
, IRepository<GameScoreRecord> gamescoreRepository
, IDataNotificationService datanotificationService
, IClock clock
) {
_orchardServices = orchardServices;
_contentManager = contentManager;
_gamesRepository = gamesRepository;
_gameeventsRepository = gameeventsRepository;
_applicationsService = applicationsService;
_gamescoreRepository = gamescoreRepository;
_dataNotificationService = datanotificationService;
_clock = clock;
}
#region senseapi
public void StoreScore(GameScoreRecord gameScoreRecord) {
_gamescoreRepository.Create(gameScoreRecord);
_dataNotificationService.ScoreUpdated(gameScoreRecord.GameName);
}
public IEnumerable<GameScoreRecord> GetScoreForUserInApplication(string applicationName, string gameName, string userName) {
if (string.IsNullOrWhiteSpace(userName) || string.IsNullOrWhiteSpace(gameName) || string.IsNullOrWhiteSpace(applicationName))
return null;
var scores = from score in _gamescoreRepository.Table
where score.UserName == userName &&
score.GameName == gameName &&
score.ApplicationName == applicationName
select score;
return scores;
}
#endregion
// APPLICATION GAMES
#region Application Games
public ApplicationGameRecord GetGame(int Id) {
try {
var game = _gamesRepository.Get(Id);
return game;
}
catch {
return null;
}
}
public IEnumerable<ApplicationGameRecord> GetGames() {
try {
var games = from game in _gamesRepository.Table select game;
// token check
foreach (var game in games)
if (string.IsNullOrWhiteSpace(game.AppKey))
CreateKeysForGame(game.Id);
return games.ToList();
}
catch {
return new List<ApplicationGameRecord>();
}
}
public IEnumerable<ApplicationGameRecord> GetApplicationGames(ApplicationRecord applicationRecord) {
var games = new List<ApplicationGameRecord>();
if (applicationRecord == null)
return games;
foreach (var game in applicationRecord.Games) games.Add(GetGame(game.ApplicationGame.Id));
return games;
}
public IEnumerable<ApplicationGameRecord> GetApplicationGames(int applicationId) {
var applicationRecord = _applicationsService.GetApplication(applicationId);
return GetApplicationGames(applicationRecord);
}
public IEnumerable<ApplicationGameRecord> GetNonApplicationGames(IUser user, ApplicationRecord applicationRecord) {
if (applicationRecord == null)
return null;
// user games
var games = from game in _gamesRepository.Table where game.Owner == user.UserName select game;
// app games
//var appgames = GetApplicationGames(applicationRecord);
var newgames = new List<ApplicationGameRecord>();
foreach (var game in games) {
var found = false;
foreach (var gameref in applicationRecord.Games)
if (gameref.ApplicationGame.AppKey == game.AppKey)
found = true;
if (!found) newgames.Add(game);
}
return newgames;
}
public string GetGameOwner(string gameKey) {
try {
return _gamesRepository.Get(x => x.AppKey == gameKey).Owner;
}
catch {
return null;
}
}
public IList<ApplicationGameRecord> GetUserGames(IUser user) {
try {
var games = from game in _gamesRepository.Table where game.Owner.ToLowerInvariant() == user.UserName.ToLowerInvariant() select game;
foreach (var game in games)
if (string.IsNullOrWhiteSpace(game.AppKey))
CreateKeysForGame(game.Id);
return games.ToList();
}
catch (Exception ex) {
Console.WriteLine(ex.Message);
return new List<ApplicationGameRecord>();
}
}
public ApplicationGameRecord GetGameByName(string gameName) {
try {
return _gamesRepository.Get(x => x.Name == gameName);
}
catch {
return null;
}
}
public ApplicationGameRecord GetGameByKey(string key) {
return _gamesRepository.Get(x => x.AppKey == key);
}
public ApplicationGameRecord CreateGame(string gameName, string gameDescription, string owner) {
var utcNow = _clock.UtcNow;
var r = new ApplicationGameRecord();
r.Name = gameName;
r.Description = gameDescription;
r.NormalizedGameName = gameName.ToLowerInvariant();
r.Owner = owner;
r.CreatedUtc = utcNow;
r.ModifiedUtc = utcNow;
_gamesRepository.Create(r);
r = GetGameByName(gameName);
CreateKeysForGame(r.Id);
return r;
}
// we should check if we gonna use this as it is
private bool DeleteGame(int Id) {
var game = GetGame(Id);
if (game == null) return false;
var gameName = game.NormalizedGameName;
_gamesRepository.Delete(game);
_dataNotificationService.GameUpdated(gameName);
return true;
}
public bool UpdateGame(int id, string gameName, string gameDescription) {
var gameRecord = GetGame(id);
gameRecord.Name = gameName;
gameRecord.Description = gameDescription;
gameRecord.NormalizedGameName = gameName.ToLowerInvariant();
_dataNotificationService.GameUpdated(gameName, gameRecord);
return true;
}
public bool UpdateGameLocation(int id, double latitude, double longitude) {
var gameRecord = GetGame(id);
gameRecord.Latitude = latitude;
gameRecord.Longitude = longitude;
_dataNotificationService.GameUpdated(gameRecord.NormalizedGameName, gameRecord);
return true;
}
public bool UpdateGameImage(int id, string logoImage) {
var gameRecord = GetGame(id);
gameRecord.LogoImage = logoImage;
_dataNotificationService.GameUpdated(gameRecord.NormalizedGameName, gameRecord);
return true;
}
public bool UpdateGameUrl(int id, string appUrl) {
var gameRecord = GetGame(id);
gameRecord.AppUrl = appUrl;
_dataNotificationService.GameUpdated(gameRecord.NormalizedGameName, gameRecord);
return true;
}
public bool CreateGameForApplication(string applicationName, int gameId) {
var gameRecord = GetGame(gameId);
if (gameRecord == null) return false;
var moduleRecord = _applicationsService.GetApplicationByName(applicationName);
if (moduleRecord == null) return false;
moduleRecord.Games.Add(new ApplicationApplicationGamesRecord {Application = moduleRecord, ApplicationGame = gameRecord});
_dataNotificationService.ApplicationUpdated(moduleRecord);
return true;
}
public bool RemoveGameFromApplication(string applicationName, int gameId) {
var moduleRecord = _applicationsService.GetApplicationByName(applicationName);
if (moduleRecord == null) return false;
foreach (var gameRecord in moduleRecord.Games)
if (gameRecord.ApplicationGame.Id == gameId) {
moduleRecord.Games.Remove(gameRecord);
break;
}
_dataNotificationService.ApplicationUpdated(moduleRecord);
return true;
}
public bool CreateKeysForGame(int id) {
var gameRecord = GetGame(id);
gameRecord.AppKey = CBDataTypes.GenerateIdentifier(16, true);
gameRecord.AppSecret = CBDataTypes.GenerateIdentifier(32);
_dataNotificationService.GameUpdated(gameRecord.NormalizedGameName, gameRecord);
return true;
}
public GameEventRecord GetGameEvent(int Id) {
try {
var ev = _gameeventsRepository.Get(Id);
return ev;
}
catch {
return null;
}
}
public IEnumerable<GameEventRecord> GetGameEvents(ApplicationGameRecord applicationGameRecord) {
if (applicationGameRecord == null)
return new List<GameEventRecord>();
try {
var gameevents = from gameevent in _gameeventsRepository.Table where gameevent.ApplicationGameRecord.Id == applicationGameRecord.Id select gameevent;
return gameevents.OrderBy(x => x.BusinessProcess).ToList();
}
catch {
return new List<GameEventRecord>();
}
}
public GameEventRecord CreateGameEvent(int applicationgameId, string eventName, string eventDescription, GameEventType eventType) {
var applicationGameRecord = GetGame(applicationgameId);
return CreateGameEvent(applicationGameRecord, eventName, eventDescription, eventType);
}
public GameEventRecord CreateGameEvent(ApplicationGameRecord applicationGameRecord, string eventName, string eventDescription, GameEventType eventType) {
if (applicationGameRecord == null) return null;
var r = new GameEventRecord();
r.ApplicationGameRecord = applicationGameRecord;
r.Name = eventName;
r.NormalizedEventName = eventName.ToLowerInvariant();
r.Description = eventDescription;
r.BusinessProcess = GetGameLastBusinessProcess(applicationGameRecord) + 1;
r.GameEventType = (int) eventType;
_gameeventsRepository.Create(r);
_dataNotificationService.GameUpdated(applicationGameRecord.NormalizedGameName, applicationGameRecord);
return GetGameEventByName(applicationGameRecord, eventName);
}
public int GetGameLastBusinessProcess(ApplicationGameRecord applicationGameRecord) {
if (applicationGameRecord == null) return 0;
try {
var item = _gameeventsRepository.Table.Max<GameEventRecord>(i => i.BusinessProcess);
return item;
}
catch {
return 0;
}
}
public GameEventRecord GetGameEventByName(ApplicationGameRecord applicationGameRecord, string eventName) {
try {
return _gameeventsRepository.Get(x => x.ApplicationGameRecord.Id == applicationGameRecord.Id && x.Name == eventName);
}
catch {
return null;
}
}
public void GameEventBusinessProcessUp(int Id) {
var r = GetGameEvent(Id);
if (r == null) return;
try {
var s = _gameeventsRepository.Get(x => x.BusinessProcess == r.BusinessProcess - 1);
s.BusinessProcess = r.BusinessProcess;
r.BusinessProcess = r.BusinessProcess - 1;
_dataNotificationService.GameUpdated(s.ApplicationGameRecord.NormalizedGameName, s.ApplicationGameRecord);
}
catch { }
}
public void GameEventBusinessProcessDown(int Id) {
var r = GetGameEvent(Id);
if (r == null) return;
try {
var s = _gameeventsRepository.Get(x => x.BusinessProcess == r.BusinessProcess + 1);
s.BusinessProcess = r.BusinessProcess;
r.BusinessProcess = r.BusinessProcess + 1;
_dataNotificationService.GameUpdated(s.ApplicationGameRecord.NormalizedGameName, s.ApplicationGameRecord);
}
catch { }
}
public bool UpdateGameEvent(int Id, string eventName, string eventDescription, GameEventType eventType) {
var r = GetGameEvent(Id);
r.Name = eventName;
r.NormalizedEventName = eventName.ToLowerInvariant();
r.Description = eventDescription;
r.GameEventType = (int) eventType;
_dataNotificationService.GameUpdated(r.ApplicationGameRecord.NormalizedGameName, r.ApplicationGameRecord);
return true;
}
public bool DeleteGameEvent(int Id) {
var r = GetGameEvent(Id);
if (r == null) return false;
var bp = r.BusinessProcess;
var gid = r.ApplicationGameRecord.Id;
try {
_gameeventsRepository.Delete(r);
}
catch {
return false;
}
var gameevents = from gameevent in _gameeventsRepository.Table where gameevent.ApplicationGameRecord.Id == gid && gameevent.BusinessProcess > bp select gameevent;
var gevs = gameevents.OrderBy(x => x.BusinessProcess).ToList();
foreach (var ge in gevs) ge.BusinessProcess = ge.BusinessProcess - 1;
_dataNotificationService.GameUpdated(r.ApplicationGameRecord.NormalizedGameName, r.ApplicationGameRecord);
return true;
}
#endregion
}
} | 38.216285 | 174 | 0.611492 |
08c38598f36890ba8f73ce44a3657d20b35751c9 | 1,758 | css | CSS | public/assets/vendor_components/popper/packages/popper/tests/styles/test.css | jogindrakumar/rajputana_body_garage_gym | d5ff66338c7aaa20d729a616b6a91cf29f2bf06b | [
"MIT"
] | 404 | 2015-01-06T17:48:10.000Z | 2021-09-28T00:14:42.000Z | public/assets/vendor_components/popper/packages/popper/tests/styles/test.css | jogindrakumar/rajputana_body_garage_gym | d5ff66338c7aaa20d729a616b6a91cf29f2bf06b | [
"MIT"
] | 28 | 2015-03-04T22:31:39.000Z | 2020-09-09T09:55:21.000Z | public/assets/vendor_components/popper/packages/popper/tests/styles/test.css | jogindrakumar/rajputana_body_garage_gym | d5ff66338c7aaa20d729a616b6a91cf29f2bf06b | [
"MIT"
] | 53 | 2015-02-26T20:36:08.000Z | 2020-09-09T11:50:35.000Z | #rel {
position: absolute;
color: black;
background: yellow;
top: 40vh;
left: 50vw;
padding: 30px;
}
#theEvilBoundary {
position: absolute;
top: 300px;
left: 100px;
background: red;
padding: 200px;
}
#thePopper3 {
height: 200px;
}
.ref {
display: inline-block;
background: red;
padding: 10px;
}
.popper {
background: #222;
color: white;
width: 150px;
border-radius: 2px;
box-shadow: 0 0 2px rgba(0,0,0,0.5);
padding: 5px;
}
.popper .popper__arrow {
width: 0;
height: 0;
border-style: solid;
position: absolute;
margin: 5px;
}
.popper[x-placement^="top"] {
margin-bottom: 5px;
}
.popper[x-placement^="top"] .popper__arrow {
border-width: 5px 5px 0 5px;
border-color: #222 transparent transparent transparent;
bottom: -5px;
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
.popper[x-placement^="bottom"] {
margin-top: 5px;
}
.popper[x-placement^="bottom"] .popper__arrow {
border-width: 0 5px 5px 5px;
border-color: transparent transparent #222 transparent;
top: -5px;
left: calc(50% - 5px);
margin-top: 0;
margin-bottom: 0;
}
.popper[x-placement^="right"] {
margin-left: 5px;
}
.popper[x-placement^="right"] .popper__arrow {
border-width: 5px 5px 5px 0;
border-color: transparent #222 transparent transparent;
left: -5px;
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
.popper[x-placement^="left"] {
margin-right: 5px;
}
.popper[x-placement^="left"] .popper__arrow {
border-width: 5px 0 5px 5px;
border-color: transparent transparent transparent #222;
right: -5px;
top: calc(50% - 5px);
margin-left: 0;
margin-right: 0;
}
| 20.682353 | 59 | 0.61661 |
439140f7f9707080280269836ba6cf23bf763bbb | 4,819 | ts | TypeScript | src/store/Modules/MagicProjects.ts | Motionline/Piledit-FrontEnd | 46438c8b59483e5d5d3b9d1816e61889e3239f2e | [
"MIT"
] | 8 | 2021-01-08T21:39:57.000Z | 2021-02-19T11:06:20.000Z | src/store/Modules/MagicProjects.ts | Motionline/Piledit-FrontEnd | 46438c8b59483e5d5d3b9d1816e61889e3239f2e | [
"MIT"
] | 7 | 2021-01-05T14:21:14.000Z | 2021-02-02T14:05:23.000Z | src/store/Modules/MagicProjects.ts | MotiOnline/Piledit-FrontEnd | 46438c8b59483e5d5d3b9d1816e61889e3239f2e | [
"MIT"
] | 2 | 2021-01-24T04:08:33.000Z | 2021-02-06T21:39:01.000Z | import { Action, Module, Mutation, VuexModule } from 'vuex-module-decorators'
import store, { blocksModule, clipsModule, componentsModule, projectsModule, tabsModule } from '@/store/store'
import firebase from 'firebase'
import { DB } from '@/firebase/db'
import { PBlocks, PClips, PComponents, PProject, PProjects } from '@/@types/piledit'
import { VuexMixin } from '@/mixin/vuex'
import moment from 'moment'
export interface MagicProjectsStateIF {
magicProjectDialog: boolean;
}
@Module({ store: store, name: 'MagicProjectsModule', namespaced: true })
export default class MagicProjects extends VuexModule implements MagicProjectsStateIF {
magicProjectDialog = false
@Mutation
public setMagicProjectDialog (condition: boolean) {
this.magicProjectDialog = condition
}
@Action({ rawError: true })
public updateMagicProjectDialog ({ condition }: { condition: boolean }) {
this.setMagicProjectDialog(condition)
}
@Action({ rawError: true })
public isExistMagicProject ({ uuid }: { uuid: string }): Promise<boolean> {
const magicProjectRef = DB.collection('magicProjects').doc(uuid)
return magicProjectRef.get().then((doc: any) => {
return !!doc.exists
})
}
@Action({ rawError: true })
public async connectMagicProject ({ uuid }: { uuid: string }) {
const magicProjectDoc = await DB.collection('magicProjects').doc(uuid).get()
if (magicProjectDoc.exists) {
const magicProject = magicProjectDoc.data()
const clips = magicProject!.clips as PClips
const components = magicProject!.components as PComponents
const blocks = magicProject!.blocks as PBlocks
await clipsModule.addClips({ clips })
await componentsModule.addComponents({ components })
await blocksModule.addBlocks({ blocks })
const url = await tabsModule.openProjectHome({ projectUuid: uuid, title: magicProject!.name })
tabsModule.routerPush({ url })
await DB.collection('magicProjects').doc(uuid).onSnapshot(async (doc: any) => {
const updatedMagicProject = await doc.data()
const clips = updatedMagicProject!.clips as PClips
const components = updatedMagicProject!.components as PComponents
const blocks = updatedMagicProject!.blocks as PBlocks
await clipsModule.addClips({ clips })
await componentsModule.addComponents({ components })
await blocksModule.addBlocks({ blocks })
})
}
}
@Action({ rawError: true })
public async publishMagicProject () {
const projectUuid = projectsModule.currentViewingProjectUuid
const project = Object.assign({}, projectsModule.projects[projectUuid])
project.isMagicProject = true
projectsModule.update(project)
const clips = await clipsModule.getFilteredClips({ projectUuid })
const components = await componentsModule.getFilteredComponents({ projectUuid })
const blocks = await blocksModule.getFilteredBlocks({ projectUuid })
const magicProjectRef = DB.collection('magicProjects').doc(projectUuid)
await magicProjectRef.set({
...project,
clips: JSON.parse(JSON.stringify(clips)),
components: JSON.parse(JSON.stringify(components)),
blocks: JSON.parse(JSON.stringify(blocks)),
createdAt: (project.createdAt.toString()),
updatedAt: firebase.firestore.FieldValue.serverTimestamp()
}, { merge: true })
await DB.collection('magicProjects').doc(projectUuid).onSnapshot((doc: any) => {
console.log('updated')
const updatedMagicProject = doc.data()
const clips = updatedMagicProject!.clips as PClips
const components = updatedMagicProject!.components as PComponents
const blocks = updatedMagicProject!.blocks as PBlocks
clipsModule.addClips({ clips })
componentsModule.addComponents({ components })
blocksModule.addBlocks({ blocks })
})
}
@Action({ rawError: true })
public async updateMagicProject () {
const projectUuid = projectsModule.currentViewingProjectUuid
const project = Object.assign({}, projectsModule.projects[projectUuid])
projectsModule.update(project)
if (project.isMagicProject) {
const clips = await clipsModule.getFilteredClips({ projectUuid })
const components = await componentsModule.getFilteredComponents({ projectUuid })
const blocks = await blocksModule.getFilteredBlocks({ projectUuid })
const magicProjectRef = DB.collection('magicProjects').doc(projectUuid)
await magicProjectRef.set({
...project,
clips: JSON.parse(JSON.stringify(clips)),
components: JSON.parse(JSON.stringify(components)),
blocks: JSON.parse(JSON.stringify(blocks)),
createdAt: (project.createdAt.toString()),
updatedAt: firebase.firestore.FieldValue.serverTimestamp()
}, { merge: true })
}
}
}
| 43.414414 | 110 | 0.711766 |
6d1523e9da9b30cfed1aa35c29e0abfbdccb1825 | 499 | ts | TypeScript | src/databases/migrations/1586775796162-add-column-display-name.ts | fame1237/test_nestjs_with_type_ORM | 93005fb3f44d456241ea44810014cb5408f338b7 | [
"MIT"
] | null | null | null | src/databases/migrations/1586775796162-add-column-display-name.ts | fame1237/test_nestjs_with_type_ORM | 93005fb3f44d456241ea44810014cb5408f338b7 | [
"MIT"
] | null | null | null | src/databases/migrations/1586775796162-add-column-display-name.ts | fame1237/test_nestjs_with_type_ORM | 93005fb3f44d456241ea44810014cb5408f338b7 | [
"MIT"
] | null | null | null | import {MigrationInterface, QueryRunner, Column, TableColumn} from "typeorm";
export class AddColumnDisplayName1586775796162 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.addColumn('users',new TableColumn({
name: 'displayName',
type: 'varchar',
}));
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropColumn('users','displayName');
}
}
| 29.352941 | 78 | 0.679359 |
7f2f0af056c64be5f28bf3c6eceb2218d6aeb675 | 3,595 | php | PHP | resources/views/form/product.blade.php | ariq2901/relasiLaravel | 51dc011f1f2448ebe299081700489f2a60aff099 | [
"MIT"
] | null | null | null | resources/views/form/product.blade.php | ariq2901/relasiLaravel | 51dc011f1f2448ebe299081700489f2a60aff099 | [
"MIT"
] | null | null | null | resources/views/form/product.blade.php | ariq2901/relasiLaravel | 51dc011f1f2448ebe299081700489f2a60aff099 | [
"MIT"
] | null | null | null | @extends('../masterlayout')
@section('title', 'Product Form')
@section('content')
<div class="container">
<div class="row justify-content-center mt-3 my-5">
<div class="col col-6">
<div class="card">
<div class="card-header bg-success text-light font-weight-bold">Add Your Product</div>
<div class="card-body">
<form action="/add-product" method="post">
@csrf
<div class="form-group">
<label for="name">Product Name</label>
<input type="text" class="form-control @error('name') is-invalid @enderror" name="name" id="name" placeholder="Burger..." >
@error('name')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="merk">Product Merk</label>
<input type="text" class="form-control @error('merk') is-invalid @enderror" name="merk" id="merk" placeholder="Burger King...">
@error('merk')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="category">Category</label>
<select class="form-control" name="category" id="category">
@foreach ($category as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
@error('category_id')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="harga_beli">Harga Beli</label>
<input type="number" class="form-control @error('harga_beli') is-invalid @enderror" name="harga_beli" id="harga_beli" placeholder="35000">
@error('harga_beli')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="harga_jual">Harga Jual</label>
<input type="number" class="form-control @error('harga_jual') is-invalid @enderror" name="harga_jual" id="harga_jual" placeholder="45000">
@error('harga_jual')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="stock">Stock</label>
<input type="number" class="form-control @error('stock') is-invalid @enderror" name="stock" id="stock" placeholder="5">
@error('stock')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="form-group">
<label for="disc">Discount Price</label>
<input type="number" class="form-control @error('disc') is-invalid @enderror" name="disc" id="disc" placeholder="2000">
@error('disc')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<button type="submit" class="btn btn-primary float-right">Submit</button>
<a href="/" class="btn btn-danger float-right mr-3">Cancel</a>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection | 40.393258 | 152 | 0.490403 |
93029acf6449e65048216e48959e2d2f30ca960d | 1,764 | go | Go | commands/errors.go | JiriPapousek/insights-operator-cli | f5951beff32290ab4420e875a4fba784298c248a | [
"Apache-2.0"
] | 3 | 2019-11-18T10:25:27.000Z | 2020-06-17T03:38:22.000Z | commands/errors.go | JiriPapousek/insights-operator-cli | f5951beff32290ab4420e875a4fba784298c248a | [
"Apache-2.0"
] | 338 | 2019-10-23T12:04:04.000Z | 2022-03-01T10:31:21.000Z | commands/errors.go | JiriPapousek/insights-operator-cli | f5951beff32290ab4420e875a4fba784298c248a | [
"Apache-2.0"
] | 7 | 2019-10-10T13:37:35.000Z | 2021-07-19T12:27:55.000Z | /*
Copyright © 2019, 2020, 2021 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package commands
// Generated documentation is available at:
// https://pkg.go.dev/github.com/RedHatInsights/insights-operator-cli/commands
//
// Documentation in literate-programming-style is available at:
// https://redhatinsights.github.io/insights-operator-cli/packages/commands/errors.html
// constants used to display various error messages
const (
cannotReadConfigurationFileErrorMessage = "Cannot read configuration file"
cannotReadAnyConfigurationFileErrorMessage = "Cannot read any configuration file"
errorCommunicationWithServiceErrorMessage = "Error communicating with the service"
errorReadingListOfClusters = "Error reading list of clusters"
errorReadingListOfConfigurations = "Error reading list of configurations"
errorReadingClusterConfiguration = "Error reading cluster configuration"
errorReadingListOfConfigurationProfiles = "Error reading list of configuration profiles"
errorReadingConfigurationProfile = "Error reading configuration profile"
errorReadingListOfTriggers = "Error reading list of triggers"
errorReadingSelectedTrigger = "Error reading selected trigger"
)
| 46.421053 | 92 | 0.776077 |
df2d535d2d0f51e28bb8626ddd0df778a9c80a61 | 3,493 | cs | C# | src/app-ropio/AppRopio.ECommerce/Products/iOS/Views/ProductCard/Cells/Collection/Horizontal/Shops/Cells/PDHShopIndicatorCell.cs | pocheshire/AppRopio.Mobile | 7110eb212efa9f7737ccd154d349acf43079b285 | [
"Apache-2.0"
] | null | null | null | src/app-ropio/AppRopio.ECommerce/Products/iOS/Views/ProductCard/Cells/Collection/Horizontal/Shops/Cells/PDHShopIndicatorCell.cs | pocheshire/AppRopio.Mobile | 7110eb212efa9f7737ccd154d349acf43079b285 | [
"Apache-2.0"
] | null | null | null | src/app-ropio/AppRopio.ECommerce/Products/iOS/Views/ProductCard/Cells/Collection/Horizontal/Shops/Cells/PDHShopIndicatorCell.cs | pocheshire/AppRopio.Mobile | 7110eb212efa9f7737ccd154d349acf43079b285 | [
"Apache-2.0"
] | 1 | 2018-08-01T04:02:43.000Z | 2018-08-01T04:02:43.000Z | using System;
using AppRopio.Base.Core.Converters;
using AppRopio.Base.iOS;
using AppRopio.Base.iOS.UIExtentions;
using AppRopio.ECommerce.Products.Core.ViewModels.ProductCard.Items.Collection.Horizontal.Shops.Items;
using AppRopio.ECommerce.Products.iOS.Models;
using AppRopio.ECommerce.Products.iOS.Services;
using Foundation;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Binding.iOS.Views;
using MvvmCross.Platform;
using UIKit;
namespace AppRopio.ECommerce.Products.iOS.Views.ProductCard.Cells.Collection.Horizontal.Shops.Cells
{
public partial class PDHShopIndicatorCell : MvxCollectionViewCell
{
protected ProductsThemeConfig ThemeConfig { get { return Mvx.Resolve<IProductsThemeConfigService>().ThemeConfig; } }
public static readonly NSString Key = new NSString("PDHShopIndicatorCell");
public static readonly UINib Nib;
static PDHShopIndicatorCell()
{
Nib = UINib.FromName("PDHShopIndicatorCell", NSBundle.MainBundle);
}
protected PDHShopIndicatorCell(IntPtr handle) : base(handle)
{
this.DelayBind(() =>
{
InitializeControls();
BindControls();
});
}
#region InitializationControls
protected virtual void InitializeControls()
{
Layer.SetupStyle(ThemeConfig.ProductDetails.DetailsCell.ShopsCompilation.Cell.Layer);
SetupIndicator(_indicator);
SetupName(_name);
SetupAddress(_address);
}
protected virtual void SetupIndicator(UIView indicator)
{
indicator.ClipsToBounds = true;
indicator.Layer.MasksToBounds = true;
indicator.Layer.CornerRadius = 5;
}
protected virtual void SetupName(UILabel name)
{
name.SetupStyle(ThemeConfig.ProductDetails.DetailsCell.ShopsCompilation.Cell.Name);
}
protected virtual void SetupAddress(UILabel address)
{
address.SetupStyle(ThemeConfig.ProductDetails.DetailsCell.ShopsCompilation.Cell.Address);
}
#endregion
#region BindingControls
protected virtual void BindControls()
{
var set = this.CreateBindingSet<PDHShopIndicatorCell, IShopAvailabilityItemVM>();
BindIndicator(_indicator, set);
BindName(_name, set);
BindAddress(_address, set);
set.Apply();
}
protected virtual void BindIndicator(UIView indicator, MvxFluentBindingDescriptionSet<PDHShopIndicatorCell, IShopAvailabilityItemVM> set)
{
set.Bind(indicator)
.For(v => v.BackgroundColor)
.To(vm => vm.IsProductAvailable)
.WithConversion(
"TrueFalse",
new TrueFalseParameter { True = Theme.ColorPalette.Accent.ToUIColor(), False = Theme.ColorPalette.DisabledControl.ToUIColor() }
);
}
protected virtual void BindName(UILabel name, MvxFluentBindingDescriptionSet<PDHShopIndicatorCell, IShopAvailabilityItemVM> set)
{
set.Bind(name).To(vm => vm.Name);
}
protected virtual void BindAddress(UILabel address, MvxFluentBindingDescriptionSet<PDHShopIndicatorCell, IShopAvailabilityItemVM> set)
{
set.Bind(address).To(vm => vm.Address);
}
#endregion
}
}
| 32.64486 | 146 | 0.647295 |
a16f265ef81e79c7a9911011688def54f23e28d9 | 1,857 | ts | TypeScript | packages/sc-core/src/types/category.ts | selfcommunity/community-ui | 83a6ac67c9b4bc93e745e76b07856656dfbea446 | [
"MIT"
] | null | null | null | packages/sc-core/src/types/category.ts | selfcommunity/community-ui | 83a6ac67c9b4bc93e745e76b07856656dfbea446 | [
"MIT"
] | null | null | null | packages/sc-core/src/types/category.ts | selfcommunity/community-ui | 83a6ac67c9b4bc93e745e76b07856656dfbea446 | [
"MIT"
] | 1 | 2022-03-31T14:44:29.000Z | 2022-03-31T14:44:29.000Z | import {SCTagType} from './tag';
/**
* Interface SCCategoryType.
* Category Schema.
*/
export interface SCCategoryType {
/**
* The ID of the category.
*/
id: number;
/**
* The manual ordering number of the category.
*/
order?: number;
/**
* The name of the category.
*/
name: string;
/**
* The synonyms/aliases of the category.
*/
name_synonyms?: string;
/**
* The slug of the category.
*/
slug?: string;
/**
* The slogan of the category.
*/
slogan?: string;
/**
* The category's html text.
*/
html_info?: string;
/**
* The category's html meta tag.
*/
seo_title?: string;
/**
* The description for category's html meta tag.
*/
seo_description?: string;
/**
* The category's auto follow behaviour.
*/
auto_follow?: string;
/**
* The category status.
*/
active?: boolean;
/**
* The category status.
*/
deleted?: boolean;
/**
* The category's image with min size.
*/
image_original?: string;
/**
* The category's auto generated bigger size.
*/
image_bigger?: string;
/**
* The category's auto generated big size.
*/
image_big?: string;
/**
* The category's auto generated medium size.
*/
image_medium?: string;
/**
* The category's auto generated small size.
*/
image_small?: string;
/**
* The landscape format image for category hub.
*/
emotional_image_original?: string;
/**
* The css background-position.
*/
emotional_image_position?: number;
/**
* The last modify (datetime)
*/
lastmod_datetime?: string;
/**
* The order of the category feed.
*/
stream_order_by?: string;
/**
* The category's tags.
*/
tags?: Array<SCTagType>;
/**
* Followers counter for the category.
*/
followers_count?: number;
}
| 15.221311 | 50 | 0.588045 |
ed11a9a51ca99dd40292b54b9306b21263395edf | 1,412 | h | C | WebDriverAgentLib/Utilities/XCUIApplicationProcessDelay.h | tuxi/WebDriverAgentBackup | e0923925d0a253cc2067fbedea8b3b97e94e74f4 | [
"BSD-3-Clause"
] | 610 | 2016-09-09T17:01:21.000Z | 2022-03-28T21:21:31.000Z | WebDriverAgentLib/Utilities/XCUIApplicationProcessDelay.h | tuxi/WebDriverAgentBackup | e0923925d0a253cc2067fbedea8b3b97e94e74f4 | [
"BSD-3-Clause"
] | 304 | 2015-12-23T19:30:10.000Z | 2022-03-27T08:37:06.000Z | WebDriverAgentLib/Utilities/XCUIApplicationProcessDelay.h | tuxi/WebDriverAgentBackup | e0923925d0a253cc2067fbedea8b3b97e94e74f4 | [
"BSD-3-Clause"
] | 265 | 2015-12-23T16:45:26.000Z | 2022-03-31T04:36:08.000Z | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
In certain cases WebDriverAgent fails to create a session because -[XCUIApplication launch] doesn't return
since it waits for the target app to be quiescenced.
The reason for this seems to be that 'testmanagerd' doesn't send the events WebDriverAgent is waiting for.
The expected events would trigger calls to '-[XCUIApplicationProcess setEventLoopHasIdled:]' and
'-[XCUIApplicationProcess setAnimationsHaveFinished:]', which are the properties that are checked to
determine whether an app has quiescenced or not.
Delaying the call to on of the setters can fix this issue.
*/
@interface XCUIApplicationProcessDelay : NSObject
/**
Delays the invocation of '-[XCUIApplicationProcess setEventLoopHasIdled:]' by the timer interval passed
@param delay The duration of the sleep before the original method is called
*/
+ (void)setEventLoopHasIdledDelay:(NSTimeInterval)delay;
/**
Disables the delayed invocation of '-[XCUIApplicationProcess setEventLoopHasIdled:]'.
*/
+ (void)disableEventLoopDelay;
@end
NS_ASSUME_NONNULL_END
| 36.205128 | 107 | 0.783286 |
2c8d41f2bea794a70ad7ec39d84322fe3304e038 | 99 | py | Python | etc/scripts/pygments_style.py | bkchung/dotfiles_old | 396582eaea2a593f5f05908e136dca2cdf0fd29c | [
"Vim",
"curl",
"MIT"
] | 852 | 2015-01-15T23:22:27.000Z | 2022-03-12T04:13:45.000Z | etc/scripts/pygments_style.py | bkchung/dotfiles_old | 396582eaea2a593f5f05908e136dca2cdf0fd29c | [
"Vim",
"curl",
"MIT"
] | 6 | 2015-10-05T02:47:13.000Z | 2022-03-11T15:34:31.000Z | etc/scripts/pygments_style.py | bkchung/dotfiles_old | 396582eaea2a593f5f05908e136dca2cdf0fd29c | [
"Vim",
"curl",
"MIT"
] | 326 | 2015-02-26T12:37:39.000Z | 2022-03-13T12:34:46.000Z | from pygments.styles import get_all_styles
styles = list(get_all_styles())
print '\n'.join(styles)
| 24.75 | 42 | 0.787879 |
651970f7cfa82215583c6b4dd662464b4daf4e67 | 344 | css | CSS | public/stylesheets/style.css | aaronfuj/contest_scoreboard | edd12cc78cd792cf4893e6ba1c2b2a91245ce5f4 | [
"MIT"
] | 2 | 2020-03-07T23:06:27.000Z | 2020-03-08T21:20:16.000Z | public/stylesheets/style.css | aaronfuj/contest_scoreboard | edd12cc78cd792cf4893e6ba1c2b2a91245ce5f4 | [
"MIT"
] | null | null | null | public/stylesheets/style.css | aaronfuj/contest_scoreboard | edd12cc78cd792cf4893e6ba1c2b2a91245ce5f4 | [
"MIT"
] | null | null | null | body {
/* padding: 50px; */
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}
.home-login-button {
background-color: lightblue;
}
.home-spectate-button {
background-color: lightgreen;
}
.home-button {
width: 100%;
height: 50vh;
line-height: 50vh;
font-size: 6vw;
vertical-align: middle;
} | 14.333333 | 59 | 0.651163 |
7317ff64ca0f15790e2cd37c57c8426e52c08d7c | 349,352 | sql | SQL | localhost_database_file/cashbook_localhost1.sql | 6879/cashbook | 6405b13020e76c3899f9eb659d6fad1259789ff4 | [
"MIT"
] | null | null | null | localhost_database_file/cashbook_localhost1.sql | 6879/cashbook | 6405b13020e76c3899f9eb659d6fad1259789ff4 | [
"MIT"
] | null | null | null | localhost_database_file/cashbook_localhost1.sql | 6879/cashbook | 6405b13020e76c3899f9eb659d6fad1259789ff4 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 02, 2021 at 06:58 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.3.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `test`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_groups`
--
CREATE TABLE `account_groups` (
`id` bigint(20) UNSIGNED NOT NULL,
`groupName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`position` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `account_groups`
--
INSERT INTO `account_groups` (`id`, `groupName`, `status`, `position`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Assets', 0, 0, 0, NULL, NULL, NULL, NULL, NULL),
(2, 'Liabilities', 0, 0, 0, NULL, NULL, NULL, NULL, NULL),
(3, 'Income', 0, 0, 0, NULL, NULL, NULL, NULL, NULL),
(4, 'Production', 0, 0, 0, NULL, NULL, NULL, NULL, NULL),
(5, 'Expences', 0, 0, 0, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `account_setups`
--
CREATE TABLE `account_setups` (
`id` bigint(20) UNSIGNED NOT NULL,
`placementType` int(11) NOT NULL,
`headName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`headCode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`deleteStatus` tinyint(1) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `account_setups`
--
INSERT INTO `account_setups` (`id`, `placementType`, `headName`, `headCode`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(4, 15, '45', '1020101', 1, NULL, 1, NULL, NULL, '2021-04-30 22:10:26', NULL, NULL),
(5, 15, '46', '2020201', 1, NULL, 1, NULL, NULL, '2021-04-30 22:11:22', NULL, NULL),
(6, 15, '47', '1020101', 1, NULL, 1, NULL, NULL, '2021-04-30 23:19:43', NULL, NULL),
(7, 15, '48', '10202', 1, NULL, 1, NULL, NULL, '2021-04-30 23:47:16', NULL, NULL),
(8, 15, '49', '1020102', 1, NULL, 1, NULL, NULL, '2021-05-01 00:15:33', NULL, NULL),
(9, 15, '50', '2020201', 1, NULL, 1, NULL, NULL, '2021-05-01 00:16:02', NULL, NULL),
(10, 15, '51', '1020102', 1, NULL, 1, NULL, NULL, '2021-05-01 00:18:40', NULL, NULL),
(11, 15, '52', '10202', 1, NULL, 1, NULL, NULL, '2021-05-01 00:19:29', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `account_setup_head_lists`
--
CREATE TABLE `account_setup_head_lists` (
`id` bigint(20) UNSIGNED NOT NULL,
`placementId` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`deleteStatus` tinyint(1) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `account_setup_head_lists`
--
INSERT INTO `account_setup_head_lists` (`id`, `placementId`, `name`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 1, 'Local Purchase', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(2, 1, 'Carriage Inward', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(3, 1, 'Others Purchase Cost', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(4, 1, 'Damage & Warranty', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(5, 1, 'Liability Others Purchase Cost', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(6, 1, 'Prov-Damage & Warranty', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(7, 1, 'Purchase Discount', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(10, 2, 'Local Inventory', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(11, 2, 'Opening Account', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(12, 3, 'Opening Account', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(13, 4, 'Labor Cost', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(14, 4, 'Transport Cost', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(15, 4, 'Discount', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(16, 4, 'Cash Account', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(17, 5, 'Accounts Payable Supplier', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(18, 6, 'Accounts Payable Saller Hub', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(19, 7, 'Accounts Receivable General Customer', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(23, 7, 'Accounts Receivable Marchent', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(25, 8, 'cash at bank', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(26, 9, 'From Bank', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(27, 9, 'From Other', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(28, 10, 'Bank', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(29, 10, 'Plot', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(30, 10, 'Flat', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(31, 10, 'Land', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(32, 11, 'Deposit Bank', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(33, 11, 'Deposit Other', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(34, 12, 'Pre-payment Office', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(35, 12, 'Pre-payment Other', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(36, 13, 'Advance Salary', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(37, 13, 'Advance Other', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(38, 14, 'Transportation & Carring Expances', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(39, 14, 'Cost of Carriage Inward', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(40, 14, 'Travelling Expenses', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(41, 14, 'Liability Carriage Inward', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(42, 14, 'Liability Others Purchase Cost', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(43, 14, 'Prov-Damage & Warranty', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(44, 14, 'Non Operating Income', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(45, 15, 'cash payment voucher dr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(46, 15, 'cash payment voucher cr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(47, 15, 'cash receive voucher dr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(48, 15, 'cash receive voucher cr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(49, 15, 'bank payment voucher dr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(50, 15, 'bank payment voucher cr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(51, 15, 'bank receive voucher dr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(52, 15, 'bank receive voucher cr', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(53, 16, 'Local Inventroy', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(54, 16, 'Import Inventroy', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(55, 16, 'Local Purchase', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(56, 16, 'Import Purchase', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(57, 16, 'Local Cost of good sold', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(58, 16, 'Import Cost of good sold', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(59, 16, 'Local Sale', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(60, 16, 'Import Sale', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(61, 17, 'Sales Return', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(62, 17, 'Purchase Return', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(63, 18, 'Company', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(64, 18, 'Personal', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(65, 19, 'Tax', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(66, 19, 'Vat', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(67, 19, 'Expens', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(68, 20, 'Local Agent Deposit', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(69, 20, 'Foreign Agent Deposit', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(70, 20, 'Liabilitie Commission RSC', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(71, 20, 'Liabilitie Commission NSC', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(72, 20, 'Liabilitie Commission Division', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(73, 20, 'Liabilitie Commission District', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(74, 20, 'Liabilitie Commission Thana', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(75, 20, 'Liabilitie Commission SC', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(76, 20, 'Liabilitie Commission ASC', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(77, 20, 'Liabilitie Commission Affiliate', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(80, 1, 'Import Purchase', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(81, 1, 'Inventory Finish Goods Local', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(82, 1, 'Inventory Finish Goods Import', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(83, 1, 'Liability Carriage Inward', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(84, 4, 'Cost of good sold Local', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(85, 4, 'Cost of good sold Import', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(86, 4, 'Inventory Finish Goods Local', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(87, 4, 'Inventory Finish Goods Import', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(88, 4, 'Sales Product Local', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(89, 4, 'Sales Product Import', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(90, 21, 'Cash Account', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(91, 4, 'Inter Branch stock account', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL),
(92, 22, 'Accounts Payable Vendors', 1, NULL, 1, NULL, NULL, '2021-04-29 06:29:06', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `account_setup_placement_lists`
--
CREATE TABLE `account_setup_placement_lists` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`deleteStatus` tinyint(1) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `account_setup_placement_lists`
--
INSERT INTO `account_setup_placement_lists` (`id`, `name`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 'Purchase Invoice', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(2, 'Opening Inventory', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(3, 'Opening Voucher', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(4, 'Sale Invoice', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(5, 'Supplier Registration', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(6, 'Salerhub Registration', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(7, 'Customer Registration', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(8, 'Bank Book', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(9, 'Loan Payable Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(10, 'Investment Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(11, 'Deposit & Security Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(12, 'Prepayment Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(13, 'Advance Payment Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(14, 'Product Update', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(15, 'Voucher Entry', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(16, 'Add Category', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(17, 'Product Return', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(18, 'Loans Receivable Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(19, 'Vat,Tax & Expans', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(20, 'Agent Deposit Register', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(21, 'Branch Setup', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL),
(22, 'Vendor Registration', 1, NULL, 1, NULL, NULL, '2021-04-29 06:31:02', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `add_product_supplier_entries`
--
CREATE TABLE `add_product_supplier_entries` (
`productSupplierId` bigint(20) UNSIGNED NOT NULL,
`productSupplierName` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierCode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierPhone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierHotLine` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierMail` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierFb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierWeb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierImo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productSupplierAddress` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopId` int(11) DEFAULT NULL,
`shopTypeId` int(11) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `add_product_supplier_entries`
--
INSERT INTO `add_product_supplier_entries` (`productSupplierId`, `productSupplierName`, `productSupplierCode`, `productSupplierPhone`, `productSupplierHotLine`, `productSupplierMail`, `productSupplierFb`, `productSupplierWeb`, `productSupplierImo`, `productSupplierAddress`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'saiful', '1', '0170101001', '12222222', '[email protected]', 'fsf', 'fsdfsd', '01910101010', 'Barisal', 1, 1, 3, 3, '2020-03-26 04:11:30', '2020-03-30 05:02:23'),
(2, 'Mamun', '2', '01712121212', '111111111', '[email protected]', 'aaaaa', 'aaaaaa', '0190000010', 'Dhaka', 1, 1, 3, 3, '2020-03-26 04:11:30', '2020-03-30 05:03:36'),
(3, 'Rana', '3', '0171212121', '33333333', '[email protected]', 'sssssssssss', 'sssssssssss', '01900099999', 'Barisal', 1, 1, 3, 3, '2020-03-26 04:11:30', '2020-03-30 05:02:31'),
(4, 'Manun2', '1', '0170000000', 'aaaaaaaaa', '[email protected]', 'sssssssssss', 'fsdfsd', '535', 'sadf', 1, 1, 5, NULL, '2020-03-26 04:11:30', NULL),
(5, 'Miraj', '4', '01712121222', '34444444', '[email protected]', 'fsf', 'fsdfsd', '017000000', 'Pabna', 1, 1, 3, 3, '2020-03-26 04:11:30', '2020-03-30 05:02:49'),
(6, 'Imran', '5', '0170000012', '12222222', '[email protected]', 'imran', 'imran', 'imran', 'imran', 1, 1, 3, NULL, '2020-07-13 07:04:40', NULL),
(7, 'Kawsir', '6', '0170034541', '2562', '[email protected]', 'ransdfdsa', 'ransdfdsa', 'ransdfdsa', 'ransdfdsa', 1, 1, 3, 3, '2020-07-13 09:12:39', '2021-04-18 07:14:09'),
(8, 'Md Nazmul Huda', '1', '01812454358', '01812454358', '[email protected]', 'fb.com/nazmulfci', 'doofaz.it.com', '01812454358', 'Dhaka', 2, 4, 14, NULL, '2021-03-08 05:13:04', '2021-03-08 05:13:05'),
(10, 'Arif', '1', '0181245435833', '01831710927', '[email protected]', 'fb.com/doofazit', 'www.doofazit.com', '01812454358', 'H#99, Sher shah suri road, townhall, mohammadpur, Dhaka-1207', 3, 4, 3, 3, '2021-04-18 08:25:22', '2021-04-24 15:48:23');
-- --------------------------------------------------------
--
-- Table structure for table `adminlicence_types`
--
CREATE TABLE `adminlicence_types` (
`licenceTypesId` bigint(20) UNSIGNED NOT NULL,
`licenceTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`licenceTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `adminlicence_types`
--
INSERT INTO `adminlicence_types` (`licenceTypesId`, `licenceTypeName`, `licenceTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'R-1235', 1, 1, 1, '2020-03-26 15:35:01', '2020-06-24 09:24:19'),
(2, 'R-3456', 1, 1, 1, '2020-03-26 15:35:05', '2020-06-24 09:25:34');
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` bigint(20) UNSIGNED NOT NULL,
`role` int(11) NOT NULL DEFAULT 3,
`shopName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopSirialId` int(11) NOT NULL,
`email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastLoginIp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`refferTypeId` int(11) NOT NULL,
`refferUserId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`shopLicenceTypeId` int(11) NOT NULL,
`website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`facebook` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`haveBranch` int(11) NOT NULL,
`totalBranch` int(11) NOT NULL,
`currencyId` int(11) NOT NULL,
`paymentStatus` int(11) NOT NULL DEFAULT 1,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `role`, `shopName`, `shopSirialId`, `email`, `password`, `pass`, `lastLoginIp`, `refferTypeId`, `refferUserId`, `shopTypeId`, `shopLicenceTypeId`, `website`, `facebook`, `youtube`, `haveBranch`, `totalBranch`, `currencyId`, `paymentStatus`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(3, 3, 'dealtaj', 1011, '[email protected]', '$2y$10$0.dsuKtKA6TfX6.0Kzf3KOEXtXLC98FvYyOAcKxzvIRmtrqSVIGse', '123', '1', 0, 2, 4, 0, NULL, NULL, NULL, 1, 2, 6, 2, 1, 0, 1, NULL, NULL, '2021-04-14 16:29:39', '2021-04-24 15:33:58', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `admin_bussiness_types`
--
CREATE TABLE `admin_bussiness_types` (
`bussinessTypeId` bigint(20) UNSIGNED NOT NULL,
`bussinessTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bussinessTypeStatus` int(11) NOT NULL,
`createBy` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`updateBy` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_bussiness_types`
--
INSERT INTO `admin_bussiness_types` (`bussinessTypeId`, `bussinessTypeName`, `bussinessTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'HP', 1, '1', NULL, '2020-06-24 10:29:46', NULL),
(2, 'Asus', 1, '1', NULL, '2020-06-24 10:30:05', NULL),
(4, 'Dell', 1, '1', NULL, '2020-06-24 10:34:03', '2020-06-24 10:35:16');
-- --------------------------------------------------------
--
-- Table structure for table `admin_entries`
--
CREATE TABLE `admin_entries` (
`adminId` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`userId` int(11) NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_entries`
--
INSERT INTO `admin_entries` (`adminId`, `name`, `phone`, `email`, `userId`, `password`, `address`, `role`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Shohel Rana', '0170000000', '[email protected]', 1, '123456', 'Pabna', 2, 1, NULL, '2020-06-24 07:38:15', NULL),
(2, 'Shohel Rana 2', '0170000002', '[email protected]', 2, '12345', 'Dhaka', 2, 1, 1, '2021-03-16 21:15:31', '2021-03-16 21:15:31'),
(3, 'arif', '01882061784', '[email protected]', 3, '12345678', 'sdfdf', 2, 1, NULL, '2021-03-16 21:11:16', NULL),
(4, 'do', '12', '[email protected]', 4, '12345678', 'df', 2, 1, NULL, '2021-03-24 08:32:24', NULL),
(5, 'Nazmul', '1632077744', '[email protected]', 5, '12345678', 'Elida Ho', 2, 1, NULL, '2021-03-24 09:05:35', NULL),
(6, 'saiful', '01', '[email protected]', 6, '12345678', 'zddf', 2, 1, NULL, '2021-03-24 09:06:02', NULL),
(7, 'Acc Saiful', '01812454358', '[email protected]', 7, '11111111', 'Nikunja, khilkhet\nHouse#10,Road#7/D,Dhaka', 2, 1, 35, '2021-04-11 15:18:58', '2021-04-11 15:21:01');
-- --------------------------------------------------------
--
-- Table structure for table `admin_grades`
--
CREATE TABLE `admin_grades` (
`gradeId` bigint(20) UNSIGNED NOT NULL,
`grade` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gradeStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_grades`
--
INSERT INTO `admin_grades` (`gradeId`, `grade`, `gradeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'B', '1', 1, 1, '2020-04-15 08:47:03', '2020-06-28 12:09:56'),
(3, 'A', '1', 1, 1, '2020-04-15 10:16:47', '2020-04-15 14:43:35');
-- --------------------------------------------------------
--
-- Table structure for table `admin_holiday_setups`
--
CREATE TABLE `admin_holiday_setups` (
`holidaySetupId` bigint(20) UNSIGNED NOT NULL,
`holidayTypeId` int(11) NOT NULL,
`holidayStartDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`holidayEndDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`holidaySetupStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_holiday_setups`
--
INSERT INTO `admin_holiday_setups` (`holidaySetupId`, `holidayTypeId`, `holidayStartDate`, `holidayEndDate`, `holidaySetupStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(3, 2, '2020-04-06', '2020-04-09', 1, 1, NULL, '2020-04-06 10:17:14', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `admin_holiday_types`
--
CREATE TABLE `admin_holiday_types` (
`holidayTypeId` bigint(20) UNSIGNED NOT NULL,
`holidayTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`holidayTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_holiday_types`
--
INSERT INTO `admin_holiday_types` (`holidayTypeId`, `holidayTypeName`, `holidayTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Friday', 1, 1, 1, '2020-04-06 09:42:10', '2020-04-06 09:48:31'),
(2, 'Sunday', 1, 1, 1, '2020-04-06 09:42:23', '2020-04-06 09:56:14'),
(3, 'Monday', 1, 1, 1, '2020-04-06 09:56:52', '2020-06-24 09:20:17');
-- --------------------------------------------------------
--
-- Table structure for table `admin_menus`
--
CREATE TABLE `admin_menus` (
`adminMenuId` bigint(20) UNSIGNED NOT NULL,
`adminMenuTitleId` int(11) NOT NULL,
`adminMenuName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuPosition` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuUrl` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adminMenuIcon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adminMenuStatus` int(11) NOT NULL,
`adminSubMenuStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_menus`
--
INSERT INTO `admin_menus` (`adminMenuId`, `adminMenuTitleId`, `adminMenuName`, `adminMenuPosition`, `adminMenuUrl`, `adminMenuIcon`, `adminMenuStatus`, `adminSubMenuStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 'Product Sales', '1', 'product@sales', 'pe-7s-paint-bucket', 1, 0, 1, NULL, '2020-02-11 06:36:13', '2020-02-12 04:58:09'),
(2, 1, 'Product Report', '4', NULL, 'pe-7s-piggy', 1, 1, 1, 1, '2020-02-11 06:37:14', '2021-03-10 07:44:42'),
(3, 1, 'Sales Report', '5', NULL, 'pe-7s-paint-bucket', 1, 1, 1, NULL, '2020-02-11 06:37:51', '2020-02-11 06:37:51'),
(4, 2, 'Purchase', '1', NULL, NULL, 1, 1, 1, NULL, '2020-02-11 06:38:44', '2020-02-11 06:38:44'),
(5, 2, 'Purchase Report', '2', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:39:28', '2020-02-11 06:39:28'),
(6, 3, 'Inventory', '1', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:40:01', '2020-02-11 06:40:01'),
(7, 3, 'Inventory Report', '2', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:40:27', '2020-02-11 06:40:27'),
(8, 3, 'Inventory Shortage', '3', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:40:52', '2020-02-11 06:40:52'),
(9, 4, 'Account', '1', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:42:09', '2020-02-11 06:42:09'),
(10, 5, 'HR Management', '1', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:42:43', '2020-02-11 06:42:43'),
(11, 5, 'HR Report', '2', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:43:05', '2020-02-11 06:43:05'),
(12, 6, 'Asset', '1', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:43:21', '2020-02-11 06:43:21'),
(14, 7, 'Admin Setup', '1', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:44:00', '2020-02-11 06:44:00'),
(15, 7, 'Mother Admin', '2', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:44:18', '2020-02-11 06:44:18'),
(16, 7, 'Support Admin', '3', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:44:38', '2020-02-11 06:44:38'),
(17, 7, 'Billing Admin', '4', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:45:03', '2020-02-11 06:45:03'),
(18, 7, 'Sub Admin', '5', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:45:21', '2020-02-11 06:45:21'),
(19, 7, 'Suspentd & Unsuspend', '6', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:46:04', '2020-02-11 06:46:04'),
(20, 7, 'Marketing Admin', '7', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:46:40', '2020-02-11 06:46:40'),
(21, 7, 'Saler Man', '8', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:47:04', '2020-02-11 06:47:04'),
(22, 7, 'Delivery Section', '9', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:47:23', '2020-02-11 06:47:23'),
(23, 7, 'IP Query', '10', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:47:51', '2020-02-11 06:47:51'),
(24, 7, 'Information Edit Admin', '11', NULL, 'fa fa-user', 1, 1, 1, NULL, '2020-02-11 06:48:22', '2020-02-12 06:30:09'),
(26, 9, 'Shop Admin Setting', '1', NULL, NULL, 1, 1, 1, NULL, '2020-03-05 09:05:42', '2020-03-05 09:05:42'),
(27, 9, 'Product Setup', '2', NULL, NULL, 1, 1, 1, 1, '2020-03-05 09:06:36', '2020-03-05 11:41:20'),
(29, 9, 'Shop Report', '3', NULL, NULL, 1, 1, 6, 1, '2020-03-14 02:58:31', '2020-03-14 04:13:54'),
(30, 6, 'Asset Report', '3', NULL, NULL, 1, 1, 1, NULL, '2020-04-05 06:00:46', '2020-04-05 06:00:46'),
(36, 1, 'Product Price Entry', '2', 'productprice@entry', 'pe-7s-mouse', 1, 0, 1, 1, '2020-07-15 04:50:49', '2020-07-15 04:55:19'),
(37, 1, 'Product Discount Entry', '3', 'productdiscount@entry', 'pe-7s-helm', 1, 0, 1, 1, '2020-07-15 04:51:44', '2021-03-10 07:48:52'),
(38, 4, 'Accounting Report', '2', '#', NULL, 1, 1, 1, NULL, '2020-10-16 04:03:27', '2020-10-16 04:03:27'),
(39, 10, 'Warranty Accept', '1', '#', NULL, 1, 0, 1, NULL, '2020-10-18 09:52:00', '2020-10-18 09:52:00'),
(40, 14, 'New Request', '1', '@', 'ff', 1, 0, 1, NULL, '2021-03-16 21:13:30', '2021-03-16 21:13:30'),
(41, 15, 'Shop Registration', '1', 'shopRegistration', NULL, 1, 0, 1, 1, '2021-03-24 09:08:28', '2021-03-25 04:20:58'),
(42, 15, 'Report', '2', '#', 'fa-user', 1, 1, 1, NULL, '2021-03-24 09:09:04', '2021-03-24 09:09:04'),
(43, 17, 'chart Of Accounts', '1', 'chartOfAccounts', 'metismenu-icon pe-7s-paint-bucket bg-danger text-white rounded', 1, 0, 1, NULL, '2021-04-25 06:09:57', '2021-04-25 06:09:57'),
(44, 17, 'Account Setup', '2', 'accountSetup', 'fa-user', 1, 0, 1, NULL, '2021-04-29 06:44:02', '2021-04-29 06:44:02');
-- --------------------------------------------------------
--
-- Table structure for table `admin_menu_permissions`
--
CREATE TABLE `admin_menu_permissions` (
`adminMenuPermissionId` bigint(20) UNSIGNED NOT NULL,
`adminId` int(11) NOT NULL,
`adminType` int(11) NOT NULL,
`menuTitleId` int(11) NOT NULL,
`menuId` int(11) NOT NULL,
`subMenuId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fullAccess` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`viewAccess` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`addAccess` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`editAccess` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`permissionStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_menu_permissions`
--
INSERT INTO `admin_menu_permissions` (`adminMenuPermissionId`, `adminId`, `adminType`, `menuTitleId`, `menuId`, `subMenuId`, `fullAccess`, `viewAccess`, `addAccess`, `editAccess`, `permissionStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 1, 2, '1', NULL, NULL, '1', NULL, 1, 1, NULL, '2020-03-14 04:16:00', '2020-03-14 04:16:00'),
(2, 1, 2, 1, 2, '2', NULL, NULL, '1', NULL, 1, 1, NULL, '2020-03-14 04:16:00', '2020-03-14 04:16:00'),
(3, 1, 2, 1, 2, '3', NULL, NULL, NULL, '1', 1, 1, NULL, '2020-03-14 04:16:00', '2020-03-14 04:16:00'),
(4, 1, 2, 1, 2, '4', NULL, NULL, NULL, '1', 1, 1, NULL, '2020-03-14 04:16:00', '2020-03-14 04:16:00'),
(5, 1, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, '2020-03-14 04:16:00', '2020-03-14 04:16:00'),
(6, 3, 8, 14, 40, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, '2021-03-16 21:16:52', '2021-03-16 21:16:52'),
(7, 7, 15, 15, 42, '249', '1', NULL, NULL, NULL, 1, 1, NULL, '2021-04-11 15:22:35', '2021-04-11 15:22:35'),
(8, 7, 15, 15, 42, '249', NULL, '1', NULL, NULL, 1, 1, NULL, '2021-04-11 15:22:35', '2021-04-11 15:22:35'),
(9, 7, 15, 15, 42, '249', NULL, NULL, '1', NULL, 1, 1, NULL, '2021-04-11 15:22:35', '2021-04-11 15:22:35'),
(10, 7, 15, 15, 42, '249', NULL, NULL, NULL, '1', 1, 1, NULL, '2021-04-11 15:22:35', '2021-04-11 15:22:35');
-- --------------------------------------------------------
--
-- Table structure for table `admin_menu_title_name1s`
--
CREATE TABLE `admin_menu_title_name1s` (
`adminMenuTitleId` bigint(20) UNSIGNED NOT NULL,
`adminMenuTitleName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuTitlePosition` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuTitleIcon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adminMenuTitleStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuTitlePermission` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `admin_menu_title_names`
--
CREATE TABLE `admin_menu_title_names` (
`adminMenuTitleId` bigint(20) UNSIGNED NOT NULL,
`adminMenuTitleName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuTitlePosition` int(11) NOT NULL,
`adminMenuTitleIcon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adminMenuTitleStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminMenuTitlePermission` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_menu_title_names`
--
INSERT INTO `admin_menu_title_names` (`adminMenuTitleId`, `adminMenuTitleName`, `adminMenuTitlePosition`, `adminMenuTitleIcon`, `adminMenuTitleStatus`, `adminMenuTitlePermission`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'SALES', 1, NULL, '1', 1, 1, 1, '2020-02-11 00:33:15', '2021-03-15 13:14:05'),
(2, 'PURCHASE', 2, NULL, '1', 1, 1, 1, '2020-02-11 00:33:37', '2020-03-18 00:11:38'),
(3, 'INVENTORY', 3, NULL, '1', 1, 1, 1, '2020-02-11 00:33:51', '2020-03-13 22:18:23'),
(4, 'ACCOUNTING', 4, NULL, '1', 1, 1, 1, '2020-02-11 00:34:14', '2020-03-18 00:11:43'),
(5, 'HR MANAGEMENT', 5, NULL, '1', 1, 1, 1, '2020-02-11 00:34:34', '2020-03-18 00:11:29'),
(6, 'ASSET', 6, NULL, '1', 1, 1, 1, '2020-02-11 00:34:58', '2020-03-18 00:11:34'),
(7, 'ADMIN', 7, NULL, '0', 0, 1, 1, '2020-02-11 00:35:11', '2021-03-10 05:36:07'),
(9, 'SHOP SETTINGS', 0, NULL, '1', 1, 1, 1, '2020-03-05 03:04:08', '2021-04-05 18:54:38'),
(10, 'Warranty', 9, NULL, '1', 1, 1, NULL, '2020-10-18 03:42:42', NULL),
(14, 'Verifiaction', 11, NULL, '1', 0, 1, 1, '2021-03-16 15:12:51', '2021-04-05 18:57:40'),
(15, 'Cashbook Sales Center', 12, NULL, '1', 0, 1, 1, '2021-03-24 03:07:44', '2021-04-05 18:57:37'),
(17, 'Accounting Setup', 13, 'metismenu-icon pe-7s-paint-bucket bg-danger text-white rounded', '1', 1, 1, NULL, '2021-04-25 06:02:59', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `admin_meta_key_descriptions`
--
CREATE TABLE `admin_meta_key_descriptions` (
`metaKeyId` bigint(20) UNSIGNED NOT NULL,
`metaKey` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`metaDescription` text COLLATE utf8mb4_unicode_ci NOT NULL,
`metaStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_meta_key_descriptions`
--
INSERT INTO `admin_meta_key_descriptions` (`metaKeyId`, `metaKey`, `metaDescription`, `metaStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, '1', 'Title', 1, 1, NULL, '2020-03-26 15:38:23', '2020-03-26 15:38:23'),
(2, '2', 'Title', 1, 1, NULL, '2020-03-26 15:38:32', '2020-03-26 15:38:32'),
(3, '3', 'Title', 1, 1, NULL, '2020-03-26 15:38:38', '2020-03-26 15:38:38'),
(4, '1', 'Title', 1, 1, 1, '2020-06-24 09:17:24', '2020-06-24 09:17:32');
-- --------------------------------------------------------
--
-- Table structure for table `admin_name_of_degrees`
--
CREATE TABLE `admin_name_of_degrees` (
`nameOfDegreeId` bigint(20) UNSIGNED NOT NULL,
`nameOfDegree` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`degreeStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_name_of_degrees`
--
INSERT INTO `admin_name_of_degrees` (`nameOfDegreeId`, `nameOfDegree`, `degreeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Masters', '1', 1, 1, '2020-04-15 08:44:12', '2020-04-15 13:56:19'),
(3, 'Honears', '1', 1, 1, '2020-04-15 08:46:47', '2020-06-28 12:09:59');
-- --------------------------------------------------------
--
-- Table structure for table `admin_name_of_institutes`
--
CREATE TABLE `admin_name_of_institutes` (
`nameOfInstituteId` bigint(20) UNSIGNED NOT NULL,
`nameOfInstitute` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`instituteStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_name_of_institutes`
--
INSERT INTO `admin_name_of_institutes` (`nameOfInstituteId`, `nameOfInstitute`, `instituteStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(2, 'School2', '1', 1, 1, '2020-04-15 08:43:00', '2020-06-28 12:09:58'),
(5, 'School1', '1', 1, 1, '2020-04-15 08:52:53', '2020-04-15 12:09:49');
-- --------------------------------------------------------
--
-- Table structure for table `admin_purchase_types`
--
CREATE TABLE `admin_purchase_types` (
`purchaseTypeId` bigint(20) UNSIGNED NOT NULL,
`purchaseTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`purchaseTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_purchase_types`
--
INSERT INTO `admin_purchase_types` (`purchaseTypeId`, `purchaseTypeName`, `purchaseTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(4, 'Export', 1, 1, NULL, '2020-03-22 04:47:03', '2020-03-22 04:47:03'),
(5, 'Import', 1, 1, 1, '2020-06-24 10:13:38', '2020-06-24 10:29:32');
-- --------------------------------------------------------
--
-- Table structure for table `admin_setups`
--
CREATE TABLE `admin_setups` (
`adminSetupId` bigint(20) UNSIGNED NOT NULL,
`adminId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminTypeId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_setups`
--
INSERT INTO `admin_setups` (`adminSetupId`, `adminId`, `adminTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, '1', '2', 1, NULL, '2020-03-14 04:01:52', NULL),
(2, '3', '8', 1, NULL, '2021-03-16 21:16:28', NULL),
(3, '6', '14', 1, NULL, '2021-03-24 09:06:19', NULL),
(4, '5', '14', 1, NULL, '2021-03-24 09:06:24', NULL),
(5, '7', '15', 1, NULL, '2021-04-11 15:20:23', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `admin_skill_grades`
--
CREATE TABLE `admin_skill_grades` (
`skillGradeId` bigint(20) UNSIGNED NOT NULL,
`skillGrade` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`skillGradeStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_skill_grades`
--
INSERT INTO `admin_skill_grades` (`skillGradeId`, `skillGrade`, `skillGradeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(2, '70', '1', 1, 1, '2020-04-15 09:00:56', '2020-04-15 14:55:29'),
(3, '80', '1', 1, 1, '2020-04-15 10:16:30', '2020-06-28 12:10:00');
-- --------------------------------------------------------
--
-- Table structure for table `admin_sub_menus`
--
CREATE TABLE `admin_sub_menus` (
`adminSubMenuId` bigint(20) UNSIGNED NOT NULL,
`adminMenuId` int(11) NOT NULL,
`adminSubMenuName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminSubMenuUrl` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminSubMenuePosition` int(11) NOT NULL,
`adminSubMenueStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_sub_menus`
--
INSERT INTO `admin_sub_menus` (`adminSubMenuId`, `adminMenuId`, `adminSubMenuName`, `adminSubMenuUrl`, `adminSubMenuePosition`, `adminSubMenueStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 2, 'Sales Product Price', 'salesproduct@price', 1, 1, 1, 1, '2020-02-11 00:50:31', '2020-07-18 23:34:20'),
(2, 2, 'Sales Product Discount Price', 'salesproduct@discountprice', 2, 1, 1, 1, '2020-02-11 00:53:10', '2020-07-18 23:35:47'),
(4, 2, 'Product Shortage', 'product@shortage', 4, 1, 1, NULL, '2020-02-11 00:54:07', '2020-02-11 00:54:07'),
(5, 2, 'Return product', 'return@product', 5, 1, 1, NULL, '2020-02-11 00:54:50', '2020-02-11 00:54:50'),
(6, 2, 'Damage Product', 'damage@product', 6, 1, 1, NULL, '2020-02-11 00:55:28', '2020-02-11 00:55:28'),
(7, 2, 'Date Expaired Product', 'dataexpaired@product', 7, 1, 1, NULL, '2020-02-11 00:56:03', '2020-02-11 00:56:03'),
(8, 2, 'Date Expaired Notification', 'dataexpaired@notification', 8, 1, 1, NULL, '2020-02-11 00:56:33', '2020-02-11 00:56:33'),
(9, 3, 'Today Cash Sales', 'todaycash@sales', 1, 1, 1, NULL, '2020-02-11 00:58:09', '2020-02-11 00:58:09'),
(10, 3, 'Today Due Sales', 'todaydue@sales', 2, 1, 1, NULL, '2020-02-11 00:58:53', '2020-02-11 00:58:53'),
(11, 3, 'Today Cash Receive', 'todaycash@receive', 3, 1, 1, NULL, '2020-02-11 01:00:08', '2020-02-11 01:00:08'),
(12, 3, 'Today Discount', 'today@discount', 4, 1, 1, NULL, '2020-02-11 01:00:46', '2020-02-11 01:00:46'),
(13, 3, 'Total Due', 'total@due', 5, 1, 1, NULL, '2020-02-11 01:01:45', '2020-02-11 01:01:45'),
(14, 3, 'Total Sales', 'total@sales', 6, 1, 1, NULL, '2020-02-11 01:02:23', '2020-02-11 01:02:23'),
(15, 3, 'Total Receive', 'total@receive', 7, 1, 1, NULL, '2020-02-11 01:03:00', '2020-02-11 01:03:00'),
(16, 3, 'Total Discount', 'total@discount', 8, 1, 1, NULL, '2020-02-11 01:03:30', '2020-02-11 01:03:30'),
(17, 3, 'Fixed Customer List', 'fixedcustomer@list', 9, 1, 1, NULL, '2020-02-11 01:04:06', '2020-02-11 01:04:06'),
(18, 3, 'Local Customer List', 'localcustomer@list', 10, 1, 1, NULL, '2020-02-11 01:06:20', '2020-02-11 01:06:20'),
(19, 3, 'Profit & Loss', 'profit@loss', 11, 1, 1, NULL, '2020-02-11 01:07:01', '2020-02-11 01:07:01'),
(20, 3, 'Sales & Discount', 'sale@discount', 12, 1, 1, NULL, '2020-02-11 01:07:26', '2020-02-11 01:07:26'),
(21, 3, 'Gift Item', 'gift@item', 13, 1, 1, NULL, '2020-02-11 01:12:01', '2020-02-11 01:12:01'),
(22, 3, 'Balance Sheet', 'balance@sheet', 14, 1, 1, NULL, '2020-02-11 01:12:46', '2020-02-11 01:12:46'),
(23, 3, 'Sales Vouchar', 'sale@vouchar', 15, 1, 1, NULL, '2020-02-11 01:13:18', '2020-02-11 01:13:18'),
(24, 3, 'Sales Retarn', 'sale@return', 16, 1, 1, NULL, '2020-02-11 01:13:44', '2020-02-11 01:13:44'),
(25, 3, 'Customer Statement', 'customer@statement', 17, 1, 1, NULL, '2020-02-11 01:14:18', '2020-02-11 01:14:18'),
(26, 4, 'Brand Entry', 'shopaddproduct@brand', 1, 1, 1, 1, '2020-02-11 01:15:17', '2021-03-14 11:30:13'),
(27, 4, 'Purchase Entry', 'purchase@entry', 2, 1, 1, NULL, '2020-02-11 01:15:50', '2020-02-11 01:15:50'),
(28, 4, 'Product Supplier Entry', 'productsupplier@entry', 4, 1, 1, 1, '2020-02-11 01:16:23', '2020-07-13 00:57:31'),
(29, 5, 'Product Supplier Report', 'productsupplier@report', 1, 1, 1, 1, '2020-02-11 01:17:01', '2020-07-13 00:56:10'),
(32, 5, 'Due Supplyer List', 'duesupplier@list', 4, 1, 1, NULL, '2020-02-11 02:24:19', '2020-02-11 02:24:19'),
(33, 5, 'Supplier Payment', 'supplier@payment', 5, 1, 1, NULL, '2020-02-11 02:24:53', '2020-02-11 02:24:53'),
(34, 5, 'Purchase Return', 'purchase@return', 6, 1, 1, NULL, '2020-02-11 02:25:34', '2020-02-11 02:25:34'),
(36, 5, 'Purchase Balance Sheet', 'purchasebalance@sheet', 8, 1, 1, NULL, '2020-02-11 02:28:21', '2020-02-11 02:28:21'),
(39, 5, 'Purchase Invoice Report', 'purchaseinvoice@report', 11, 1, 1, 1, '2020-02-11 02:30:08', '2020-07-13 01:13:48'),
(40, 6, 'Category Entry', 'add@category', 1, 1, 1, 1, '2020-02-11 02:31:33', '2020-03-30 04:32:11'),
(45, 6, 'Product Name Entry', 'productname@entry', 6, 1, 1, 1, '2020-02-11 02:34:19', '2020-03-21 06:15:51'),
(46, 6, 'QR Code Entry', 'qrcode@entry', 7, 1, 1, NULL, '2020-02-11 02:35:32', '2020-02-11 02:35:32'),
(47, 7, 'Stock Summary Report', 'stocksummary@report', 1, 1, 1, 1, '2020-02-11 02:36:28', '2020-07-19 00:03:50'),
(49, 7, 'Stock Shortage Report', 'stockshortage@report', 3, 1, 1, 1, '2020-02-11 02:42:25', '2020-07-19 01:26:56'),
(50, 7, 'Category Report', 'category@report', 4, 1, 1, NULL, '2020-02-11 02:43:33', '2020-02-11 02:43:33'),
(51, 8, 'Brand Wise Shortage', 'brandwise@shortage', 1, 1, 1, NULL, '2020-02-11 02:45:43', '2020-02-11 02:45:43'),
(55, 8, 'Supplier Wise Shortage', 'supplierwise@shortage', 5, 1, 1, NULL, '2020-02-11 02:48:27', '2020-02-11 02:48:27'),
(56, 9, 'Voucher Entry', 'voucherEntry', 1, 1, 1, 1, '2020-02-11 02:50:28', '2021-04-27 13:53:14'),
(57, 9, 'Bank Statement', 'bank@statement', 2, 1, 1, NULL, '2020-02-11 02:50:54', '2020-02-11 02:50:54'),
(58, 9, 'Income Summary', 'income@summary', 3, 1, 1, NULL, '2020-02-11 02:51:24', '2020-02-11 02:51:24'),
(59, 9, 'Expense Summary', 'expense@summary', 4, 1, 1, NULL, '2020-02-11 02:52:26', '2020-02-11 02:52:26'),
(60, 9, 'Privacy Summary', 'privacy@summary', 5, 1, 1, NULL, '2020-02-11 02:53:47', '2020-02-11 02:53:47'),
(61, 9, 'Payment Summary', 'payment@summary', 6, 1, 1, NULL, '2020-02-11 02:54:19', '2020-02-11 02:54:19'),
(62, 9, 'Received & Payment Summary', 'receivedpayment@summary', 7, 1, 1, NULL, '2020-02-11 02:55:03', '2020-02-11 02:55:03'),
(63, 9, 'Income Statement', 'income@statement', 8, 1, 1, NULL, '2020-02-11 02:55:30', '2020-02-11 02:55:30'),
(64, 9, 'Balance Sheet', 'balance@sheet', 9, 1, 1, NULL, '2020-02-11 02:55:59', '2020-02-11 02:55:59'),
(65, 9, 'Cash Book', 'cash@book', 10, 1, 1, NULL, '2020-02-11 02:56:26', '2020-02-11 02:56:26'),
(66, 9, 'Bank Ledger', 'bank@ledger', 11, 1, 1, NULL, '2020-02-11 02:57:01', '2020-02-11 02:57:01'),
(67, 9, 'Customer Ledger', 'customer@ledger', 12, 1, 1, NULL, '2020-02-11 02:58:40', '2020-02-11 02:58:40'),
(68, 9, 'Supplier Ledger', 'supplier@ledger', 13, 1, 1, NULL, '2020-02-11 02:59:56', '2020-02-11 02:59:56'),
(69, 9, 'Low Ledger', 'low@ledger', 14, 1, 1, NULL, '2020-02-11 03:00:23', '2020-02-11 03:00:23'),
(70, 9, 'Expense Ledger', 'expense@ledger', 15, 1, 1, NULL, '2020-02-11 03:01:05', '2020-02-11 03:01:05'),
(71, 9, 'Trial Balance', 'trial@balance', 16, 1, 1, NULL, '2020-02-11 03:02:01', '2020-02-11 03:02:01'),
(72, 9, 'Bank Reconciliation Statement', 'bankreconciliation@statement', 17, 1, 1, NULL, '2020-02-11 03:02:54', '2020-02-11 03:02:54'),
(73, 10, 'Employee Entry', 'employee@entry', 1, 1, 1, NULL, '2020-02-11 03:04:35', '2020-02-11 03:04:35'),
(74, 10, 'Salary Start Setup', 'salarystart@setup', 2, 1, 1, 1, '2020-02-11 03:05:03', '2020-06-26 03:42:46'),
(75, 10, 'Salary Grade Entry', 'salarygrade@entry', 3, 1, 1, 1, '2020-02-11 03:06:33', '2020-04-18 04:44:58'),
(76, 10, 'Holiday Setup', 'holiday@setup', 8, 1, 1, 1, '2020-02-11 03:07:50', '2020-04-18 05:45:16'),
(77, 10, 'Leave Entry', 'leave@entry', 5, 1, 1, NULL, '2020-02-11 03:08:24', '2020-02-11 03:08:24'),
(78, 10, 'Job Department Entry', 'jobdepartment@entry', 6, 1, 1, NULL, '2020-02-11 03:09:13', '2020-02-11 03:09:13'),
(79, 10, 'Salary Increment Entry', 'salaryincrement@entry', 7, 1, 1, NULL, '2020-02-11 03:09:40', '2020-02-11 03:09:40'),
(80, 11, 'Employee Report', 'employee@report', 1, 1, 1, 1, '2020-02-11 03:12:22', '2020-04-16 00:56:24'),
(81, 11, 'Salary Sheet Report', 'salarysheet@report', 2, 1, 1, 1, '2020-02-11 03:13:10', '2020-04-16 00:56:55'),
(82, 11, 'Leave Report', 'leave@report', 3, 1, 1, NULL, '2020-02-11 03:13:37', '2020-02-11 03:13:37'),
(83, 11, 'Attendance Report', 'attendance@report', 4, 1, 1, NULL, '2020-02-11 03:14:03', '2020-02-11 03:14:03'),
(84, 11, 'Payslip Report', 'payslip@report', 5, 1, 1, 1, '2020-02-11 03:15:35', '2020-04-16 00:57:12'),
(85, 11, 'Employe Statement', 'employe@statement', 6, 1, 1, NULL, '2020-02-11 03:16:34', '2020-02-11 03:16:34'),
(86, 11, 'Bonus Report', 'bonus@report', 7, 1, 1, NULL, '2020-02-11 03:17:07', '2020-02-11 03:17:07'),
(87, 11, 'Yearly Leave Calendar', 'yearlyleave@calendar', 8, 1, 1, NULL, '2020-02-11 03:17:58', '2020-02-11 03:17:58'),
(88, 11, 'Pay Grade Report', 'paygrade@report', 9, 1, 1, 1, '2020-02-11 03:19:22', '2020-04-16 00:58:09'),
(89, 11, 'Salary Due Report', 'salary@due@report', 10, 1, 1, 1, '2020-02-11 03:20:01', '2020-04-16 00:57:46'),
(90, 12, 'Asset Entry', 'asset@entry', 1, 1, 1, NULL, '2020-02-11 03:20:41', '2020-02-11 03:20:41'),
(91, 12, 'Asset Brand Entry', 'assetbrand@entry', 2, 1, 1, NULL, '2020-02-11 03:21:23', '2020-02-11 03:21:23'),
(92, 12, 'Asset Category Entry', 'assetcategory@entry', 3, 1, 1, NULL, '2020-02-11 03:21:51', '2020-02-11 03:21:51'),
(93, 12, 'Asset Product Entry', 'assetproduct@entry', 4, 1, 1, 1, '2020-02-11 03:23:02', '2020-07-21 23:37:12'),
(94, 12, 'Asset Supplier Entry', 'assetsupplier@entry', 5, 1, 1, NULL, '2020-02-11 03:23:31', '2020-02-11 03:23:31'),
(104, 14, 'Accounting Only Company', 'accountingonly@company', 1, 1, 1, NULL, '2020-02-11 03:38:57', '2020-02-11 03:38:57'),
(105, 14, 'Create Business Type', 'createbusiness@type', 2, 1, 1, NULL, '2020-02-11 03:39:30', '2020-02-11 03:39:30'),
(106, 14, 'Create Client', 'create@client', 3, 1, 1, NULL, '2020-02-11 03:39:55', '2020-02-11 03:39:55'),
(107, 14, 'Create Staff', 'create@staff', 4, 1, 1, NULL, '2020-02-11 03:40:16', '2020-02-11 03:40:16'),
(108, 14, 'Create Menu', 'create@menu', 5, 1, 1, NULL, '2020-02-11 03:40:50', '2020-02-11 03:40:50'),
(109, 14, 'Create Marketing Type', 'createmarketing@type', 6, 1, 1, NULL, '2020-02-11 03:41:15', '2020-02-11 03:41:15'),
(110, 14, 'Create Commission', 'create@commission', 7, 1, 1, NULL, '2020-02-11 03:41:40', '2020-02-11 03:41:40'),
(111, 14, 'Create Admin', 'create@admin', 8, 1, 1, NULL, '2020-02-11 03:42:10', '2020-02-11 03:42:10'),
(112, 14, 'Create Agent', 'create@agent', 9, 1, 1, NULL, '2020-02-11 03:42:38', '2020-02-11 03:42:38'),
(113, 14, 'Create Liana Type', 'createliana@type', 10, 1, 1, NULL, '2020-02-11 04:23:06', '2020-02-11 04:23:06'),
(114, 14, 'Process Shop', 'process@shop', 11, 1, 1, NULL, '2020-02-11 04:23:32', '2020-02-11 04:23:32'),
(115, 14, 'Sales Target Create', 'salestarget@create', 12, 1, 1, NULL, '2020-02-11 04:23:56', '2020-02-11 04:23:56'),
(116, 14, 'Create Client IP', 'createclient@ip', 13, 1, 1, NULL, '2020-02-11 04:25:10', '2020-02-11 04:25:10'),
(117, 14, 'Purchase', 'purchase', 14, 1, 1, NULL, '2020-02-11 04:26:09', '2020-02-11 04:26:09'),
(118, 14, 'IP Notice', 'ip@notice', 15, 1, 1, NULL, '2020-02-11 04:26:36', '2020-02-11 04:26:36'),
(119, 14, 'Sales', 'sales', 16, 1, 1, NULL, '2020-02-11 04:27:03', '2020-02-11 04:27:03'),
(120, 14, 'Delivery Section', 'delivery@section', 17, 1, 1, NULL, '2020-02-11 04:27:33', '2020-02-11 04:27:33'),
(121, 14, 'Inventory', 'inventory', 18, 1, 1, NULL, '2020-02-11 04:28:12', '2020-02-11 04:28:12'),
(122, 14, 'Client Followp', 'client@followp', 19, 1, 1, NULL, '2020-02-11 04:29:05', '2020-02-11 04:29:05'),
(123, 14, 'Asset', 'asset', 20, 1, 1, NULL, '2020-02-11 04:29:29', '2020-02-11 04:29:29'),
(124, 14, 'HR', 'hr', 21, 1, 1, NULL, '2020-02-11 04:30:12', '2020-02-11 04:30:12'),
(125, 14, 'Reporting', 'reporting', 22, 1, 1, NULL, '2020-02-11 04:30:31', '2020-02-11 04:30:31'),
(126, 14, 'Message', 'message', 23, 1, 1, NULL, '2020-02-11 04:30:49', '2020-02-11 04:30:49'),
(127, 14, 'Notification', 'notification', 24, 1, 1, NULL, '2020-02-11 04:31:11', '2020-02-11 04:31:11'),
(128, 15, 'Setup', 'setup', 1, 1, 1, NULL, '2020-02-11 04:45:47', '2020-02-11 04:45:47'),
(129, 15, 'Support Admin', 'support@admin', 2, 1, 1, NULL, '2020-02-11 04:46:16', '2020-02-11 04:46:16'),
(130, 15, 'Billing Address', 'billing@address', 3, 1, 1, NULL, '2020-02-11 04:46:40', '2020-02-11 04:46:40'),
(131, 15, 'Sub Admin', 'sub@admin', 4, 1, 1, NULL, '2020-02-11 04:47:06', '2020-02-11 04:47:06'),
(132, 15, 'Suspend & Unsuspend Admin', 'suspend@unsuspend@admin', 5, 1, 1, NULL, '2020-02-11 04:48:06', '2020-02-11 04:48:06'),
(133, 15, 'Marketing Admin', 'marketing@admin', 6, 1, 1, NULL, '2020-02-11 04:48:35', '2020-02-11 04:48:35'),
(134, 15, 'Commission base Man', 'commissionbase@man', 7, 1, 1, NULL, '2020-02-11 04:48:59', '2020-02-11 04:48:59'),
(135, 15, 'Delivery Section', 'delivery@section@', 8, 1, 1, NULL, '2020-02-11 04:49:22', '2020-02-11 04:49:22'),
(136, 15, 'IP Query & Block Admin', 'ipquery@blockadmin', 9, 1, 1, NULL, '2020-02-11 04:51:29', '2020-02-11 04:51:29'),
(137, 15, 'Information Edit', 'information@edit', 10, 1, 1, NULL, '2020-02-11 04:51:51', '2020-02-11 04:51:51'),
(138, 15, 'Sales Team', 'sales@team', 11, 1, 1, NULL, '2020-02-11 04:52:17', '2020-02-11 04:52:17'),
(139, 15, 'Shop List', 'shop@list', 12, 1, 1, NULL, '2020-02-11 04:52:43', '2020-02-11 04:52:43'),
(140, 15, 'Report', 'report', 13, 1, 1, NULL, '2020-02-11 04:53:03', '2020-02-11 04:53:03'),
(141, 15, 'Menu Permission', 'menu@permission', 14, 1, 1, NULL, '2020-02-11 04:53:24', '2020-02-11 04:53:24'),
(142, 16, 'Problem Entry', 'problem@entry', 1, 1, 1, NULL, '2020-02-11 04:54:07', '2020-02-11 04:54:07'),
(143, 16, 'Client Update', 'client@update', 2, 1, 1, NULL, '2020-02-11 04:59:20', '2020-02-11 04:59:20'),
(144, 16, 'Today Support Calendar', 'todaysupport@calendar', 3, 1, 1, NULL, '2020-02-11 05:00:12', '2020-02-11 05:00:12'),
(145, 16, 'Feedback', 'feedback', 4, 1, 1, NULL, '2020-02-11 05:03:53', '2020-02-11 05:03:53'),
(146, 16, 'Message', 'support@message', 5, 1, 1, NULL, '2020-02-11 05:04:43', '2020-02-11 05:04:43'),
(147, 17, 'Billing Report Daily', 'billingreport@daily', 1, 1, 1, NULL, '2020-02-11 05:27:45', '2020-02-11 05:27:45'),
(148, 17, 'Due Bill', 'due@bill', 2, 1, 1, NULL, '2020-02-11 05:28:26', '2020-02-11 05:28:26'),
(149, 17, 'Due Bill Feedback', 'duebill@feedback', 3, 1, 1, NULL, '2020-02-11 05:28:49', '2020-02-11 05:28:49'),
(150, 17, 'Message', 'billing@message', 4, 1, 1, NULL, '2020-02-11 05:32:00', '2020-02-11 05:32:00'),
(151, 17, 'Over Due Bill', 'overdue@bill', 5, 1, 1, NULL, '2020-02-11 05:32:23', '2020-02-11 05:32:23'),
(152, 18, 'Menu Permission', 'subadmin@menu@permission', 1, 1, 1, NULL, '2020-02-11 05:33:07', '2020-02-11 05:33:07'),
(153, 18, 'Menu Notification', 'subadmin@menu@notification', 2, 1, 1, NULL, '2020-02-11 05:33:36', '2020-02-11 05:33:36'),
(154, 18, 'Message', 'subadmin@message', 3, 1, 1, NULL, '2020-02-11 05:33:58', '2020-02-11 05:33:58'),
(155, 18, 'Report', 'subadmin@report', 4, 1, 1, NULL, '2020-02-11 05:34:30', '2020-02-11 05:34:30'),
(156, 19, 'Billing Admin Report', 'billingadmin@report', 1, 1, 1, NULL, '2020-02-11 05:35:10', '2020-02-11 05:35:10'),
(157, 19, 'Suspend List', 'suspend@list', 2, 1, 1, NULL, '2020-02-11 05:35:31', '2020-02-11 05:35:31'),
(158, 19, 'Unsuspend List', 'unsuspend@list', 3, 1, 1, NULL, '2020-02-11 05:36:23', '2020-02-11 05:36:23'),
(159, 19, 'Message', 'suspend@unsuspend@message', 4, 1, 1, NULL, '2020-02-11 05:36:40', '2020-02-11 05:36:40'),
(160, 20, 'Saler Man List', 'marketing@salermanlist', 1, 1, 1, NULL, '2020-02-11 05:37:28', '2020-02-11 05:37:28'),
(161, 20, 'Saler Target', 'marketing@salertarget', 2, 1, 1, NULL, '2020-02-11 05:37:50', '2020-02-11 05:37:50'),
(162, 20, 'Saler Target Achieve', 'marketing@salertargetachieve', 3, 1, 1, NULL, '2020-02-11 05:38:17', '2020-02-11 05:38:17'),
(163, 20, 'Inactive List', 'marketing@inactivelist', 4, 1, 1, NULL, '2020-02-11 05:39:46', '2020-02-11 05:39:46'),
(164, 20, 'Proposed Client', 'marketing@proposedclient', 5, 1, 1, NULL, '2020-02-11 05:41:05', '2020-02-11 05:41:05'),
(165, 20, 'Proposed Followp', 'marketing@proposedfollowp', 6, 1, 1, NULL, '2020-02-11 05:42:21', '2020-02-11 05:42:21'),
(166, 20, 'Message', 'marketing@message', 7, 1, 1, NULL, '2020-02-11 05:42:56', '2020-02-11 05:42:56'),
(167, 20, 'Shop Entry', 'marketing@shopentry', 8, 1, 1, NULL, '2020-02-11 05:43:25', '2020-02-11 05:43:25'),
(168, 21, 'Shop Entry', 'salerman@shopentry', 1, 1, 1, NULL, '2020-02-11 06:20:01', '2020-02-11 06:20:01'),
(169, 21, 'Proposer Shop', 'salerman@proposershop', 2, 1, 1, NULL, '2020-02-11 06:20:24', '2020-02-11 06:20:24'),
(170, 21, 'Inactive List', 'salerman@inactivelist', 3, 1, 1, NULL, '2020-02-11 06:20:53', '2020-02-11 06:20:53'),
(171, 21, 'Profile', 'salerman@profile', 4, 1, 1, NULL, '2020-02-11 06:21:11', '2020-02-11 06:21:11'),
(172, 21, 'Message', 'salerman@message', 5, 1, 1, NULL, '2020-02-11 06:21:32', '2020-02-11 06:21:32'),
(173, 21, 'Total Earning', 'salerman@totalearning', 6, 1, 1, NULL, '2020-02-11 06:21:53', '2020-02-11 06:21:53'),
(174, 21, 'Monthly Earning', 'salerman@monthlyearning', 7, 1, 1, NULL, '2020-02-11 06:22:21', '2020-02-11 06:22:21'),
(175, 22, 'Update Shop Information', 'update@shopinformation', 1, 1, 1, NULL, '2020-02-11 06:22:57', '2020-02-11 06:22:57'),
(176, 22, 'Delivery Report', 'delivery@report', 2, 1, 1, NULL, '2020-02-11 06:23:48', '2020-02-11 06:23:48'),
(177, 22, 'Delivery Calendar', 'delivery@calendar', 3, 1, 1, NULL, '2020-02-11 06:24:23', '2020-02-11 06:24:23'),
(178, 22, 'Delivery Request', 'delivery@request', 4, 1, 1, NULL, '2020-02-11 06:25:16', '2020-02-11 06:25:16'),
(179, 22, 'Message', 'delivery@message', 5, 1, 1, NULL, '2020-02-11 06:25:40', '2020-02-11 06:25:40'),
(180, 22, 'Contact Support Admin', 'delivery@supportadmin', 6, 1, 1, NULL, '2020-02-11 06:26:03', '2020-02-11 06:26:03'),
(181, 23, 'IP add', 'ip@add', 1, 1, 1, NULL, '2020-02-11 06:28:36', '2020-02-11 06:28:36'),
(182, 23, 'IP Lock', 'ip@lock', 2, 1, 1, NULL, '2020-02-11 06:29:04', '2020-02-11 06:29:04'),
(183, 23, 'IP Unlock', 'ip@unblock', 3, 1, 1, NULL, '2020-02-11 06:29:50', '2020-02-11 06:29:50'),
(184, 23, 'Message', 'ipquery@message', 4, 1, 1, NULL, '2020-02-11 06:30:11', '2020-02-11 06:30:11'),
(185, 24, 'Support panding', 'support@panding', 1, 1, 1, NULL, '2020-02-11 06:30:53', '2020-02-11 06:30:53'),
(186, 24, 'Complete Edit', 'complete@edit', 2, 1, 1, NULL, '2020-02-11 06:32:53', '2020-02-11 06:32:53'),
(187, 24, 'Search', 'editadmin@search', 3, 1, 1, NULL, '2020-02-11 06:33:16', '2020-02-12 00:10:51'),
(188, 24, 'Message', 'editadmin@message', 4, 1, 1, NULL, '2020-02-11 06:33:31', '2020-02-12 00:42:03'),
(191, 26, 'Add Category', 'shopadd@category', 1, 1, 1, NULL, '2020-03-05 03:10:21', '2020-03-05 03:10:21'),
(192, 26, 'Add Product Brand', 'shopaddproduct@brand', 2, 1, 1, NULL, '2020-03-05 03:13:30', '2020-03-05 03:13:30'),
(194, 26, 'Add Employee', 'shopadd@employee', 3, 1, 1, 1, '2020-03-05 03:15:42', '2020-04-05 00:59:06'),
(195, 26, 'Add Product Supplier Entry', 'shopaddproductsupplier@entry', 4, 1, 1, 1, '2020-03-05 03:16:38', '2020-04-05 00:59:13'),
(200, 26, 'Add Bank', 'shopadd@bank', 5, 1, 1, 1, '2020-03-05 03:52:45', '2020-04-05 00:59:21'),
(203, 27, 'Product Code Entry', 'shopproductcode@entry', 1, 1, 1, NULL, '2020-03-05 06:02:22', '2020-03-05 06:02:22'),
(204, 27, 'Product Entry', 'shopproduct@entry', 2, 1, 1, NULL, '2020-03-05 06:03:04', '2020-03-05 06:03:04'),
(205, 27, 'Product Price Setup', 'shopproductprice@setup', 3, 1, 1, 1, '2020-03-05 06:04:17', '2020-03-25 05:48:58'),
(206, 27, 'Discount Setup', 'shopdiscount@setup', 4, 1, 1, NULL, '2020-03-05 06:05:40', '2020-03-05 06:05:40'),
(207, 29, 'Category Report', 'categoryReport', 1, 1, 1, 1, '2020-03-14 01:11:50', '2021-04-19 10:58:23'),
(208, 29, 'Product Report', 'product@report', 2, 1, 1, 1, '2020-03-14 01:12:17', '2020-04-04 05:47:07'),
(209, 27, 'Add Expence Type', 'shopaddexpencetype@entry', 5, 1, 4, NULL, '2020-03-15 02:54:41', '2020-03-15 02:54:41'),
(210, 27, 'Loan Provider Entry', 'shoploanprovider@entry', 6, 1, 4, NULL, '2020-03-15 02:58:57', '2020-03-15 02:58:57'),
(211, 27, 'Loan Entry', 'shoploan@entry', 7, 1, 4, 4, '2020-03-15 03:03:13', '2020-03-15 03:05:03'),
(212, 27, 'Add Income Type', 'shopaddincometype@entry', 8, 1, 4, NULL, '2020-03-15 03:34:52', '2020-03-15 03:34:52'),
(213, 29, 'Product Supplier Report', 'productsupplier@report', 3, 1, 1, 1, '2020-03-18 03:33:43', '2020-04-04 05:47:19'),
(215, 29, 'Income Type Report', 'incometype@report', 4, 1, 1, 1, '2020-03-18 06:00:15', '2020-04-05 00:03:28'),
(216, 29, 'Expence Type Report', 'expencetype@report', 5, 1, 1, 1, '2020-03-18 06:02:16', '2020-04-05 00:03:40'),
(217, 29, 'Product Brand Report', 'productbrand@report', 6, 1, 1, 1, '2020-03-21 00:52:07', '2020-04-05 00:03:47'),
(219, 7, 'Product Name Without Price', 'productname@withoutprice', 5, 1, 1, 1, '2020-03-31 21:24:07', '2020-03-31 21:24:35'),
(220, 7, 'Product Name With Price', 'productname@withprice', 6, 1, 1, NULL, '2020-03-31 21:25:13', '2020-03-31 21:25:13'),
(223, 7, 'Low Quantity Product Report', 'lowquantityproduct@report', 10, 1, 1, 1, '2020-04-01 01:53:44', '2020-07-20 03:41:01'),
(224, 7, 'Expired Date Over Product Report', 'expiredateoverproduct@report', 11, 1, 1, 1, '2020-04-01 01:54:26', '2020-07-20 03:41:12'),
(225, 7, 'Expired Date Soon Product Report', 'expiredatesoonproduct@report', 12, 1, 1, 1, '2020-04-01 01:55:44', '2020-07-20 03:41:28'),
(226, 7, 'Product Category With Price', 'productcategory@withprice', 9, 1, 1, NULL, '2020-04-01 21:50:04', '2020-04-01 21:50:04'),
(228, 30, 'Asset Brand Report', 'assetbrand@report', 1, 1, 1, NULL, '2020-04-05 00:01:37', '2020-04-05 00:01:37'),
(229, 30, 'Asset Category Report', 'assetcategory@report', 2, 1, 1, NULL, '2020-04-05 00:02:02', '2020-04-05 00:02:02'),
(230, 30, 'Asset Supplier Report', 'assetsupplier@report', 3, 1, 1, NULL, '2020-04-05 00:02:30', '2020-04-05 00:02:30'),
(231, 11, 'Job Department Report', 'jobdepartment@report', 11, 1, 1, NULL, '2020-04-06 06:57:14', '2020-04-06 06:57:14'),
(232, 11, 'Salary Grade Report', 'salarygrade@report', 12, 1, 1, 1, '2020-04-06 06:58:35', '2020-04-18 04:55:15'),
(233, 11, 'Holiday Report', 'holiday@report', 14, 1, 1, 1, '2020-04-06 06:59:20', '2020-04-18 05:43:04'),
(234, 10, 'Salary Grade Setup', 'salarygrade@setup', 4, 1, 1, 1, '2020-04-18 04:59:01', '2020-04-18 05:44:49'),
(235, 11, 'Salary Grade Setup Report', 'salarygrade@setupreport', 13, 1, 1, 1, '2020-04-18 05:01:28', '2020-04-18 05:43:51'),
(237, 10, 'Employee Atttendance', 'employee@atttendance', 9, 1, 1, NULL, '2020-06-28 08:55:03', '2020-06-28 08:55:03'),
(238, 30, 'Asset Code Report', 'assetcode@report', 4, 1, 1, NULL, '2020-07-04 01:38:06', '2020-07-04 01:38:06'),
(239, 30, 'Asset Entry Report', 'assetentry@report', 5, 1, 1, NULL, '2020-07-04 23:50:19', '2020-07-04 23:50:19'),
(240, 12, 'Asset Status Entry', 'asset@status', 6, 1, 1, 1, '2020-07-08 08:52:29', '2020-07-09 02:26:03'),
(241, 30, 'Asset Damage Report', 'assetdamage@report', 6, 1, 1, 1, '2020-07-09 02:21:25', '2020-07-09 02:25:07'),
(242, 30, 'Asset Waranty Report', 'assetwaranty@report', 7, 1, 1, 1, '2020-07-09 02:21:55', '2020-07-09 02:24:19'),
(243, 30, 'Asset Guarantee Report', 'assetgurantee@report', 8, 1, 1, 1, '2020-07-09 02:22:22', '2020-07-09 02:24:12'),
(244, 30, 'Asset Unused Report', 'assetunused@report', 9, 1, 1, 1, '2020-07-09 02:22:57', '2020-07-09 02:24:06'),
(245, 30, 'Asset Theft Report', 'assettheft@report', 10, 1, 1, 1, '2020-07-09 02:23:24', '2020-07-09 02:23:57'),
(246, 5, 'Purchase Product Report', 'purchaseproduct@report', 12, 1, 1, NULL, '2020-07-13 05:51:09', '2020-07-13 05:51:09'),
(247, 3, 'Customer List Report', 'customerlist@report', 18, 1, 1, NULL, '2020-07-22 05:35:15', '2020-07-22 05:35:15'),
(248, 5, 'Brand Report', 'productbrand@list', 13, 1, 1, 1, '2021-03-14 12:15:18', '2021-03-14 12:49:29'),
(249, 42, 'Shop List', 'adminReportShopList', 1, 1, 1, 1, '2021-03-24 09:39:28', '2021-04-11 06:42:43'),
(250, 26, 'Employee Type Entry', 'shopemployee@typecreate', 6, 1, 1, NULL, '2021-04-05 17:37:40', '2021-04-05 17:37:40'),
(251, 26, 'Shop Menu Permission', 'shopmenu@permission', 7, 1, 1, NULL, '2021-04-05 17:44:20', '2021-04-05 17:44:20'),
(252, 26, 'Shop Menu Permission List', 'shopmenu@permissionlist', 8, 1, 1, NULL, '2021-04-05 17:44:49', '2021-04-05 17:44:49'),
(253, 26, 'Invoice Setup', 'invoiceSetup', 9, 1, 1, NULL, '2021-04-05 17:45:13', '2021-04-05 17:45:13'),
(254, 26, 'QR Code Setup', 'qrCodeSetup', 10, 1, 1, NULL, '2021-04-05 17:45:33', '2021-04-05 17:45:33'),
(255, 26, 'Branch Setup', 'branchSetup', 11, 1, 1, NULL, '2021-04-05 17:45:56', '2021-04-05 17:45:56'),
(257, 42, 'Shop Branch Update', 'shopBranchUpdate', 2, 1, 1, NULL, '2021-04-13 13:10:29', '2021-04-13 13:10:29'),
(258, 9, 'Chart Of Accounts', 'chartOfAccounts', 18, 1, 1, NULL, '2021-04-25 05:04:00', '2021-04-25 05:04:00');
-- --------------------------------------------------------
--
-- Table structure for table `admin_types`
--
CREATE TABLE `admin_types` (
`adminTypeId` bigint(20) UNSIGNED NOT NULL,
`adminTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`adminTypeStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admin_types`
--
INSERT INTO `admin_types` (`adminTypeId`, `adminTypeName`, `adminTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(8, 'Verification', '1', 1, NULL, '2021-03-16 21:09:56', NULL),
(9, 'IT DPT', '1', 1, NULL, '2021-03-16 21:10:05', NULL),
(10, 'Billing DPT', '1', 1, NULL, '2021-03-16 21:10:13', NULL),
(11, 'Sales & marketing', '1', 1, NULL, '2021-03-16 21:10:21', NULL),
(12, 'Call Center', '1', 1, NULL, '2021-03-16 21:10:31', NULL),
(13, 'Training DPT', '1', 1, NULL, '2021-03-16 21:10:38', NULL),
(14, 'Cashbook Sales Center', '1', 1, NULL, '2021-03-24 09:04:55', NULL),
(15, 'Accounts', '1', 1, NULL, '2021-04-11 15:18:00', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `asset_brand_entries`
--
CREATE TABLE `asset_brand_entries` (
`assetBrandEntryId` bigint(20) UNSIGNED NOT NULL,
`assetBrandName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`assetBrandStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `asset_brand_entries`
--
INSERT INTO `asset_brand_entries` (`assetBrandEntryId`, `assetBrandName`, `assetBrandStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Rubel', 1, 1, NULL, '2020-03-16 04:22:21', NULL),
(2, 'Rubel Khan', 1, 3, 3, '2020-03-21 09:39:34', '2020-03-21 09:42:36'),
(3, 'aaaaaaaa', 1, 3, 3, '2020-03-21 09:44:49', '2020-04-04 04:30:55'),
(4, 'RRRRRR', 1, 3, 1, '2020-03-21 10:58:18', '2020-06-24 09:17:09'),
(5, 'Rubel Khan dd', 1, 1, 1, '2020-03-21 10:58:44', '2020-06-24 09:16:49'),
(6, 'Shohel', 1, 3, NULL, '2020-07-04 09:40:34', NULL),
(7, 'kkkkkkk', 1, 1, NULL, '2020-07-22 08:01:24', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `asset_code_entries`
--
CREATE TABLE `asset_code_entries` (
`assetCodeEntryId` bigint(20) UNSIGNED NOT NULL,
`assetCategoryId` int(11) NOT NULL,
`assetPorductName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`assetPorductCode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`assetCodeStatus` tinyint(1) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `asset_code_entries`
--
INSERT INTO `asset_code_entries` (`assetCodeEntryId`, `assetCategoryId`, `assetPorductName`, `assetPorductCode`, `assetCodeStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 'Table Asset', 'Table 201', 1, 1, 1, 3, NULL, '2020-07-05 12:01:35', '2020-07-05 12:01:35'),
(2, 2, 'Table Sub', 'Table 202', 1, 1, 1, 3, 1, '2020-07-05 12:01:48', '2020-07-05 12:38:23'),
(3, 3, 'Table Third', 'Table 203', 1, 1, 1, 3, 1, '2020-07-05 12:02:07', '2020-07-05 12:29:19'),
(4, 4, 'Table Four', 'Table 201', 1, 1, 1, 3, 1, '2020-07-05 12:03:58', '2020-07-05 12:29:23'),
(5, 5, 'Table Five', 'Table 201', 1, 1, 1, 3, 1, '2020-07-05 12:04:14', '2020-07-05 12:37:33'),
(6, 8, 'Table Six', 'Table 201', 1, 1, 1, 3, 1, '2020-07-05 12:04:33', '2020-07-08 06:54:42'),
(7, 9, 'Table Seven', 'Table 205', 1, 1, 1, 3, 1, '2020-07-05 12:05:04', '2020-07-05 12:37:08'),
(8, 5, 'Table Asset', 'Table 205', 1, 1, 1, 3, NULL, '2020-07-08 05:19:54', '2020-07-08 05:19:54');
-- --------------------------------------------------------
--
-- Table structure for table `asset_statuses`
--
CREATE TABLE `asset_statuses` (
`assetStatusId` bigint(20) UNSIGNED NOT NULL,
`shopAssetEntryId` int(11) NOT NULL,
`typeSelectId` int(11) NOT NULL,
`typeOptionId` int(11) NOT NULL,
`sendDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`receiveDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remarkSendTime` text COLLATE utf8mb4_unicode_ci NOT NULL,
`remarkReceiveTime` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `bank_entries`
--
CREATE TABLE `bank_entries` (
`bankEntryId` bigint(20) UNSIGNED NOT NULL,
`bankName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bankTypeEntryId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `bank_entries`
--
INSERT INTO `bank_entries` (`bankEntryId`, `bankName`, `bankTypeEntryId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(3, 'Agent Bank', 2, 1, NULL, '2020-03-26 15:44:08', '2020-03-26 15:44:08'),
(4, 'DBBL', 1, 1, NULL, '2020-03-26 15:44:12', '2020-03-26 15:44:12'),
(7, 'Agent Bank', 1, 1, NULL, '2020-06-24 09:01:22', '2020-06-24 09:01:22'),
(8, 'Dhaka Bank', 1, 1, 1, '2020-06-24 11:10:49', '2020-06-25 05:58:19');
-- --------------------------------------------------------
--
-- Table structure for table `bank_type_entries`
--
CREATE TABLE `bank_type_entries` (
`bankTypeEntryId` bigint(20) UNSIGNED NOT NULL,
`bankTypeEntryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bankTypeEntryStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `bank_type_entries`
--
INSERT INTO `bank_type_entries` (`bankTypeEntryId`, `bankTypeEntryName`, `bankTypeEntryStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Dutch Bangla Bank', '1', 1, 1, '2020-03-18 09:29:36', '2020-06-24 09:16:27'),
(2, 'Uttra Bank', '1', 1, NULL, '2020-03-18 09:29:40', '2020-03-18 09:29:40'),
(3, 'Dutch Bangla Bank Asia', '1', 1, 1, '2020-06-24 09:02:17', '2020-06-24 09:16:21');
-- --------------------------------------------------------
--
-- Table structure for table `basic_infos`
--
CREATE TABLE `basic_infos` (
`id` bigint(20) UNSIGNED NOT NULL,
`fullName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`religious` int(11) NOT NULL,
`image` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `branch_information`
--
CREATE TABLE `branch_information` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`branchName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`branchCode` int(11) NOT NULL,
`branchMobileNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`branchRepresentativeName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`branchRepresentativeMobileNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`branchAddress` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`paymentStatus` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `branch_information`
--
INSERT INTO `branch_information` (`id`, `shopId`, `branchName`, `branchCode`, `branchMobileNo`, `branchRepresentativeName`, `branchRepresentativeMobileNo`, `branchAddress`, `paymentStatus`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(19, 3, 'sdf', 1, 'sdf', 'sdf', 'sdf', 'sdf', 0, 1, 1, 1, NULL, NULL, '2021-04-17 09:10:44', '2021-04-17 09:10:44', NULL),
(20, 3, 'a', 2, 'a', 'a', 'a', 'a', 0, 1, 1, 1, NULL, NULL, '2021-04-17 09:11:00', '2021-04-17 09:11:00', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `brand_entries`
--
CREATE TABLE `brand_entries` (
`brandId` bigint(20) UNSIGNED NOT NULL,
`brandName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`brandStatus` int(11) NOT NULL,
`createByType` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `brand_entries`
--
INSERT INTO `brand_entries` (`brandId`, `brandName`, `brandStatus`, `createByType`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(5, 'Asus', 1, 3, 3, 3, '2020-07-12 05:49:05', '2021-03-14 15:46:46'),
(6, 'Sumsung', 1, 3, 3, NULL, '2020-07-12 05:50:05', '2020-07-12 05:50:05'),
(8, 'DoofazITt', 1, 3, 3, 3, '2020-12-14 05:42:13', '2020-12-14 05:43:40'),
(9, 'Pran', 1, 14, 14, NULL, '2021-03-08 05:14:16', '2021-03-08 05:14:16'),
(11, 'Radhuni', 1, 14, 14, 14, '2021-03-14 15:46:09', '2021-03-14 15:46:17');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`categoryId` bigint(20) UNSIGNED NOT NULL,
`categoryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`categoryPosition` int(11) NOT NULL DEFAULT 1,
`categoryStatus` int(11) NOT NULL,
`subCategoryStatus` tinyint(1) NOT NULL,
`shopTypeId` int(11) DEFAULT NULL,
`previousId` int(11) DEFAULT NULL,
`label` int(11) NOT NULL DEFAULT 1,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`categoryId`, `categoryName`, `categoryPosition`, `categoryStatus`, `subCategoryStatus`, `shopTypeId`, `previousId`, `label`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(9, 'Mans Fashion', 1, 1, 1, 4, NULL, 1, 1, NULL, '2021-04-19 04:56:40', '2021-04-19 04:56:40'),
(10, 'Shirt', 1, 1, 1, 4, 9, 2, 1, NULL, '2021-04-19 04:57:01', '2021-04-19 04:57:01'),
(11, 'Formal', 1, 1, 1, 4, 10, 3, 1, NULL, '2021-04-19 04:57:32', '2021-04-19 04:57:32'),
(12, 'Womans Fashion', 2, 1, 1, 4, NULL, 1, 3, NULL, '2021-04-19 04:59:01', '2021-04-19 04:59:01'),
(13, 'Saree', 1, 1, 1, 4, 12, 2, 3, NULL, '2021-04-19 04:59:25', '2021-04-19 04:59:25'),
(14, 'Cotton', 1, 1, 1, 4, 13, 3, 3, NULL, '2021-04-19 04:59:42', '2021-04-19 04:59:42'),
(15, 'Home App', 3, 1, 1, 4, NULL, 1, 3, NULL, '2021-04-19 10:59:53', '2021-04-19 10:59:53'),
(16, 'Kichen', 1, 1, 1, 4, 15, 2, 3, NULL, '2021-04-19 11:00:49', '2021-04-19 11:00:49'),
(17, 'sareee', 2, 1, 1, 4, 12, 2, 3, NULL, '2021-04-19 11:02:13', '2021-04-19 11:02:13'),
(18, 'mosharee', 2, 1, 1, 4, 13, 3, 1, NULL, '2021-04-19 11:03:41', '2021-04-19 11:03:41');
-- --------------------------------------------------------
--
-- Table structure for table `chart_of_accounts`
--
CREATE TABLE `chart_of_accounts` (
`id` bigint(20) UNSIGNED NOT NULL,
`headLavel` int(11) NOT NULL,
`headName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`headCode` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`pre_code` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`dr_cr` int(11) NOT NULL,
`headGroupId` int(11) NOT NULL,
`headGroupType` int(11) NOT NULL,
`lastCode` int(11) NOT NULL,
`status` int(11) NOT NULL,
`position` int(11) NOT NULL,
`autoCreate` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `chart_of_accounts`
--
INSERT INTO `chart_of_accounts` (`id`, `headLavel`, `headName`, `headCode`, `pre_code`, `dr_cr`, `headGroupId`, `headGroupType`, `lastCode`, `status`, `position`, `autoCreate`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 'Asset', '1', '0', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:36:41', NULL, NULL),
(2, 2, 'Non Current Assets', '101', '1', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:37:16', NULL, NULL),
(3, 2, 'Current Assets', '102', '1', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:37:34', NULL, NULL),
(4, 3, 'Cash & Bank Balance', '10201', '102', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:38:02', NULL, NULL),
(5, 4, 'Cash in Hand', '1020101', '10201', 1, 1, 2, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:38:33', NULL, NULL),
(6, 4, 'Cash at Bank', '1020102', '10201', 1, 1, 2, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:38:57', NULL, NULL),
(7, 5, 'General Cash', '102010101', '1020101', 1, 1, 4, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:43:37', NULL, NULL),
(8, 5, 'Petty Cash', '102010102', '1020101', 1, 1, 4, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:50:57', NULL, NULL),
(9, 5, 'CAB-DBBL Rampura Branch', '102010201', '1020102', 1, 1, 4, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 09:57:57', '2021-05-01 00:52:13', NULL),
(10, 1, 'Equities & Liabilities', '2', '0', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:27:05', NULL, NULL),
(11, 2, 'Equities', '201', '2', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:27:19', NULL, NULL),
(12, 2, 'Liabilities', '202', '2', 1, 1, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:27:34', NULL, NULL),
(13, 3, 'Non Current liabilities', '20201', '202', 1, 2, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:28:53', NULL, NULL),
(14, 3, 'Current liabilities', '20202', '202', 1, 2, 1, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:29:14', NULL, NULL),
(15, 4, 'Accounts Payable', '2020201', '20202', 1, 2, 2, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:29:55', NULL, NULL),
(16, 5, 'Accounts Payable Supplier', '202020101', '2020201', 1, 2, 3, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 10:30:25', NULL, NULL),
(17, 6, 'AP-Rabeya Enterprise', '20202010101', '202020101', 1, 1, 4, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 22:46:56', NULL, NULL),
(18, 3, 'Accounts Receiveable', '10202', '102', 1, 1, 2, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 23:41:31', NULL, NULL),
(19, 4, 'Accounts Receiveable Customer', '1020201', '10202', 1, 1, 3, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 23:43:04', NULL, NULL),
(20, 5, 'ARC-Md-Nazmul-Huda', '102020101', '1020201', 1, 1, 4, 0, 1, 0, 0, 1, NULL, NULL, '2021-04-30 23:44:02', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `chart_of_account_group_types`
--
CREATE TABLE `chart_of_account_group_types` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `chart_of_account_group_types`
--
INSERT INTO `chart_of_account_group_types` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Group', NULL, NULL),
(2, 'Ladger', NULL, NULL),
(3, 'Sub Ladger', NULL, NULL),
(4, 'Register', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `commission_type_entries`
--
CREATE TABLE `commission_type_entries` (
`commissionTypeEntryId` bigint(20) UNSIGNED NOT NULL,
`commissionTypeEntryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`commissionTypeEntryStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `commission_type_entries`
--
INSERT INTO `commission_type_entries` (`commissionTypeEntryId`, `commissionTypeEntryName`, `commissionTypeEntryStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Rubel', 1, 1, NULL, '2020-06-24 10:38:08', NULL),
(3, 'Rubel Khan', 1, 1, NULL, '2020-06-24 10:42:12', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `company_information`
--
CREATE TABLE `company_information` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `company_logos`
--
CREATE TABLE `company_logos` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`body` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` bigint(20) UNSIGNED NOT NULL,
`iso` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL,
`nicename` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL,
`iso3` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL,
`numcode` int(11) NOT NULL,
`phonecode` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `countries`
--
INSERT INTO `countries` (`id`, `iso`, `name`, `nicename`, `iso3`, `numcode`, `phonecode`, `created_at`, `updated_at`) VALUES
(1, 'AF', 'AFGHANISTAN', 'Afghanistan', 'AFG', 4, 93, NULL, NULL),
(2, 'AL', 'ALBANIA', 'Albania', 'ALB', 8, 355, NULL, NULL),
(3, 'DZ', 'ALGERIA', 'Algeria', 'DZA', 12, 213, NULL, NULL),
(4, 'AS', 'AMERICAN SAMOA', 'American Samoa', 'ASM', 16, 1684, NULL, NULL),
(5, 'AD', 'ANDORRA', 'Andorra', 'AND', 20, 376, NULL, NULL),
(6, 'AO', 'ANGOLA', 'Angola', 'AGO', 24, 244, NULL, NULL),
(7, 'AI', 'ANGUILLA', 'Anguilla', 'AIA', 660, 1264, NULL, NULL),
(8, 'AQ', 'ANTARCTICA', 'Antarctica', '', 0, 0, NULL, NULL),
(9, 'AG', 'ANTIGUA AND BARBUDA', 'Antigua and Barbuda', 'ATG', 28, 1268, NULL, NULL),
(10, 'AR', 'ARGENTINA', 'Argentina', 'ARG', 32, 54, NULL, NULL),
(11, 'AM', 'ARMENIA', 'Armenia', 'ARM', 51, 374, NULL, NULL),
(12, 'AW', 'ARUBA', 'Aruba', 'ABW', 533, 297, NULL, NULL),
(13, 'AU', 'AUSTRALIA', 'Australia', 'AUS', 36, 61, NULL, NULL),
(14, 'AT', 'AUSTRIA', 'Austria', 'AUT', 40, 43, NULL, NULL),
(15, 'AZ', 'AZERBAIJAN', 'Azerbaijan', 'AZE', 31, 994, NULL, NULL),
(16, 'BS', 'BAHAMAS', 'Bahamas', 'BHS', 44, 1242, NULL, NULL),
(17, 'BH', 'BAHRAIN', 'Bahrain', 'BHR', 48, 973, NULL, NULL),
(18, 'BD', 'BANGLADESH', 'Bangladesh', 'BGD', 50, 880, NULL, NULL),
(19, 'BB', 'BARBADOS', 'Barbados', 'BRB', 52, 1246, NULL, NULL),
(20, 'BY', 'BELARUS', 'Belarus', 'BLR', 112, 375, NULL, NULL),
(21, 'BE', 'BELGIUM', 'Belgium', 'BEL', 56, 32, NULL, NULL),
(22, 'BZ', 'BELIZE', 'Belize', 'BLZ', 84, 501, NULL, NULL),
(23, 'BJ', 'BENIN', 'Benin', 'BEN', 204, 229, NULL, NULL),
(24, 'BM', 'BERMUDA', 'Bermuda', 'BMU', 60, 1441, NULL, NULL),
(25, 'BT', 'BHUTAN', 'Bhutan', 'BTN', 64, 975, NULL, NULL),
(26, 'BO', 'BOLIVIA', 'Bolivia', 'BOL', 68, 591, NULL, NULL),
(27, 'BA', 'BOSNIA AND HERZEGOVINA', 'Bosnia and Herzegovina', 'BIH', 70, 387, NULL, NULL),
(28, 'BW', 'BOTSWANA', 'Botswana', 'BWA', 72, 267, NULL, NULL),
(29, 'BV', 'BOUVET ISLAND', 'Bouvet Island', '', 0, 0, NULL, NULL),
(30, 'BR', 'BRAZIL', 'Brazil', 'BRA', 76, 55, NULL, NULL),
(31, 'IO', 'BRITISH INDIAN OCEAN TERRITORY', 'British Indian Ocean Territory', '', 0, 246, NULL, NULL),
(32, 'BN', 'BRUNEI DARUSSALAM', 'Brunei Darussalam', 'BRN', 96, 673, NULL, NULL),
(33, 'BG', 'BULGARIA', 'Bulgaria', 'BGR', 100, 359, NULL, NULL),
(34, 'BF', 'BURKINA FASO', 'Burkina Faso', 'BFA', 854, 226, NULL, NULL),
(35, 'BI', 'BURUNDI', 'Burundi', 'BDI', 108, 257, NULL, NULL),
(36, 'KH', 'CAMBODIA', 'Cambodia', 'KHM', 116, 855, NULL, NULL),
(37, 'CM', 'CAMEROON', 'Cameroon', 'CMR', 120, 237, NULL, NULL),
(38, 'CA', 'CANADA', 'Canada', 'CAN', 124, 1, NULL, NULL),
(39, 'CV', 'CAPE VERDE', 'Cape Verde', 'CPV', 132, 238, NULL, NULL),
(40, 'KY', 'CAYMAN ISLANDS', 'Cayman Islands', 'CYM', 136, 1345, NULL, NULL),
(41, 'CF', 'CENTRAL AFRICAN REPUBLIC', 'Central African Republic', 'CAF', 140, 236, NULL, NULL),
(42, 'TD', 'CHAD', 'Chad', 'TCD', 148, 235, NULL, NULL),
(43, 'CL', 'CHILE', 'Chile', 'CHL', 152, 56, NULL, NULL),
(44, 'CN', 'CHINA', 'China', 'CHN', 156, 86, NULL, NULL),
(45, 'CX', 'CHRISTMAS ISLAND', 'Christmas Island', '', 0, 61, NULL, NULL),
(46, 'CC', 'COCOS (KEELING) ISLANDS', 'Cocos (Keeling) Islands', '', 0, 672, NULL, NULL),
(47, 'CO', 'COLOMBIA', 'Colombia', 'COL', 170, 57, NULL, NULL),
(48, 'KM', 'COMOROS', 'Comoros', 'COM', 174, 269, NULL, NULL),
(49, 'CG', 'CONGO', 'Congo', 'COG', 178, 242, NULL, NULL),
(50, 'CD', 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'Congo, the Democratic Republic of the', 'COD', 180, 242, NULL, NULL),
(51, 'CK', 'COOK ISLANDS', 'Cook Islands', 'COK', 184, 682, NULL, NULL),
(52, 'CR', 'COSTA RICA', 'Costa Rica', 'CRI', 188, 506, NULL, NULL),
(53, 'CI', 'COTE D\'IVOIRE', 'Cote D\'Ivoire', 'CIV', 384, 225, NULL, NULL),
(54, 'HR', 'CROATIA', 'Croatia', 'HRV', 191, 385, NULL, NULL),
(55, 'CU', 'CUBA', 'Cuba', 'CUB', 192, 53, NULL, NULL),
(56, 'CY', 'CYPRUS', 'Cyprus', 'CYP', 196, 357, NULL, NULL),
(57, 'CZ', 'CZECH REPUBLIC', 'Czech Republic', 'CZE', 203, 420, NULL, NULL),
(58, 'DK', 'DENMARK', 'Denmark', 'DNK', 208, 45, NULL, NULL),
(59, 'DJ', 'DJIBOUTI', 'Djibouti', 'DJI', 262, 253, NULL, NULL),
(60, 'DM', 'DOMINICA', 'Dominica', 'DMA', 212, 1767, NULL, NULL),
(61, 'DO', 'DOMINICAN REPUBLIC', 'Dominican Republic', 'DOM', 214, 1809, NULL, NULL),
(62, 'EC', 'ECUADOR', 'Ecuador', 'ECU', 218, 593, NULL, NULL),
(63, 'EG', 'EGYPT', 'Egypt', 'EGY', 818, 20, NULL, NULL),
(64, 'SV', 'EL SALVADOR', 'El Salvador', 'SLV', 222, 503, NULL, NULL),
(65, 'GQ', 'EQUATORIAL GUINEA', 'Equatorial Guinea', 'GNQ', 226, 240, NULL, NULL),
(66, 'ER', 'ERITREA', 'Eritrea', 'ERI', 232, 291, NULL, NULL),
(67, 'EE', 'ESTONIA', 'Estonia', 'EST', 233, 372, NULL, NULL),
(68, 'ET', 'ETHIOPIA', 'Ethiopia', 'ETH', 231, 251, NULL, NULL),
(69, 'FK', 'FALKLAND ISLANDS (MALVINAS)', 'Falkland Islands (Malvinas)', 'FLK', 238, 500, NULL, NULL),
(70, 'FO', 'FAROE ISLANDS', 'Faroe Islands', 'FRO', 234, 298, NULL, NULL),
(71, 'FJ', 'FIJI', 'Fiji', 'FJI', 242, 679, NULL, NULL),
(72, 'FI', 'FINLAND', 'Finland', 'FIN', 246, 358, NULL, NULL),
(73, 'FR', 'FRANCE', 'France', 'FRA', 250, 33, NULL, NULL),
(74, 'GF', 'FRENCH GUIANA', 'French Guiana', 'GUF', 254, 594, NULL, NULL),
(75, 'PF', 'FRENCH POLYNESIA', 'French Polynesia', 'PYF', 258, 689, NULL, NULL),
(76, 'TF', 'FRENCH SOUTHERN TERRITORIES', 'French Southern Territories', '', 0, 0, NULL, NULL),
(77, 'GA', 'GABON', 'Gabon', 'GAB', 266, 241, NULL, NULL),
(78, 'GM', 'GAMBIA', 'Gambia', 'GMB', 270, 220, NULL, NULL),
(79, 'GE', 'GEORGIA', 'Georgia', 'GEO', 268, 995, NULL, NULL),
(80, 'DE', 'GERMANY', 'Germany', 'DEU', 276, 49, NULL, NULL),
(81, 'GH', 'GHANA', 'Ghana', 'GHA', 288, 233, NULL, NULL),
(82, 'GI', 'GIBRALTAR', 'Gibraltar', 'GIB', 292, 350, NULL, NULL),
(83, 'GR', 'GREECE', 'Greece', 'GRC', 300, 30, NULL, NULL),
(84, 'GL', 'GREENLAND', 'Greenland', 'GRL', 304, 299, NULL, NULL),
(85, 'GD', 'GRENADA', 'Grenada', 'GRD', 308, 1473, NULL, NULL),
(86, 'GP', 'GUADELOUPE', 'Guadeloupe', 'GLP', 312, 590, NULL, NULL),
(87, 'GU', 'GUAM', 'Guam', 'GUM', 316, 1671, NULL, NULL),
(88, 'GT', 'GUATEMALA', 'Guatemala', 'GTM', 320, 502, NULL, NULL),
(89, 'GN', 'GUINEA', 'Guinea', 'GIN', 324, 224, NULL, NULL),
(90, 'GW', 'GUINEA-BISSAU', 'Guinea-Bissau', 'GNB', 624, 245, NULL, NULL),
(91, 'GY', 'GUYANA', 'Guyana', 'GUY', 328, 592, NULL, NULL),
(92, 'HT', 'HAITI', 'Haiti', 'HTI', 332, 509, NULL, NULL),
(93, 'HM', 'HEARD ISLAND AND MCDONALD ISLANDS', 'Heard Island and Mcdonald Islands', '', 0, 0, NULL, NULL),
(94, 'VA', 'HOLY SEE (VATICAN CITY STATE)', 'Holy See (Vatican City State)', 'VAT', 336, 39, NULL, NULL),
(95, 'HN', 'HONDURAS', 'Honduras', 'HND', 340, 504, NULL, NULL),
(96, 'HK', 'HONG KONG', 'Hong Kong', 'HKG', 344, 852, NULL, NULL),
(97, 'HU', 'HUNGARY', 'Hungary', 'HUN', 348, 36, NULL, NULL),
(98, 'IS', 'ICELAND', 'Iceland', 'ISL', 352, 354, NULL, NULL),
(99, 'IN', 'INDIA', 'India', 'IND', 356, 91, NULL, NULL),
(100, 'ID', 'INDONESIA', 'Indonesia', 'IDN', 360, 62, NULL, NULL),
(101, 'IR', 'IRAN, ISLAMIC REPUBLIC OF', 'Iran, Islamic Republic of', 'IRN', 364, 98, NULL, NULL),
(102, 'IQ', 'IRAQ', 'Iraq', 'IRQ', 368, 964, NULL, NULL),
(103, 'IE', 'IRELAND', 'Ireland', 'IRL', 372, 353, NULL, NULL),
(104, 'IL', 'ISRAEL', 'Israel', 'ISR', 376, 972, NULL, NULL),
(105, 'IT', 'ITALY', 'Italy', 'ITA', 380, 39, NULL, NULL),
(106, 'JM', 'JAMAICA', 'Jamaica', 'JAM', 388, 1876, NULL, NULL),
(107, 'JP', 'JAPAN', 'Japan', 'JPN', 392, 81, NULL, NULL),
(108, 'JO', 'JORDAN', 'Jordan', 'JOR', 400, 962, NULL, NULL),
(109, 'KZ', 'KAZAKHSTAN', 'Kazakhstan', 'KAZ', 398, 7, NULL, NULL),
(110, 'KE', 'KENYA', 'Kenya', 'KEN', 404, 254, NULL, NULL),
(111, 'KI', 'KIRIBATI', 'Kiribati', 'KIR', 296, 686, NULL, NULL),
(112, 'KP', 'KOREA, DEMOCRATIC PEOPLE\'S REPUBLIC OF', 'Korea, Democratic People\'s Republic of', 'PRK', 408, 850, NULL, NULL),
(113, 'KR', 'KOREA, REPUBLIC OF', 'Korea, Republic of', 'KOR', 410, 82, NULL, NULL),
(114, 'KW', 'KUWAIT', 'Kuwait', 'KWT', 414, 965, NULL, NULL),
(115, 'KG', 'KYRGYZSTAN', 'Kyrgyzstan', 'KGZ', 417, 996, NULL, NULL),
(116, 'LA', 'LAO PEOPLE\'S DEMOCRATIC REPUBLIC', 'Lao People\'s Democratic Republic', 'LAO', 418, 856, NULL, NULL),
(117, 'LV', 'LATVIA', 'Latvia', 'LVA', 428, 371, NULL, NULL),
(118, 'LB', 'LEBANON', 'Lebanon', 'LBN', 422, 961, NULL, NULL),
(119, 'LS', 'LESOTHO', 'Lesotho', 'LSO', 426, 266, NULL, NULL),
(120, 'LR', 'LIBERIA', 'Liberia', 'LBR', 430, 231, NULL, NULL),
(121, 'LY', 'LIBYAN ARAB JAMAHIRIYA', 'Libyan Arab Jamahiriya', 'LBY', 434, 218, NULL, NULL),
(122, 'LI', 'LIECHTENSTEIN', 'Liechtenstein', 'LIE', 438, 423, NULL, NULL),
(123, 'LT', 'LITHUANIA', 'Lithuania', 'LTU', 440, 370, NULL, NULL),
(124, 'LU', 'LUXEMBOURG', 'Luxembourg', 'LUX', 442, 352, NULL, NULL),
(125, 'MO', 'MACAO', 'Macao', 'MAC', 446, 853, NULL, NULL),
(126, 'MK', 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF', 'Macedonia, the Former Yugoslav Republic of', 'MKD', 807, 389, NULL, NULL),
(127, 'MG', 'MADAGASCAR', 'Madagascar', 'MDG', 450, 261, NULL, NULL),
(128, 'MW', 'MALAWI', 'Malawi', 'MWI', 454, 265, NULL, NULL),
(129, 'MY', 'MALAYSIA', 'Malaysia', 'MYS', 458, 60, NULL, NULL),
(130, 'MV', 'MALDIVES', 'Maldives', 'MDV', 462, 960, NULL, NULL),
(131, 'ML', 'MALI', 'Mali', 'MLI', 466, 223, NULL, NULL),
(132, 'MT', 'MALTA', 'Malta', 'MLT', 470, 356, NULL, NULL),
(133, 'MH', 'MARSHALL ISLANDS', 'Marshall Islands', 'MHL', 584, 692, NULL, NULL),
(134, 'MQ', 'MARTINIQUE', 'Martinique', 'MTQ', 474, 596, NULL, NULL),
(135, 'MR', 'MAURITANIA', 'Mauritania', 'MRT', 478, 222, NULL, NULL),
(136, 'MU', 'MAURITIUS', 'Mauritius', 'MUS', 480, 230, NULL, NULL),
(137, 'YT', 'MAYOTTE', 'Mayotte', '', 0, 269, NULL, NULL),
(138, 'MX', 'MEXICO', 'Mexico', 'MEX', 484, 52, NULL, NULL),
(139, 'FM', 'MICRONESIA, FEDERATED STATES OF', 'Micronesia, Federated States of', 'FSM', 583, 691, NULL, NULL),
(140, 'MD', 'MOLDOVA, REPUBLIC OF', 'Moldova, Republic of', 'MDA', 498, 373, NULL, NULL),
(141, 'MC', 'MONACO', 'Monaco', 'MCO', 492, 377, NULL, NULL),
(142, 'MN', 'MONGOLIA', 'Mongolia', 'MNG', 496, 976, NULL, NULL),
(143, 'MS', 'MONTSERRAT', 'Montserrat', 'MSR', 500, 1664, NULL, NULL),
(144, 'MA', 'MOROCCO', 'Morocco', 'MAR', 504, 212, NULL, NULL),
(145, 'MZ', 'MOZAMBIQUE', 'Mozambique', 'MOZ', 508, 258, NULL, NULL),
(146, 'MM', 'MYANMAR', 'Myanmar', 'MMR', 104, 95, NULL, NULL),
(147, 'NA', 'NAMIBIA', 'Namibia', 'NAM', 516, 264, NULL, NULL),
(148, 'NR', 'NAURU', 'Nauru', 'NRU', 520, 674, NULL, NULL),
(149, 'NP', 'NEPAL', 'Nepal', 'NPL', 524, 977, NULL, NULL),
(150, 'NL', 'NETHERLANDS', 'Netherlands', 'NLD', 528, 31, NULL, NULL),
(151, 'AN', 'NETHERLANDS ANTILLES', 'Netherlands Antilles', 'ANT', 530, 599, NULL, NULL),
(152, 'NC', 'NEW CALEDONIA', 'New Caledonia', 'NCL', 540, 687, NULL, NULL),
(153, 'NZ', 'NEW ZEALAND', 'New Zealand', 'NZL', 554, 64, NULL, NULL),
(154, 'NI', 'NICARAGUA', 'Nicaragua', 'NIC', 558, 505, NULL, NULL),
(155, 'NE', 'NIGER', 'Niger', 'NER', 562, 227, NULL, NULL),
(156, 'NG', 'NIGERIA', 'Nigeria', 'NGA', 566, 234, NULL, NULL),
(157, 'NU', 'NIUE', 'Niue', 'NIU', 570, 683, NULL, NULL),
(158, 'NF', 'NORFOLK ISLAND', 'Norfolk Island', 'NFK', 574, 672, NULL, NULL),
(159, 'MP', 'NORTHERN MARIANA ISLANDS', 'Northern Mariana Islands', 'MNP', 580, 1670, NULL, NULL),
(160, 'NO', 'NORWAY', 'Norway', 'NOR', 578, 47, NULL, NULL),
(161, 'OM', 'OMAN', 'Oman', 'OMN', 512, 968, NULL, NULL),
(162, 'PK', 'PAKISTAN', 'Pakistan', 'PAK', 586, 92, NULL, NULL),
(163, 'PW', 'PALAU', 'Palau', 'PLW', 585, 680, NULL, NULL),
(164, 'PS', 'PALESTINIAN TERRITORY, OCCUPIED', 'Palestinian Territory, Occupied', '', 0, 970, NULL, NULL),
(165, 'PA', 'PANAMA', 'Panama', 'PAN', 591, 507, NULL, NULL),
(166, 'PG', 'PAPUA NEW GUINEA', 'Papua New Guinea', 'PNG', 598, 675, NULL, NULL),
(167, 'PY', 'PARAGUAY', 'Paraguay', 'PRY', 600, 595, NULL, NULL),
(168, 'PE', 'PERU', 'Peru', 'PER', 604, 51, NULL, NULL),
(169, 'PH', 'PHILIPPINES', 'Philippines', 'PHL', 608, 63, NULL, NULL),
(170, 'PN', 'PITCAIRN', 'Pitcairn', 'PCN', 612, 0, NULL, NULL),
(171, 'PL', 'POLAND', 'Poland', 'POL', 616, 48, NULL, NULL),
(172, 'PT', 'PORTUGAL', 'Portugal', 'PRT', 620, 351, NULL, NULL),
(173, 'PR', 'PUERTO RICO', 'Puerto Rico', 'PRI', 630, 1787, NULL, NULL),
(174, 'QA', 'QATAR', 'Qatar', 'QAT', 634, 974, NULL, NULL),
(175, 'RE', 'REUNION', 'Reunion', 'REU', 638, 262, NULL, NULL),
(176, 'RO', 'ROMANIA', 'Romania', 'ROM', 642, 40, NULL, NULL),
(177, 'RU', 'RUSSIAN FEDERATION', 'Russian Federation', 'RUS', 643, 70, NULL, NULL),
(178, 'RW', 'RWANDA', 'Rwanda', 'RWA', 646, 250, NULL, NULL),
(179, 'SH', 'SAINT HELENA', 'Saint Helena', 'SHN', 654, 290, NULL, NULL),
(180, 'KN', 'SAINT KITTS AND NEVIS', 'Saint Kitts and Nevis', 'KNA', 659, 1869, NULL, NULL),
(181, 'LC', 'SAINT LUCIA', 'Saint Lucia', 'LCA', 662, 1758, NULL, NULL),
(182, 'PM', 'SAINT PIERRE AND MIQUELON', 'Saint Pierre and Miquelon', 'SPM', 666, 508, NULL, NULL),
(183, 'VC', 'SAINT VINCENT AND THE GRENADINES', 'Saint Vincent and the Grenadines', 'VCT', 670, 1784, NULL, NULL),
(184, 'WS', 'SAMOA', 'Samoa', 'WSM', 882, 684, NULL, NULL),
(185, 'SM', 'SAN MARINO', 'San Marino', 'SMR', 674, 378, NULL, NULL),
(186, 'ST', 'SAO TOME AND PRINCIPE', 'Sao Tome and Principe', 'STP', 678, 239, NULL, NULL),
(187, 'SA', 'SAUDI ARABIA', 'Saudi Arabia', 'SAU', 682, 966, NULL, NULL),
(188, 'SN', 'SENEGAL', 'Senegal', 'SEN', 686, 221, NULL, NULL),
(189, 'CS', 'SERBIA AND MONTENEGRO', 'Serbia and Montenegro', '', 0, 381, NULL, NULL),
(190, 'SC', 'SEYCHELLES', 'Seychelles', 'SYC', 690, 248, NULL, NULL),
(191, 'SL', 'SIERRA LEONE', 'Sierra Leone', 'SLE', 694, 232, NULL, NULL),
(192, 'SG', 'SINGAPORE', 'Singapore', 'SGP', 702, 65, NULL, NULL),
(193, 'SK', 'SLOVAKIA', 'Slovakia', 'SVK', 703, 421, NULL, NULL),
(194, 'SI', 'SLOVENIA', 'Slovenia', 'SVN', 705, 386, NULL, NULL),
(195, 'SB', 'SOLOMON ISLANDS', 'Solomon Islands', 'SLB', 90, 677, NULL, NULL),
(196, 'SO', 'SOMALIA', 'Somalia', 'SOM', 706, 252, NULL, NULL),
(197, 'ZA', 'SOUTH AFRICA', 'South Africa', 'ZAF', 710, 27, NULL, NULL),
(198, 'GS', 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'South Georgia and the South Sandwich Islands', '', 0, 0, NULL, NULL),
(199, 'ES', 'SPAIN', 'Spain', 'ESP', 724, 34, NULL, NULL),
(200, 'LK', 'SRI LANKA', 'Sri Lanka', 'LKA', 144, 94, NULL, NULL),
(201, 'SD', 'SUDAN', 'Sudan', 'SDN', 736, 249, NULL, NULL),
(202, 'SR', 'SURINAME', 'Suriname', 'SUR', 740, 597, NULL, NULL),
(203, 'SJ', 'SVALBARD AND JAN MAYEN', 'Svalbard and Jan Mayen', 'SJM', 744, 47, NULL, NULL),
(204, 'SZ', 'SWAZILAND', 'Swaziland', 'SWZ', 748, 268, NULL, NULL),
(205, 'SE', 'SWEDEN', 'Sweden', 'SWE', 752, 46, NULL, NULL),
(206, 'CH', 'SWITZERLAND', 'Switzerland', 'CHE', 756, 41, NULL, NULL),
(207, 'SY', 'SYRIAN ARAB REPUBLIC', 'Syrian Arab Republic', 'SYR', 760, 963, NULL, NULL),
(208, 'TW', 'TAIWAN, PROVINCE OF CHINA', 'Taiwan, Province of China', 'TWN', 158, 886, NULL, NULL),
(209, 'TJ', 'TAJIKISTAN', 'Tajikistan', 'TJK', 762, 992, NULL, NULL),
(210, 'TZ', 'TANZANIA, UNITED REPUBLIC OF', 'Tanzania, United Republic of', 'TZA', 834, 255, NULL, NULL),
(211, 'TH', 'THAILAND', 'Thailand', 'THA', 764, 66, NULL, NULL),
(212, 'TL', 'TIMOR-LESTE', 'Timor-Leste', '', 0, 670, NULL, NULL),
(213, 'TG', 'TOGO', 'Togo', 'TGO', 768, 228, NULL, NULL),
(214, 'TK', 'TOKELAU', 'Tokelau', 'TKL', 772, 690, NULL, NULL),
(215, 'TO', 'TONGA', 'Tonga', 'TON', 776, 676, NULL, NULL),
(216, 'TT', 'TRINIDAD AND TOBAGO', 'Trinidad and Tobago', 'TTO', 780, 1868, NULL, NULL),
(217, 'TN', 'TUNISIA', 'Tunisia', 'TUN', 788, 216, NULL, NULL),
(218, 'TR', 'TURKEY', 'Turkey', 'TUR', 792, 90, NULL, NULL),
(219, 'TM', 'TURKMENISTAN', 'Turkmenistan', 'TKM', 795, 7370, NULL, NULL),
(220, 'TC', 'TURKS AND CAICOS ISLANDS', 'Turks and Caicos Islands', 'TCA', 796, 1649, NULL, NULL),
(221, 'TV', 'TUVALU', 'Tuvalu', 'TUV', 798, 688, NULL, NULL),
(222, 'UG', 'UGANDA', 'Uganda', 'UGA', 800, 256, NULL, NULL),
(223, 'UA', 'UKRAINE', 'Ukraine', 'UKR', 804, 380, NULL, NULL),
(224, 'AE', 'UNITED ARAB EMIRATES', 'United Arab Emirates', 'ARE', 784, 971, NULL, NULL),
(225, 'GB', 'UNITED KINGDOM', 'United Kingdom', 'GBR', 826, 44, NULL, NULL),
(226, 'US', 'UNITED STATES', 'United States', 'USA', 840, 1, NULL, NULL),
(227, 'UM', 'UNITED STATES MINOR OUTLYING ISLANDS', 'United States Minor Outlying Islands', '', 0, 1, NULL, NULL),
(228, 'UY', 'URUGUAY', 'Uruguay', 'URY', 858, 598, NULL, NULL),
(229, 'UZ', 'UZBEKISTAN', 'Uzbekistan', 'UZB', 860, 998, NULL, NULL),
(230, 'VU', 'VANUATU', 'Vanuatu', 'VUT', 548, 678, NULL, NULL),
(231, 'VE', 'VENEZUELA', 'Venezuela', 'VEN', 862, 58, NULL, NULL),
(232, 'VN', 'VIET NAM', 'Viet Nam', 'VNM', 704, 84, NULL, NULL),
(233, 'VG', 'VIRGIN ISLANDS, BRITISH', 'Virgin Islands, British', 'VGB', 92, 1284, NULL, NULL),
(234, 'VI', 'VIRGIN ISLANDS, U.S.', 'Virgin Islands, U.s.', 'VIR', 850, 1340, NULL, NULL),
(235, 'WF', 'WALLIS AND FUTUNA', 'Wallis and Futuna', 'WLF', 876, 681, NULL, NULL),
(236, 'EH', 'WESTERN SAHARA', 'Western Sahara', 'ESH', 732, 212, NULL, NULL),
(237, 'YE', 'YEMEN', 'Yemen', 'YEM', 887, 967, NULL, NULL),
(238, 'ZM', 'ZAMBIA', 'Zambia', 'ZMB', 894, 260, NULL, NULL),
(239, 'ZW', 'ZIMBABWE', 'Zimbabwe', 'ZWE', 716, 263, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `currencies`
--
CREATE TABLE `currencies` (
`id` bigint(20) UNSIGNED NOT NULL,
`country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`currency` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
`codeBdt` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`minor_unit` int(11) NOT NULL,
`symbol` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `currencies`
--
INSERT INTO `currencies` (`id`, `country`, `currency`, `code`, `codeBdt`, `minor_unit`, `symbol`, `created_at`, `updated_at`) VALUES
(1, '1', '1', '1', NULL, 1, '1', NULL, NULL),
(2, 'Afghanistan', 'Afghani', 'AFN', NULL, 2, '؋', NULL, NULL),
(3, 'Åland Islands', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(4, 'Albania', 'Lek', 'ALL', NULL, 2, 'Lek', NULL, NULL),
(5, 'Algeria', 'Algerian Dinar', 'DZD', NULL, 2, '', NULL, NULL),
(6, 'American Samoa', 'US Dollar', 'USD', 'USD_BDT', 2, '$', NULL, NULL),
(7, 'Andorra', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(8, 'Angola', 'Kwanza', 'AOA', NULL, 2, '', NULL, NULL),
(9, 'Anguilla', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(10, 'Antigua And Barbuda', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(11, 'Argentina', 'Argentine Peso', 'ARS', NULL, 2, '$', NULL, NULL),
(12, 'Armenia', 'Armenian Dram', 'AMD', NULL, 2, '', NULL, NULL),
(13, 'Aruba', 'Aruban Florin', 'AWG', NULL, 2, '', NULL, NULL),
(14, 'Australia', 'Australian Dollar', 'AUD', NULL, 2, '$', NULL, NULL),
(15, 'Austria', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(16, 'Azerbaijan', 'Azerbaijan Manat', 'AZN', NULL, 2, '', NULL, NULL),
(17, 'Bahamas', 'Bahamian Dollar', 'BSD', NULL, 2, '$', NULL, NULL),
(18, 'Bahrain', 'Bahraini Dinar', 'BHD', NULL, 3, '', NULL, NULL),
(19, 'Bangladesh', 'Taka', 'BDT', NULL, 2, '৳', NULL, NULL),
(20, 'Barbados', 'Barbados Dollar', 'BBD', NULL, 2, '$', NULL, NULL),
(21, 'Belarus', 'Belarusian Ruble', 'BYN', NULL, 2, '', NULL, NULL),
(22, 'Belgium', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(23, 'Belize', 'Belize Dollar', 'BZD', NULL, 2, 'BZ$', NULL, NULL),
(24, 'Benin', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(25, 'Bermuda', 'Bermudian Dollar', 'BMD', NULL, 2, '', NULL, NULL),
(26, 'Bhutan', 'Indian Rupee', 'INR', NULL, 2, '₹', NULL, NULL),
(27, 'Bhutan', 'Ngultrum', 'BTN', NULL, 2, '', NULL, NULL),
(28, 'Bolivia', 'Boliviano', 'BOB', NULL, 2, '', NULL, NULL),
(29, 'Bolivia', 'Mvdol', 'BOV', NULL, 2, '', NULL, NULL),
(30, 'Bonaire, Sint Eustatius And Saba', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(31, 'Bosnia And Herzegovina', 'Convertible Mark', 'BAM', NULL, 2, '', NULL, NULL),
(32, 'Botswana', 'Pula', 'BWP', NULL, 2, '', NULL, NULL),
(33, 'Bouvet Island', 'Norwegian Krone', 'NOK', NULL, 2, '', NULL, NULL),
(34, 'Brazil', 'Brazilian Real', 'BRL', NULL, 2, 'R$', NULL, NULL),
(35, 'British Indian Ocean Territory', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(36, 'Brunei Darussalam', 'Brunei Dollar', 'BND', NULL, 2, '', NULL, NULL),
(37, 'Bulgaria', 'Bulgarian Lev', 'BGN', NULL, 2, 'лв', NULL, NULL),
(38, 'Burkina Faso', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(39, 'Burundi', 'Burundi Franc', 'BIF', NULL, 0, '', NULL, NULL),
(40, 'Cabo Verde', 'Cabo Verde Escudo', 'CVE', NULL, 2, '', NULL, NULL),
(41, 'Cambodia', 'Riel', 'KHR', NULL, 2, '៛', NULL, NULL),
(42, 'Cameroon', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(43, 'Canada', 'Canadian Dollar', 'CAD', NULL, 2, '$', NULL, NULL),
(44, 'Cayman Islands', 'Cayman Islands Dollar', 'KYD', NULL, 2, '', NULL, NULL),
(45, 'Central African Republic', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(46, 'Chad', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(47, 'Chile', 'Chilean Peso', 'CLP', NULL, 0, '$', NULL, NULL),
(48, 'Chile', 'Unidad de Fomento', 'CLF', NULL, 4, '', NULL, NULL),
(49, 'China', 'Yuan Renminbi', 'CNY', NULL, 2, '¥', NULL, NULL),
(50, 'Christmas Island', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(51, 'Cocos (keeling) Islands', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(52, 'Colombia', 'Colombian Peso', 'COP', NULL, 2, '$', NULL, NULL),
(53, 'Colombia', 'Unidad de Valor Real', 'COU', NULL, 2, '', NULL, NULL),
(54, 'Comoros', 'Comorian Franc ', 'KMF', NULL, 0, '', NULL, NULL),
(55, 'Congo (the Democratic Republic Of The)', 'Congolese Franc', 'CDF', NULL, 2, '', NULL, NULL),
(56, 'Congo', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(57, 'Cook Islands', 'New Zealand Dollar', 'NZD', NULL, 2, '$', NULL, NULL),
(58, 'Costa Rica', 'Costa Rican Colon', 'CRC', NULL, 2, '', NULL, NULL),
(59, 'Côte D\'ivoire', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(60, 'Croatia', 'Kuna', 'HRK', NULL, 2, 'kn', NULL, NULL),
(61, 'Cuba', 'Cuban Peso', 'CUP', NULL, 2, '', NULL, NULL),
(62, 'Cuba', 'Peso Convertible', 'CUC', NULL, 2, '', NULL, NULL),
(63, 'Curaçao', 'Netherlands Antillean Guilder', 'ANG', NULL, 2, '', NULL, NULL),
(64, 'Cyprus', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(65, 'Czechia', 'Czech Koruna', 'CZK', NULL, 2, 'Kč', NULL, NULL),
(66, 'Denmark', 'Danish Krone', 'DKK', NULL, 2, 'kr', NULL, NULL),
(67, 'Djibouti', 'Djibouti Franc', 'DJF', NULL, 0, '', NULL, NULL),
(68, 'Dominica', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(69, 'Dominican Republic', 'Dominican Peso', 'DOP', NULL, 2, '', NULL, NULL),
(70, 'Ecuador', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(71, 'Egypt', 'Egyptian Pound', 'EGP', NULL, 2, '', NULL, NULL),
(72, 'El Salvador', 'El Salvador Colon', 'SVC', NULL, 2, '', NULL, NULL),
(73, 'El Salvador', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(74, 'Equatorial Guinea', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(75, 'Eritrea', 'Nakfa', 'ERN', NULL, 2, '', NULL, NULL),
(76, 'Estonia', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(77, 'Eswatini', 'Lilangeni', 'SZL', NULL, 2, '', NULL, NULL),
(78, 'Ethiopia', 'Ethiopian Birr', 'ETB', NULL, 2, '', NULL, NULL),
(79, 'European Union', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(80, 'Falkland Islands [Malvinas]', 'Falkland Islands Pound', 'FKP', NULL, 2, '', NULL, NULL),
(81, 'Faroe Islands', 'Danish Krone', 'DKK', NULL, 2, '', NULL, NULL),
(82, 'Fiji', 'Fiji Dollar', 'FJD', NULL, 2, '', NULL, NULL),
(83, 'Finland', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(84, 'France', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(85, 'French Guiana', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(86, 'French Polynesia', 'CFP Franc', 'XPF', NULL, 0, '', NULL, NULL),
(87, 'French Southern Territories', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(88, 'Gabon', 'CFA Franc BEAC', 'XAF', NULL, 0, '', NULL, NULL),
(89, 'Gambia', 'Dalasi', 'GMD', NULL, 2, '', NULL, NULL),
(90, 'Georgia', 'Lari', 'GEL', NULL, 2, '₾', NULL, NULL),
(91, 'Germany', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(92, 'Ghana', 'Ghana Cedi', 'GHS', NULL, 2, '', NULL, NULL),
(93, 'Gibraltar', 'Gibraltar Pound', 'GIP', NULL, 2, '', NULL, NULL),
(94, 'Greece', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(95, 'Greenland', 'Danish Krone', 'DKK', NULL, 2, '', NULL, NULL),
(96, 'Grenada', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(97, 'Guadeloupe', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(98, 'Guam', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(99, 'Guatemala', 'Quetzal', 'GTQ', NULL, 2, '', NULL, NULL),
(100, 'Guernsey', 'Pound Sterling', 'GBP', NULL, 2, '£', NULL, NULL),
(101, 'Guinea', 'Guinean Franc', 'GNF', NULL, 0, '', NULL, NULL),
(102, 'Guinea-bissau', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(103, 'Guyana', 'Guyana Dollar', 'GYD', NULL, 2, '', NULL, NULL),
(104, 'Haiti', 'Gourde', 'HTG', NULL, 2, '', NULL, NULL),
(105, 'Haiti', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(106, 'Heard Island And Mcdonald Islands', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(107, 'Holy See (Vatican)', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(108, 'Honduras', 'Lempira', 'HNL', NULL, 2, '', NULL, NULL),
(109, 'Hong Kong', 'Hong Kong Dollar', 'HKD', NULL, 2, '$', NULL, NULL),
(110, 'Hungary', 'Forint', 'HUF', NULL, 2, 'ft', NULL, NULL),
(111, 'Iceland', 'Iceland Krona', 'ISK', NULL, 0, '', NULL, NULL),
(112, 'India', 'Indian Rupee', 'INR', NULL, 2, '₹', NULL, NULL),
(113, 'Indonesia', 'Rupiah', 'IDR', NULL, 2, 'Rp', NULL, NULL),
(114, 'International Monetary Fund (IMF)', 'SDR (Special Drawing Right)', 'XDR', NULL, 0, '', NULL, NULL),
(115, 'Iran', 'Iranian Rial', 'IRR', NULL, 2, '', NULL, NULL),
(116, 'Iraq', 'Iraqi Dinar', 'IQD', NULL, 3, '', NULL, NULL),
(117, 'Ireland', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(118, 'Isle Of Man', 'Pound Sterling', 'GBP', NULL, 2, '£', NULL, NULL),
(119, 'Israel', 'New Israeli Sheqel', 'ILS', NULL, 2, '₪', NULL, NULL),
(120, 'Italy', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(121, 'Jamaica', 'Jamaican Dollar', 'JMD', NULL, 2, '', NULL, NULL),
(122, 'Japan', 'Yen', 'JPY', NULL, 0, '¥', NULL, NULL),
(123, 'Jersey', 'Pound Sterling', 'GBP', NULL, 2, '£', NULL, NULL),
(124, 'Jordan', 'Jordanian Dinar', 'JOD', NULL, 3, '', NULL, NULL),
(125, 'Kazakhstan', 'Tenge', 'KZT', NULL, 2, '', NULL, NULL),
(126, 'Kenya', 'Kenyan Shilling', 'KES', NULL, 2, 'Ksh', NULL, NULL),
(127, 'Kiribati', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(128, 'Korea (the Democratic People’s Republic Of)', 'North Korean Won', 'KPW', NULL, 2, '', NULL, NULL),
(129, 'Korea (the Republic Of)', 'Won', 'KRW', NULL, 0, '₩', NULL, NULL),
(130, 'Kuwait', 'Kuwaiti Dinar', 'KWD', NULL, 3, '', NULL, NULL),
(131, 'Kyrgyzstan', 'Som', 'KGS', NULL, 2, '', NULL, NULL),
(132, 'Lao People’s Democratic Republic', 'Lao Kip', 'LAK', NULL, 2, '', NULL, NULL),
(133, 'Latvia', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(134, 'Lebanon', 'Lebanese Pound', 'LBP', NULL, 2, '', NULL, NULL),
(135, 'Lesotho', 'Loti', 'LSL', NULL, 2, '', NULL, NULL),
(136, 'Lesotho', 'Rand', 'ZAR', NULL, 2, '', NULL, NULL),
(137, 'Liberia', 'Liberian Dollar', 'LRD', NULL, 2, '', NULL, NULL),
(138, 'Libya', 'Libyan Dinar', 'LYD', NULL, 3, '', NULL, NULL),
(139, 'Liechtenstein', 'Swiss Franc', 'CHF', NULL, 2, '', NULL, NULL),
(140, 'Lithuania', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(141, 'Luxembourg', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(142, 'Macao', 'Pataca', 'MOP', NULL, 2, '', NULL, NULL),
(143, 'North Macedonia', 'Denar', 'MKD', NULL, 2, '', NULL, NULL),
(144, 'Madagascar', 'Malagasy Ariary', 'MGA', NULL, 2, '', NULL, NULL),
(145, 'Malawi', 'Malawi Kwacha', 'MWK', NULL, 2, '', NULL, NULL),
(146, 'Malaysia', 'Malaysian Ringgit', 'MYR', NULL, 2, 'RM', NULL, NULL),
(147, 'Maldives', 'Rufiyaa', 'MVR', NULL, 2, '', NULL, NULL),
(148, 'Mali', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(149, 'Malta', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(150, 'Marshall Islands', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(151, 'Martinique', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(152, 'Mauritania', 'Ouguiya', 'MRU', NULL, 2, '', NULL, NULL),
(153, 'Mauritius', 'Mauritius Rupee', 'MUR', NULL, 2, '', NULL, NULL),
(154, 'Mayotte', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(155, 'Member Countries Of The African Development Bank Group', 'ADB Unit of Account', 'XUA', NULL, 0, '', NULL, NULL),
(156, 'Mexico', 'Mexican Peso', 'MXN', NULL, 2, '$', NULL, NULL),
(157, 'Mexico', 'Mexican Unidad de Inversion (UDI)', 'MXV', NULL, 2, '', NULL, NULL),
(158, 'Micronesia', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(159, 'Moldova', 'Moldovan Leu', 'MDL', NULL, 2, '', NULL, NULL),
(160, 'Monaco', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(161, 'Mongolia', 'Tugrik', 'MNT', NULL, 2, '', NULL, NULL),
(162, 'Montenegro', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(163, 'Montserrat', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(164, 'Morocco', 'Moroccan Dirham', 'MAD', NULL, 2, ' .د.م ', NULL, NULL),
(165, 'Mozambique', 'Mozambique Metical', 'MZN', NULL, 2, '', NULL, NULL),
(166, 'Myanmar', 'Kyat', 'MMK', NULL, 2, '', NULL, NULL),
(167, 'Namibia', 'Namibia Dollar', 'NAD', NULL, 2, '', NULL, NULL),
(168, 'Namibia', 'Rand', 'ZAR', NULL, 2, '', NULL, NULL),
(169, 'Nauru', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(170, 'Nepal', 'Nepalese Rupee', 'NPR', NULL, 2, '', NULL, NULL),
(171, 'Netherlands', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(172, 'New Caledonia', 'CFP Franc', 'XPF', NULL, 0, '', NULL, NULL),
(173, 'New Zealand', 'New Zealand Dollar', 'NZD', NULL, 2, '$', NULL, NULL),
(174, 'Nicaragua', 'Cordoba Oro', 'NIO', NULL, 2, '', NULL, NULL),
(175, 'Niger', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(176, 'Nigeria', 'Naira', 'NGN', NULL, 2, '₦', NULL, NULL),
(177, 'Niue', 'New Zealand Dollar', 'NZD', NULL, 2, '$', NULL, NULL),
(178, 'Norfolk Island', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(179, 'Northern Mariana Islands', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(180, 'Norway', 'Norwegian Krone', 'NOK', NULL, 2, 'kr', NULL, NULL),
(181, 'Oman', 'Rial Omani', 'OMR', NULL, 3, '', NULL, NULL),
(182, 'Pakistan', 'Pakistan Rupee', 'PKR', NULL, 2, 'Rs', NULL, NULL),
(183, 'Palau', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(184, 'Panama', 'Balboa', 'PAB', NULL, 2, '', NULL, NULL),
(185, 'Panama', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(186, 'Papua New Guinea', 'Kina', 'PGK', NULL, 2, '', NULL, NULL),
(187, 'Paraguay', 'Guarani', 'PYG', NULL, 0, '', NULL, NULL),
(188, 'Peru', 'Sol', 'PEN', NULL, 2, 'S', NULL, NULL),
(189, 'Philippines', 'Philippine Peso', 'PHP', NULL, 2, '₱', NULL, NULL),
(190, 'Pitcairn', 'New Zealand Dollar', 'NZD', NULL, 2, '$', NULL, NULL),
(191, 'Poland', 'Zloty', 'PLN', NULL, 2, 'zł', NULL, NULL),
(192, 'Portugal', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(193, 'Puerto Rico', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(194, 'Qatar', 'Qatari Rial', 'QAR', NULL, 2, '', NULL, NULL),
(195, 'Réunion', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(196, 'Romania', 'Romanian Leu', 'RON', NULL, 2, 'lei', NULL, NULL),
(197, 'Russian Federation', 'Russian Ruble', 'RUB', NULL, 2, '₽', NULL, NULL),
(198, 'Rwanda', 'Rwanda Franc', 'RWF', NULL, 0, '', NULL, NULL),
(199, 'Saint Barthélemy', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(200, 'Saint Helena, Ascension And Tristan Da Cunha', 'Saint Helena Pound', 'SHP', NULL, 2, '', NULL, NULL),
(201, 'Saint Kitts And Nevis', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(202, 'Saint Lucia', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(203, 'Saint Martin (French Part)', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(204, 'Saint Pierre And Miquelon', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(205, 'Saint Vincent And The Grenadines', 'East Caribbean Dollar', 'XCD', NULL, 2, '', NULL, NULL),
(206, 'Samoa', 'Tala', 'WST', NULL, 2, '', NULL, NULL),
(207, 'San Marino', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(208, 'Sao Tome And Principe', 'Dobra', 'STN', NULL, 2, '', NULL, NULL),
(209, 'Saudi Arabia', 'Saudi Riyal', 'SAR', NULL, 2, '', NULL, NULL),
(210, 'Senegal', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(211, 'Serbia', 'Serbian Dinar', 'RSD', NULL, 2, '', NULL, NULL),
(212, 'Seychelles', 'Seychelles Rupee', 'SCR', NULL, 2, '', NULL, NULL),
(213, 'Sierra Leone', 'Leone', 'SLL', NULL, 2, '', NULL, NULL),
(214, 'Singapore', 'Singapore Dollar', 'SGD', NULL, 2, '$', NULL, NULL),
(215, 'Sint Maarten (Dutch Part)', 'Netherlands Antillean Guilder', 'ANG', NULL, 2, '', NULL, NULL),
(216, 'Sistema Unitario De Compensacion Regional De Pagos \"sucre\"\"\"', 'Sucre', 'XSU', NULL, 0, '', NULL, NULL),
(217, 'Slovakia', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(218, 'Slovenia', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(219, 'Solomon Islands', 'Solomon Islands Dollar', 'SBD', NULL, 2, '', NULL, NULL),
(220, 'Somalia', 'Somali Shilling', 'SOS', NULL, 2, '', NULL, NULL),
(221, 'South Africa', 'Rand', 'ZAR', NULL, 2, 'R', NULL, NULL),
(222, 'South Sudan', 'South Sudanese Pound', 'SSP', NULL, 2, '', NULL, NULL),
(223, 'Spain', 'Euro', 'EUR', NULL, 2, '€', NULL, NULL),
(224, 'Sri Lanka', 'Sri Lanka Rupee', 'LKR', NULL, 2, 'Rs', NULL, NULL),
(225, 'Sudan (the)', 'Sudanese Pound', 'SDG', NULL, 2, '', NULL, NULL),
(226, 'Suriname', 'Surinam Dollar', 'SRD', NULL, 2, '', NULL, NULL),
(227, 'Svalbard And Jan Mayen', 'Norwegian Krone', 'NOK', NULL, 2, '', NULL, NULL),
(228, 'Sweden', 'Swedish Krona', 'SEK', NULL, 2, 'kr', NULL, NULL),
(229, 'Switzerland', 'Swiss Franc', 'CHF', NULL, 2, '', NULL, NULL),
(230, 'Switzerland', 'WIR Euro', 'CHE', NULL, 2, '', NULL, NULL),
(231, 'Switzerland', 'WIR Franc', 'CHW', NULL, 2, '', NULL, NULL),
(232, 'Syrian Arab Republic', 'Syrian Pound', 'SYP', NULL, 2, '', NULL, NULL),
(233, 'Taiwan', 'New Taiwan Dollar', 'TWD', NULL, 2, '', NULL, NULL),
(234, 'Tajikistan', 'Somoni', 'TJS', NULL, 2, '', NULL, NULL),
(235, 'Tanzania, United Republic Of', 'Tanzanian Shilling', 'TZS', NULL, 2, '', NULL, NULL),
(236, 'Thailand', 'Baht', 'THB', NULL, 2, '฿', NULL, NULL),
(237, 'Timor-leste', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(238, 'Togo', 'CFA Franc BCEAO', 'XOF', NULL, 0, '', NULL, NULL),
(239, 'Tokelau', 'New Zealand Dollar', 'NZD', NULL, 2, '$', NULL, NULL),
(240, 'Tonga', 'Pa’anga', 'TOP', NULL, 2, '', NULL, NULL),
(241, 'Trinidad And Tobago', 'Trinidad and Tobago Dollar', 'TTD', NULL, 2, '', NULL, NULL),
(242, 'Tunisia', 'Tunisian Dinar', 'TND', NULL, 3, '', NULL, NULL),
(243, 'Turkey', 'Turkish Lira', 'TRY', NULL, 2, '₺', NULL, NULL),
(244, 'Turkmenistan', 'Turkmenistan New Manat', 'TMT', NULL, 2, '', NULL, NULL),
(245, 'Turks And Caicos Islands', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(246, 'Tuvalu', 'Australian Dollar', 'AUD', NULL, 2, '', NULL, NULL),
(247, 'Uganda', 'Uganda Shilling', 'UGX', NULL, 0, '', NULL, NULL),
(248, 'Ukraine', 'Hryvnia', 'UAH', NULL, 2, '₴', NULL, NULL),
(249, 'United Arab Emirates', 'UAE Dirham', 'AED', NULL, 2, 'د.إ', NULL, NULL),
(250, 'United Kingdom Of Great Britain And Northern Ireland', 'Pound Sterling', 'GBP', NULL, 2, '£', NULL, NULL),
(251, 'United States Minor Outlying Islands', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(252, 'United States Of America', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(253, 'United States Of America', 'US Dollar (Next day)', 'USN', NULL, 2, '', NULL, NULL),
(254, 'Uruguay', 'Peso Uruguayo', 'UYU', NULL, 2, '', NULL, NULL),
(255, 'Uruguay', 'Uruguay Peso en Unidades Indexadas (UI)', 'UYI', NULL, 0, '', NULL, NULL),
(256, 'Uruguay', 'Unidad Previsional', 'UYW', NULL, 4, '', NULL, NULL),
(257, 'Uzbekistan', 'Uzbekistan Sum', 'UZS', NULL, 2, '', NULL, NULL),
(258, 'Vanuatu', 'Vatu', 'VUV', NULL, 0, '', NULL, NULL),
(259, 'Venezuela', 'Bolívar Soberano', 'VES', NULL, 2, '', NULL, NULL),
(260, 'Vietnam', 'Dong', 'VND', NULL, 0, '₫', NULL, NULL),
(261, 'Virgin Islands (British)', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(262, 'Virgin Islands (U.S.)', 'US Dollar', 'USD', NULL, 2, '$', NULL, NULL),
(263, 'Wallis And Futuna', 'CFP Franc', 'XPF', NULL, 0, '', NULL, NULL),
(264, 'Western Sahara', 'Moroccan Dirham', 'MAD', NULL, 2, '', NULL, NULL),
(265, 'Yemen', 'Yemeni Rial', 'YER', NULL, 2, '', NULL, NULL),
(266, 'Zambia', 'Zambian Kwacha', 'ZMW', NULL, 2, '', NULL, NULL),
(267, 'Zimbabwe', 'Zimbabwe Dollar', 'ZWL', NULL, 2, '', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `districts`
--
CREATE TABLE `districts` (
`id` bigint(20) UNSIGNED NOT NULL,
`division_id` int(11) NOT NULL,
`district_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`district_bn_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`lat` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`lon` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`website` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `districts`
--
INSERT INTO `districts` (`id`, `division_id`, `district_name`, `district_bn_name`, `lat`, `lon`, `website`, `created_at`, `updated_at`) VALUES
(1, 3, 'Dhaka', 'ঢাকা', '23.7115253', '90.4111451', 'www.dhaka.gov.bd', NULL, NULL),
(2, 3, 'Faridpur', 'ফরিদপুর', '23.6070822', '89.8429406', 'www.faridpur.gov.bd', NULL, NULL),
(3, 3, 'Gazipur', 'গাজীপুর', '24.0022858', '90.4264283', 'www.gazipur.gov.bd', NULL, NULL),
(4, 3, 'Gopalganj', 'গোপালগঞ্জ', '23.0050857', '89.8266059', 'www.gopalganj.gov.bd', NULL, NULL),
(5, 3, 'Jamalpur', 'জামালপুর', '24.937533', '89.937775', 'www.jamalpur.gov.bd', NULL, NULL),
(6, 3, 'Kishoreganj', 'কিশোরগঞ্জ', '24.444937', '90.776575', 'www.kishoreganj.gov.bd', NULL, NULL),
(7, 3, 'Madaripur', 'মাদারীপুর', '23.164102', '90.1896805', 'www.madaripur.gov.bd', NULL, NULL),
(8, 3, 'Manikganj', 'মানিকগঞ্জ', '0', '0', 'www.manikganj.gov.bd', NULL, NULL),
(9, 3, 'Munshiganj', 'মুন্সিগঞ্জ', '0', '0', 'www.munshiganj.gov.bd', NULL, NULL),
(10, 3, 'Mymensingh', 'ময়মনসিং', '0', '0', 'www.mymensingh.gov.bd', NULL, NULL),
(11, 3, 'Narayanganj', 'নারায়াণগঞ্জ', '23.63366', '90.496482', 'www.narayanganj.gov.bd', NULL, NULL),
(12, 3, 'Narsingdi', 'নরসিংদী', '23.932233', '90.71541', 'www.narsingdi.gov.bd', NULL, NULL),
(13, 3, 'Netrokona', 'নেত্রকোনা', '24.870955', '90.727887', 'www.netrokona.gov.bd', NULL, NULL),
(14, 3, 'Rajbari', 'রাজবাড়ি', '23.7574305', '89.6444665', 'www.rajbari.gov.bd', NULL, NULL),
(15, 3, 'Shariatpur', 'শরীয়তপুর', '0', '0', 'www.shariatpur.gov.bd', NULL, NULL),
(16, 3, 'Sherpur', 'শেরপুর', '25.0204933', '90.0152966', 'www.sherpur.gov.bd', NULL, NULL),
(17, 3, 'Tangail', 'টাঙ্গাইল', '0', '0', 'www.tangail.gov.bd', NULL, NULL),
(18, 5, 'Bogra', 'বগুড়া', '24.8465228', '89.377755', 'www.bogra.gov.bd', NULL, NULL),
(19, 5, 'Joypurhat', 'জয়পুরহাট', '0', '0', 'www.joypurhat.gov.bd', NULL, NULL),
(20, 5, 'Naogaon', 'নওগাঁ', '0', '0', 'www.naogaon.gov.bd', NULL, NULL),
(21, 5, 'Natore', 'নাটোর', '24.420556', '89.000282', 'www.natore.gov.bd', NULL, NULL),
(22, 5, 'Nawabganj', 'নবাবগঞ্জ', '24.5965034', '88.2775122', 'www.chapainawabganj.gov.bd', NULL, NULL),
(23, 5, 'Pabna', 'পাবনা', '23.998524', '89.233645', 'www.pabna.gov.bd', NULL, NULL),
(24, 5, 'Rajshahi', 'রাজশাহী', '0', '0', 'www.rajshahi.gov.bd', NULL, NULL),
(25, 5, 'Sirajgonj', 'সিরাজগঞ্জ', '24.4533978', '89.7006815', 'www.sirajganj.gov.bd', NULL, NULL),
(26, 6, 'Dinajpur', 'দিনাজপুর', '25.6217061', '88.6354504', 'www.dinajpur.gov.bd', NULL, NULL),
(27, 6, 'Gaibandha', 'গাইবান্ধা', '25.328751', '89.528088', 'www.gaibandha.gov.bd', NULL, NULL),
(28, 6, 'Kurigram', 'কুড়িগ্রাম', '25.805445', '89.636174', 'www.kurigram.gov.bd', NULL, NULL),
(29, 6, 'Lalmonirhat', 'লালমনিরহাট', '0', '0', 'www.lalmonirhat.gov.bd', NULL, NULL),
(30, 6, 'Nilphamari', 'নীলফামারী', '25.931794', '88.856006', 'www.nilphamari.gov.bd', NULL, NULL),
(31, 6, 'Panchagarh', 'পঞ্চগড়', '26.3411', '88.5541606', 'www.panchagarh.gov.bd', NULL, NULL),
(32, 6, 'Rangpur', 'রংপুর', '25.7558096', '89.244462', 'www.rangpur.gov.bd', NULL, NULL),
(33, 6, 'Thakurgaon', 'ঠাকুরগাঁও', '26.0336945', '88.4616834', 'www.thakurgaon.gov.bd', NULL, NULL),
(34, 1, 'Barguna', 'বরগুনা', '0', '0', 'www.barguna.gov.bd', NULL, NULL),
(35, 1, 'Barisal', 'বরিশাল', '0', '0', 'www.barisal.gov.bd', NULL, NULL),
(36, 1, 'Bhola', 'ভোলা', '22.685923', '90.648179', 'www.bhola.gov.bd', NULL, NULL),
(37, 1, 'Jhalokati', 'ঝালকাঠি', '0', '0', 'www.jhalakathi.gov.bd', NULL, NULL),
(38, 1, 'Patuakhali', 'পটুয়াখালী', '22.3596316', '90.3298712', 'www.patuakhali.gov.bd', NULL, NULL),
(39, 1, 'Pirojpur', 'পিরোজপুর', '0', '0', 'www.pirojpur.gov.bd', NULL, NULL),
(40, 2, 'Bandarban', 'বান্দরবান', '22.1953275', '92.2183773', 'www.bandarban.gov.bd', NULL, NULL),
(41, 2, 'Brahmanbaria', 'ব্রাহ্মণবাড়িয়া', '23.9570904', '91.1119286', 'www.brahmanbaria.gov.bd', NULL, NULL),
(42, 2, 'Chandpur', 'চাঁদপুর', '23.2332585', '90.6712912', 'www.chandpur.gov.bd', NULL, NULL),
(43, 2, 'Chittagong', 'চট্টগ্রাম', '22.335109', '91.834073', 'www.chittagong.gov.bd', NULL, NULL),
(44, 2, 'Comilla', 'কুমিল্লা', '23.4682747', '91.1788135', 'www.comilla.gov.bd', NULL, NULL),
(45, 2, 'Cox\'s Bazar', 'কক্স বাজার', '0', '0', 'www.coxsbazar.gov.bd', NULL, NULL),
(46, 2, 'Feni', 'ফেনী', '23.023231', '91.3840844', 'www.feni.gov.bd', NULL, NULL),
(47, 2, 'Khagrachari', 'খাগড়াছড়ি', '23.119285', '91.984663', 'www.khagrachhari.gov.bd', NULL, NULL),
(48, 2, 'Lakshmipur', 'লক্ষ্মীপুর', '22.942477', '90.841184', 'www.lakshmipur.gov.bd', NULL, NULL),
(49, 2, 'Noakhali', 'নোয়াখালী', '22.869563', '91.099398', 'www.noakhali.gov.bd', NULL, NULL),
(50, 2, 'Rangamati', 'রাঙ্গামাটি', '0', '0', 'www.rangamati.gov.bd', NULL, NULL),
(51, 7, 'Habiganj', 'হবিগঞ্জ', '24.374945', '91.41553', 'www.habiganj.gov.bd', NULL, NULL),
(52, 7, 'Maulvibazar', 'মৌলভীবাজার', '24.482934', '91.777417', 'www.moulvibazar.gov.bd', NULL, NULL),
(53, 7, 'Sunamganj', 'সুনামগঞ্জ', '25.0658042', '91.3950115', 'www.sunamganj.gov.bd', NULL, NULL),
(54, 7, 'Sylhet', 'সিলেট', '24.8897956', '91.8697894', 'www.sylhet.gov.bd', NULL, NULL),
(55, 4, 'Bagerhat', 'বাগেরহাট', '22.651568', '89.785938', 'www.bagerhat.gov.bd', NULL, NULL),
(56, 4, 'Chuadanga', 'চুয়াডাঙ্গা', '23.6401961', '88.841841', 'www.chuadanga.gov.bd', NULL, NULL),
(57, 4, 'Jessore', 'যশোর', '23.16643', '89.2081126', 'www.jessore.gov.bd', NULL, NULL),
(58, 4, 'Jhenaidah', 'ঝিনাইদহ', '23.5448176', '89.1539213', 'www.jhenaidah.gov.bd', NULL, NULL),
(59, 4, 'Khulna', 'খুলনা', '22.815774', '89.568679', 'www.khulna.gov.bd', NULL, NULL),
(60, 4, 'Kushtia', 'কুষ্টিয়া', '23.901258', '89.120482', 'www.kushtia.gov.bd', NULL, NULL),
(61, 4, 'Magura', 'মাগুরা', '23.487337', '89.419956', 'www.magura.gov.bd', NULL, NULL),
(62, 4, 'Meherpur', 'মেহেরপুর', '23.762213', '88.631821', 'www.meherpur.gov.bd', NULL, NULL),
(63, 4, 'Narail', 'নড়াইল', '23.172534', '89.512672', 'www.narail.gov.bd', NULL, NULL),
(64, 4, 'Satkhira', 'সাতক্ষীরা', '0', '0', 'www.satkhira.gov.bd', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `divisions`
--
CREATE TABLE `divisions` (
`id` bigint(20) UNSIGNED NOT NULL,
`division_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`division_bn_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`country_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `divisions`
--
INSERT INTO `divisions` (`id`, `division_name`, `division_bn_name`, `country_id`, `created_at`, `updated_at`) VALUES
(1, 'Barisal', 'বরিশাল', 18, NULL, NULL),
(2, 'Chittagong', 'চট্টগ্রাম', 18, NULL, NULL),
(3, 'Dhaka', 'ঢাকা', 18, NULL, NULL),
(4, 'Khulna', 'খুলনা', 18, NULL, NULL),
(5, 'Rajshahi', 'রাজশাহী', 18, NULL, NULL),
(6, 'Rangpur', 'রংপুর', 18, NULL, NULL),
(7, 'Sylhet', 'সিলেট', 18, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `employee_attendances`
--
CREATE TABLE `employee_attendances` (
`employeeAttendanceId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`employeeInDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employeeInTime` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employeeOutDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`employeeOutTime` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attendanceStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_attendances`
--
INSERT INTO `employee_attendances` (`employeeAttendanceId`, `employeEntryId`, `employeeInDate`, `employeeInTime`, `employeeOutDate`, `employeeOutTime`, `attendanceStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 2, '02-07-2020', '00:00', NULL, '00:00', 'L', 1, 1, 3, NULL, '2020-07-02 09:35:45', NULL),
(2, 1, '02-07-2020', '00:00', NULL, '00:00', 'L', 1, 1, 3, NULL, '2020-07-02 09:35:45', NULL),
(3, 3, '02-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-02 09:35:46', NULL),
(4, 4, '02-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-02 09:35:46', NULL),
(5, 5, '02-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-02 09:35:46', NULL),
(6, 6, '02-07-2020', '03:36:05 PM', NULL, NULL, 'P', 1, 1, 3, NULL, '2020-07-02 09:35:46', '2020-07-02 09:36:05'),
(7, 6, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL),
(8, 5, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL),
(9, 4, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL),
(10, 3, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL),
(11, 2, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL),
(12, 1, '15-07-2020', '00:00', NULL, NULL, 'A', 1, 1, 3, NULL, '2020-07-15 05:12:48', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `employee_banking_entries`
--
CREATE TABLE `employee_banking_entries` (
`employeeBankingId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`bankTypeId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bankNameId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`accountName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`accountNumber` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_banking_entries`
--
INSERT INTO `employee_banking_entries` (`employeeBankingId`, `employeEntryId`, `bankTypeId`, `bankNameId`, `accountName`, `accountNumber`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, '2', '4', 'Malek', 119191919, 1, 1, 3, NULL, '2020-04-16 13:26:59', '2020-04-16 13:26:59'),
(2, 1, '2', '5', 'Malek', 119191919, 1, 1, 3, NULL, '2020-04-19 08:04:26', '2020-04-19 08:04:26'),
(3, 2, '2', '5', 'Malek', 119191919, 1, 1, 3, NULL, '2020-04-19 08:04:36', '2020-04-19 08:04:36'),
(4, 1, '1', '5', 'Malek', 119191919, 1, 1, 3, NULL, '2020-04-22 14:46:19', '2020-04-22 14:46:19'),
(5, 1, '2', '3', 'Malek', 119191919, 1, 1, 3, NULL, '2020-04-22 14:46:42', '2020-04-22 14:46:42'),
(6, 8, '1', '8', 'dd', 222, 1, 1, 3, NULL, '2020-10-16 16:59:59', '2020-10-16 16:59:59');
-- --------------------------------------------------------
--
-- Table structure for table `employee_education_entries`
--
CREATE TABLE `employee_education_entries` (
`employeeEducationId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`nameOfInstituteId` int(11) NOT NULL,
`nameOfDegreeId` int(11) NOT NULL,
`gradeId` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_education_entries`
--
INSERT INTO `employee_education_entries` (`employeeEducationId`, `employeEntryId`, `nameOfInstituteId`, `nameOfDegreeId`, `gradeId`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 5, 3, 3, 1, 1, 3, NULL, '2020-04-16 11:38:12', '2020-04-16 11:38:12'),
(2, 2, 2, 3, 1, 1, 1, 3, NULL, '2020-04-16 11:38:25', '2020-04-16 11:38:25'),
(3, 2, 5, 3, 3, 1, 1, 3, NULL, '2020-04-19 06:53:48', '2020-04-19 06:53:48'),
(4, 1, 2, 3, 3, 1, 1, 3, NULL, '2020-06-28 14:38:43', '2020-06-28 14:38:43'),
(5, 8, 5, 3, 3, 1, 1, 3, NULL, '2020-10-16 16:59:02', '2020-10-16 16:59:02');
-- --------------------------------------------------------
--
-- Table structure for table `employee_leave_entries`
--
CREATE TABLE `employee_leave_entries` (
`employeeLeaveId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`startDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`endDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`commitment` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_leave_entries`
--
INSERT INTO `employee_leave_entries` (`employeeLeaveId`, `employeEntryId`, `startDate`, `endDate`, `commitment`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(3, 1, '2020-07-01', '2020-07-06', 'tik', 1, 1, 3, NULL, '2020-07-02 09:35:20', '2020-07-02 09:35:20'),
(4, 2, '2020-07-01', '2020-07-08', 'ok', 1, 1, 3, NULL, '2020-07-02 09:35:38', '2020-07-02 09:35:38');
-- --------------------------------------------------------
--
-- Table structure for table `employee_professional_entries`
--
CREATE TABLE `employee_professional_entries` (
`employeeProfessionalId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`organizationName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`designation` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`yearOfExprience` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_professional_entries`
--
INSERT INTO `employee_professional_entries` (`employeeProfessionalId`, `employeEntryId`, `organizationName`, `designation`, `yearOfExprience`, `address`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 'Rana Garmans', 'Rana', '2 Years', 'Dhaka', 1, 1, 3, NULL, '2020-04-16 11:42:26', '2020-04-16 11:42:26'),
(2, 8, 'feni', 'ce', '3', 'fsdf', 1, 1, 3, NULL, '2020-10-16 16:59:19', '2020-10-16 16:59:19');
-- --------------------------------------------------------
--
-- Table structure for table `employee_skill_entries`
--
CREATE TABLE `employee_skill_entries` (
`employeeSkillId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`skillType` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`nameOfInstitute` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`durationOfSkill` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`skillGradeId` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employee_skill_entries`
--
INSERT INTO `employee_skill_entries` (`employeeSkillId`, `employeEntryId`, `skillType`, `nameOfInstitute`, `durationOfSkill`, `skillGradeId`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 'Lorem', 'Lorem me', '201', 2, 1, 1, 3, NULL, '2020-04-16 11:55:59', '2020-04-16 11:55:59'),
(2, 1, 'Lorem', 'School', '201', 3, 1, 1, 3, NULL, '2020-04-19 08:02:45', '2020-04-19 08:02:45'),
(3, 8, 'fsdf', 'dsf', 'd', 3, 1, 1, 3, NULL, '2020-10-16 16:59:32', '2020-10-16 16:59:32');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `grade_entries`
--
CREATE TABLE `grade_entries` (
`gradeEntryId` bigint(20) UNSIGNED NOT NULL,
`gradeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gradeAmount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gradeStatus` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `grade_entries`
--
INSERT INTO `grade_entries` (`gradeEntryId`, `gradeName`, `gradeAmount`, `gradeStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'A-', '75', 1, 1, 1, 3, 3, '2020-04-06 10:46:22', '2020-12-30 09:04:26'),
(2, 'B-', '65', 1, 1, 1, 3, 3, '2020-04-06 11:24:43', '2020-04-06 12:18:00'),
(3, 'C +', '50', 1, 1, 1, 3, 3, '2020-04-06 11:25:17', '2020-04-18 11:42:20'),
(4, 'D +', '60', 1, 1, 1, 3, 3, '2020-04-18 10:49:26', '2020-04-18 11:42:06'),
(5, 'A+', '85', 1, 1, 1, 3, 3, '2020-04-18 10:52:31', '2020-04-18 11:42:07'),
(6, 'F', '40', 1, 1, 1, 3, NULL, '2020-04-18 11:42:37', '2020-04-18 11:42:37');
-- --------------------------------------------------------
--
-- Table structure for table `invoice_for_type_lists`
--
CREATE TABLE `invoice_for_type_lists` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `invoice_for_type_lists`
--
INSERT INTO `invoice_for_type_lists` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Sales', 1, '2021-03-09 05:04:33', '2021-03-09 05:04:33'),
(2, 'Purchase', 1, '2021-03-09 05:04:33', '2021-03-09 05:04:33');
-- --------------------------------------------------------
--
-- Table structure for table `invoice_setups`
--
CREATE TABLE `invoice_setups` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`invoiceForId` int(11) NOT NULL,
`invoiceTypeId` int(11) NOT NULL,
`invoiceFormetId` int(11) NOT NULL,
`status` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `invoice_setups`
--
INSERT INTO `invoice_setups` (`id`, `shopId`, `invoiceForId`, `invoiceTypeId`, `invoiceFormetId`, `status`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(2, 1, 1, 1, 1, 1, 1, 1, '2021-03-14 10:40:19', '2021-03-14 10:40:19');
-- --------------------------------------------------------
--
-- Table structure for table `invoice_setup_details`
--
CREATE TABLE `invoice_setup_details` (
`id` bigint(20) UNSIGNED NOT NULL,
`invoiceSetupId` int(11) NOT NULL,
`logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`toText` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`titleText` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`themeColor` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subTotal` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`vat` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`discount` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`grandTotal` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`noticeTitle` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`noticeDetails` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`generatedFrom` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`thankyou` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `invoice_setup_details`
--
INSERT INTO `invoice_setup_details` (`id`, `invoiceSetupId`, `logo`, `address`, `toText`, `titleText`, `themeColor`, `subTotal`, `vat`, `discount`, `grandTotal`, `noticeTitle`, `noticeDetails`, `generatedFrom`, `thankyou`, `created_at`, `updated_at`) VALUES
(2, 2, '1615718419.png', '99 shersha suri road, Townhall, Mohammadpur, Dhaka-1207, Bangladesh.', 'Customer Information', 'Invoice#', '#00ad23', 'Sub Total', 'Vat', 'Discount', 'Grand Total', 'Notice :', 'This is notice box.', 'Invoice was created on a computer and is valid without the signature and seal.', 'Thank You !', '2021-03-14 10:40:20', '2021-03-14 10:40:20');
-- --------------------------------------------------------
--
-- Table structure for table `invoice_type_lists`
--
CREATE TABLE `invoice_type_lists` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `invoice_type_lists`
--
INSERT INTO `invoice_type_lists` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Printer', 1, '2021-03-09 06:54:46', '2021-03-09 06:54:46'),
(2, 'POS Machin', 1, '2021-03-09 06:54:46', '2021-03-09 06:54:46');
-- --------------------------------------------------------
--
-- Table structure for table `job_department_entries`
--
CREATE TABLE `job_department_entries` (
`jobDepartmentEntryId` bigint(20) UNSIGNED NOT NULL,
`employeeTypeId` int(11) NOT NULL,
`jobDepartmentName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`jobDepartmentStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `job_department_entries`
--
INSERT INTO `job_department_entries` (`jobDepartmentEntryId`, `employeeTypeId`, `jobDepartmentName`, `jobDepartmentStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(3, 2, 'Markting', '1', 1, 1, 3, NULL, '2020-04-22 11:42:41', '2020-04-22 11:42:41'),
(4, 6, 'Online', '1', 1, 1, 3, NULL, '2020-06-25 06:23:58', '2020-06-25 06:23:58'),
(5, 7, 'Ofline', '1', 1, 1, 3, NULL, '2020-06-28 08:04:30', '2020-06-28 08:04:30'),
(6, 3, 'Saler', '1', 1, 1, 3, NULL, '2020-06-28 08:04:47', '2020-06-28 08:04:47'),
(7, 2, 'Area Saler', '1', 1, 1, 3, 3, '2020-06-28 08:04:58', '2020-12-14 05:19:38'),
(8, 9, 'IT Security', '1', 2, 2, 14, NULL, '2020-12-14 05:15:49', '2020-12-14 05:15:49');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(51, '2014_10_12_000000_create_users_table', 1),
(52, '2014_10_12_100000_create_password_resets_table', 1),
(53, '2019_08_19_000000_create_failed_jobs_table', 1),
(56, '2020_02_03_045618_create_brand_entries_table', 1),
(57, '2020_02_03_063049_create_admin_types_table', 1),
(58, '2020_02_03_090508_create_admin_sub_menus_table', 1),
(59, '2020_02_03_090730_create_admin_menus_table', 1),
(60, '2020_02_03_100621_create_admin_menu_permissions_table', 1),
(61, '2020_02_05_164421_create_admin_entries_table', 1),
(62, '2020_02_05_175229_create_admin_setups_table', 1),
(64, '2020_02_13_115001_create_unite_entries_table', 1),
(65, '2020_02_13_150905_create_bank_type_entries_table', 1),
(66, '2020_02_13_153156_create_bank_entries_table', 1),
(67, '2020_02_13_155043_create_asset_brand_entries_table', 1),
(68, '2020_02_15_102600_create_shop_customer_type_entries_table', 1),
(69, '2020_02_15_113621_create_admin_bussiness_types_table', 1),
(71, '2020_02_15_153841_create_commission_type_entries_table', 1),
(72, '2020_02_15_163930_create_admin_holiday_types_table', 1),
(73, '2020_02_15_183557_create_admin_holiday_setups_table', 1),
(75, '2020_02_16_100426_create_adminlicence_types_table', 1),
(76, '2020_02_16_111531_create_admin_meta_key_descriptions_table', 1),
(80, '2020_03_03_182955_create_shop_menu_permissions_table', 1),
(83, '2020_03_08_120334_create_shop_loan_provider_entries_table', 1),
(85, '2020_03_08_170427_create_shop_loan_entries_table', 1),
(86, '2020_03_09_094942_create_shop_add_bank_entries_table', 1),
(87, '2020_03_09_120607_create_shop_expence_type_entries_table', 1),
(88, '2020_03_09_150634_create_shop_income_type_entries_table', 1),
(89, '2020_03_09_180509_create_shop_employee_login_time_entries_table', 1),
(91, '2020_03_12_114805_create_categories_table', 2),
(92, '2020_03_15_152314_create_shop_add_income_types_table', 3),
(97, '2020_03_08_111707_create_add_product_supplier_entries_table', 7),
(98, '2020_03_08_160800_create_shop_add_asset_supplier_entries_table', 8),
(101, '2020_03_21_174828_create_admin_purchase_types_table', 10),
(105, '2020_03_21_194801_create_product_categories_table', 11),
(107, '2020_03_21_195710_create_product_names_table', 12),
(113, '2020_03_22_124356_create_purchase_product_entries_table', 13),
(123, '2020_02_17_161955_create_product_brand_entries_table', 16),
(125, '2020_03_22_123533_create_purchase_invoices_table', 17),
(126, '2020_03_26_173752_create_product_price_setup_details_table', 18),
(130, '2020_04_06_163655_create_grade_entries_table', 20),
(132, '2020_04_15_142827_create_admin_name_of_institutes_table', 22),
(133, '2020_04_15_142908_create_admin_name_of_degrees_table', 22),
(134, '2020_04_15_142925_create_admin_grades_table', 22),
(135, '2020_04_15_142949_create_admin_skill_grades_table', 22),
(136, '2020_03_02_191519_create_shop_employee_entries_table', 23),
(138, '2020_04_16_165452_create_employee_education_entries_table', 24),
(139, '2020_04_16_173239_create_employee_professional_entries_table', 24),
(140, '2020_04_16_175112_create_employee_skill_entries_table', 25),
(141, '2020_04_16_192416_create_employee_banking_entries_table', 26),
(144, '2020_04_18_185504_create_salary_grade_setups_table', 27),
(146, '2020_03_02_152213_create_shop_employee_types_table', 28),
(147, '2020_02_16_095356_create_job_department_entries_table', 29),
(153, '2020_06_26_171056_create_start_salary_setups_table', 30),
(164, '2020_06_27_170923_create_employee_leave_entries_table', 31),
(165, '2020_06_29_103652_create_employee_attendances_table', 31),
(168, '2020_04_04_113741_create_shop_asset_categories_table', 33),
(169, '2020_07_04_120134_create_asset_code_entries_table', 34),
(170, '2020_07_04_154302_create_asset_code_entries_table', 35),
(180, '2020_07_04_185904_create_shop_asset_entries_table', 36),
(185, '2020_07_08_224919_create_asset_statuses_table', 37),
(190, '2020_07_11_151012_create_purchase_product_details_table', 38),
(198, '2020_07_14_122004_create_purchase_product_total_quantities_table', 40),
(199, '2020_07_14_175224_create_purchase_product_total_prices_table', 41),
(210, '2020_07_18_132048_create_sales_product_discount_price_entries_table', 42),
(212, '2020_07_22_163558_create_sales_customer_entries_table', 43),
(215, '2020_07_15_193338_create_sales_product_price_entries_table', 44),
(226, '2020_07_25_171317_create_sales_product_entries_table', 45),
(227, '2020_07_26_181559_create_sales_invoices_table', 45),
(228, '2021_03_03_160420_create_admin_menu_title_name1s_table', 46),
(229, '2021_03_03_194018_create_company_logos_table', 46),
(231, '2021_03_05_214750_create_websites_table', 47),
(232, '2021_03_06_093402_create_website_infos_table', 48),
(233, '2021_03_06_172359_create_vendors_table', 49),
(235, '2021_03_06_201553_create_purchase_types_table', 50),
(236, '2021_03_07_122915_create_basic_infos_table', 51),
(237, '2021_03_07_123325_create_religiouses_table', 51),
(238, '2021_03_08_170156_create_qr_code_setups_table', 52),
(239, '2021_03_09_110312_create_invoice_for_type_lists_table', 53),
(240, '2021_03_09_125342_create_invoice_type_lists_table', 54),
(250, '2021_03_12_224758_create_invoice_setup_details_table', 56),
(251, '2021_03_12_215830_create_invoice_setups_table', 57),
(256, '2021_03_30_151502_create_divisions_table', 60),
(257, '2021_03_30_153536_create_districts_table', 60),
(258, '2021_03_31_111242_create_upazilas_table', 60),
(259, '2021_03_31_111443_create_unions_table', 60),
(260, '2021_03_31_111613_create_wards_table', 60),
(262, '2021_03_30_151355_create_countries_table', 61),
(271, '2020_02_15_124421_create_shop_type_entries_table', 67),
(272, '2021_04_02_212604_create_shop_information_table', 68),
(274, '2020_02_09_193833_create_admin_menu_title_names_table', 70),
(282, '2021_04_05_142658_create_shops_table', 71),
(283, '2021_04_07_114506_create_admins_table', 71),
(285, '2021_04_09_175423_create_branch_information_table', 72),
(286, '2021_03_24_134624_create_shop_owner_information_table', 73),
(287, '2021_04_03_000408_create_shop_contact_person_information_table', 73),
(288, '2021_04_03_004116_create_shop_representative_information_table', 73),
(289, '2021_04_03_012254_create_shop_address_locations_table', 73),
(296, '2021_04_11_213716_create_shop_statuses_table', 74),
(297, '2021_04_11_225024_create_shop_payment_statuses_table', 75),
(299, '2021_04_12_135904_create_shop_billing_amounts_table', 76),
(300, '2021_04_12_142738_create_shop_account_intormations_table', 77),
(301, '2021_04_13_004559_create_currencies_table', 78),
(303, '2021_04_17_100207_create_shop_billing_grace_information_table', 79),
(304, '2020_07_11_171219_create_purchase_product_more_fields_table', 80),
(308, '2021_04_25_112753_create_chart_of_accounts_table', 81),
(309, '2021_04_25_225940_create_account_groups_table', 81),
(310, '2021_04_26_104415_create_chart_of_account_group_types_table', 82),
(316, '2021_04_29_073309_create_voucher_types_table', 83),
(318, '2021_04_29_114640_create_account_setup_head_lists_table', 83),
(319, '2021_04_29_114846_create_account_setup_placement_lists_table', 83),
(320, '2021_04_29_113901_create_account_setups_table', 84),
(327, '2021_05_01_121723_create_voucher_information_table', 85),
(328, '2021_05_01_122532_create_voucher_information_reports_table', 85);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `product_brand_entries`
--
CREATE TABLE `product_brand_entries` (
`productBrandEntryId` bigint(20) UNSIGNED NOT NULL,
`productBrandName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`productBrandPosition` int(11) NOT NULL,
`productBrandStatus` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_brand_entries`
--
INSERT INTO `product_brand_entries` (`productBrandEntryId`, `productBrandName`, `productBrandPosition`, `productBrandStatus`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'radhuni', 1, 1, 4, 3, 3, '2021-04-18 04:03:26', '2021-04-18 04:39:55'),
(2, 'ACIA', 2, 1, 4, 3, 3, '2021-04-18 04:40:06', '2021-04-18 04:40:45'),
(3, 'kkkkllk', 3, 1, 4, 1, NULL, '2021-04-18 04:56:38', '2021-04-18 04:56:38'),
(4, 'asdf', 4, 1, 4, 1, 1, '2021-04-18 04:58:40', '2021-04-18 04:58:53');
-- --------------------------------------------------------
--
-- Table structure for table `product_categories`
--
CREATE TABLE `product_categories` (
`poductCategoryId` bigint(20) UNSIGNED NOT NULL,
`productNameId` int(11) NOT NULL,
`categoryId` int(11) NOT NULL,
`label` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_categories`
--
INSERT INTO `product_categories` (`poductCategoryId`, `productNameId`, `categoryId`, `label`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(23, 12, 1, 1, 1, 1, 3, NULL, '2020-12-29 09:39:49', '2020-12-29 09:39:49'),
(24, 13, 1, 1, 1, 1, 3, NULL, '2020-12-29 10:09:53', '2020-12-29 10:09:53'),
(25, 13, 2, 2, 1, 1, 3, NULL, '2020-12-29 10:09:53', '2020-12-29 10:09:53'),
(26, 14, 25, 1, 2, 2, 14, NULL, '2021-03-08 05:18:53', '2021-03-08 05:18:53'),
(27, 14, 26, 2, 2, 2, 14, NULL, '2021-03-08 05:18:53', '2021-03-08 05:18:53'),
(28, 14, 27, 3, 2, 2, 14, NULL, '2021-03-08 05:18:53', '2021-03-08 05:18:53'),
(35, 17, 9, 1, 3, 4, 3, NULL, '2021-04-22 05:25:51', '2021-04-22 05:25:51'),
(36, 17, 10, 2, 3, 4, 3, NULL, '2021-04-22 05:25:51', '2021-04-22 05:25:51'),
(37, 17, 11, 3, 3, 4, 3, NULL, '2021-04-22 05:25:51', '2021-04-22 05:25:51');
-- --------------------------------------------------------
--
-- Table structure for table `product_names`
--
CREATE TABLE `product_names` (
`productNameId` bigint(20) UNSIGNED NOT NULL,
`productName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`productCode` int(11) DEFAULT NULL,
`productQRNumber` int(11) DEFAULT NULL,
`priceStatus` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_names`
--
INSERT INTO `product_names` (`productNameId`, `productName`, `productCode`, `productQRNumber`, `priceStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(12, 'hjnhb', 1, 67, '1', 1, 1, 3, NULL, '2020-12-29 09:39:49', NULL),
(13, 'xcx', 2, 676, '1', 1, 1, 3, NULL, '2020-12-29 10:09:52', NULL),
(14, 'Full Time Box Biscut', 1, 1, '1', 2, 2, 14, NULL, '2021-03-08 05:18:52', NULL),
(17, 'Full T-Shirt', 1, NULL, '1', 3, 4, 3, NULL, '2021-04-22 05:25:51', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `product_price_setup_details`
--
CREATE TABLE `product_price_setup_details` (
`productPriceSetupid` bigint(20) UNSIGNED NOT NULL,
`categoryId` int(11) NOT NULL,
`productNameId` int(11) NOT NULL,
`productBrandId` int(11) NOT NULL,
`batchNo` int(11) DEFAULT NULL,
`mfgDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`modelNo` int(11) DEFAULT NULL,
`warranty` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`guranty` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notification` int(11) NOT NULL,
`mrp` int(11) NOT NULL,
`salesPrice` int(11) NOT NULL,
`holeSalesPrice` int(11) NOT NULL,
`relativePrice` int(11) NOT NULL,
`condition` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`advantage` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`detail` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`useSystem` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopUserId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`updateBy` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_price_setup_details`
--
INSERT INTO `product_price_setup_details` (`productPriceSetupid`, `categoryId`, `productNameId`, `productBrandId`, `batchNo`, `mfgDate`, `expDate`, `modelNo`, `warranty`, `guranty`, `notification`, `mrp`, `salesPrice`, `holeSalesPrice`, `relativePrice`, `condition`, `advantage`, `detail`, `useSystem`, `shopId`, `shopUserId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 6, 1, '2020-04-23', '2020-04-25', 1, '1 Years', '2 Month', 10, 40, 41, 41, 41, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 1, 1, 1, '3', NULL, '2020-04-02 04:53:18', NULL),
(2, 6, 4, 5, 2, '2020-04-06', '2020-04-01', 2, NULL, NULL, 10, 35, 35, 35, 35, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 1, 1, 1, '3', NULL, '2020-04-02 04:53:55', NULL),
(3, 10, 7, 3, 3, '2010-02-01', '2010-04-01', 3, NULL, NULL, 10, 35, 35, 35, 35, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 1, 1, 1, '3', NULL, '2020-04-02 04:55:04', NULL),
(4, 1, 2, 1, 3, '2020-04-01', '2020-04-24', 3, '1 Years', '2 Month', 10, 35, 35, 35, 35, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 1, 1, 1, '3', NULL, '2020-04-02 04:57:12', NULL),
(5, 1, 3, 3, 4, '2020-04-08', '2020-04-24', 4, '1 Years', '2 Month', 10, 40, 40, 40, 40, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 1, 1, 1, '3', NULL, '2020-04-02 04:58:47', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `purchase_invoices`
--
CREATE TABLE `purchase_invoices` (
`purchaseInvoiceId` bigint(20) UNSIGNED NOT NULL,
`purchaseDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`purchaseInvoiceNo` int(11) NOT NULL,
`purchaseTypeId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`productSupplierId` int(11) NOT NULL,
`totalPurchaseValue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`carriageInward` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`totalAmount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`discount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`supplierPayable` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`otherCost` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`damageAndWarranty` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`totalProductCost` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`previousPayableDue` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currentPayable` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`shopUserId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_invoices`
--
INSERT INTO `purchase_invoices` (`purchaseInvoiceId`, `purchaseDate`, `purchaseInvoiceNo`, `purchaseTypeId`, `productSupplierId`, `totalPurchaseValue`, `carriageInward`, `totalAmount`, `discount`, `supplierPayable`, `otherCost`, `damageAndWarranty`, `totalProductCost`, `previousPayableDue`, `currentPayable`, `shopId`, `shopTypeId`, `shopUserId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, '24/04/2021', 1, '20', 10, '9900', NULL, '9900', NULL, '9900', NULL, NULL, '9900', NULL, '9900', 3, 4, 3, 3, NULL, '2021-04-24 15:51:14', '2021-04-24 15:51:14');
-- --------------------------------------------------------
--
-- Table structure for table `purchase_product_details`
--
CREATE TABLE `purchase_product_details` (
`purchaseProductDetailsId` bigint(20) UNSIGNED NOT NULL,
`purchaseInvoiceNo` bigint(20) UNSIGNED NOT NULL,
`productSupplierId` bigint(20) UNSIGNED NOT NULL,
`purchaseProductId` bigint(20) UNSIGNED NOT NULL,
`productId` int(11) NOT NULL,
`modelNo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`batchNo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qrCode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mfgLicenseNO` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`warranty` int(11) DEFAULT NULL,
`selectMothOrYearWarranty` int(11) DEFAULT NULL,
`guarantee` int(11) DEFAULT NULL,
`selectMothOrYearGuarantee` int(11) DEFAULT NULL,
`mfgDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expiryDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tax` int(11) DEFAULT NULL,
`taxAmount` int(11) DEFAULT NULL,
`taxAmountType` int(11) DEFAULT NULL,
`quantityType` int(11) DEFAULT NULL,
`quantityNoti` int(11) DEFAULT NULL,
`proDescription` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`proAdvantage` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_product_details`
--
INSERT INTO `purchase_product_details` (`purchaseProductDetailsId`, `purchaseInvoiceNo`, `productSupplierId`, `purchaseProductId`, `productId`, `modelNo`, `batchNo`, `qrCode`, `mfgLicenseNO`, `warranty`, `selectMothOrYearWarranty`, `guarantee`, `selectMothOrYearGuarantee`, `mfgDate`, `expiryDate`, `tax`, `taxAmount`, `taxAmountType`, `quantityType`, `quantityNoti`, `proDescription`, `proAdvantage`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 10, 1, 17, '0123654', '258741', '123654789', '147852369', 1, 3, 1, 2, '2021-04-01', '2021-04-30', 0, NULL, NULL, 3, 10, 'sai', 'ful', 3, 4, 3, NULL, '2021-04-24 15:50:45', '2021-04-24 15:50:45');
-- --------------------------------------------------------
--
-- Table structure for table `purchase_product_entries`
--
CREATE TABLE `purchase_product_entries` (
`purchaseProductId` bigint(20) UNSIGNED NOT NULL,
`purchaseInvoiceNo` int(11) NOT NULL,
`productSupplierId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`brandId` int(11) NOT NULL,
`quantity` int(11) NOT NULL,
`unitId` int(11) NOT NULL,
`unitPrice` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`totalPrice` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_product_entries`
--
INSERT INTO `purchase_product_entries` (`purchaseProductId`, `purchaseInvoiceNo`, `productSupplierId`, `productId`, `brandId`, `quantity`, `unitId`, `unitPrice`, `totalPrice`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 10, 17, 8, 10, 3, '1000', '9900', 3, 4, 3, NULL, '2021-04-24 15:49:03', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `purchase_product_more_fields`
--
CREATE TABLE `purchase_product_more_fields` (
`purchaseProductMoreFieldId` bigint(20) UNSIGNED NOT NULL,
`serialId` bigint(20) UNSIGNED NOT NULL,
`purchaseInvoiceNo` bigint(20) UNSIGNED NOT NULL,
`purchaseProductId` bigint(20) UNSIGNED NOT NULL,
`optionName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`optionWork` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_product_more_fields`
--
INSERT INTO `purchase_product_more_fields` (`purchaseProductMoreFieldId`, `serialId`, `purchaseInvoiceNo`, `purchaseProductId`, `optionName`, `optionWork`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 'asd', '100', 3, 4, 3, NULL, '2021-04-24 15:50:45', NULL),
(2, 2, 1, 1, 'china', 'monitor', 3, 4, 3, NULL, '2021-04-24 15:50:45', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `purchase_product_total_prices`
--
CREATE TABLE `purchase_product_total_prices` (
`purchaseProductTotalPriceId` bigint(20) UNSIGNED NOT NULL,
`productId` int(11) NOT NULL,
`totalQuantity` int(11) NOT NULL,
`totalPrice` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_product_total_prices`
--
INSERT INTO `purchase_product_total_prices` (`purchaseProductTotalPriceId`, `productId`, `totalQuantity`, `totalPrice`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 17, 10, 9900, 3, 4, 3, NULL, '2021-04-24 15:49:03', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `purchase_product_total_quantities`
--
CREATE TABLE `purchase_product_total_quantities` (
`productTotalQuantityId` bigint(20) UNSIGNED NOT NULL,
`productSupplierId` int(11) NOT NULL,
`totalQuantity` int(11) NOT NULL,
`totalPrice` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_product_total_quantities`
--
INSERT INTO `purchase_product_total_quantities` (`productTotalQuantityId`, `productSupplierId`, `totalQuantity`, `totalPrice`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 10, 10, 9900, 3, 4, 3, NULL, '2021-04-24 15:51:14', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `purchase_types`
--
CREATE TABLE `purchase_types` (
`id` bigint(20) UNSIGNED NOT NULL,
`purchaseType` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `purchase_types`
--
INSERT INTO `purchase_types` (`id`, `purchaseType`, `status`, `created_at`, `updated_at`) VALUES
(20, 'Export', 0, '2021-03-07 17:40:32', '2021-03-08 10:19:26'),
(22, 'Import', 0, '2021-03-07 17:41:09', '2021-03-07 17:41:09'),
(25, 'Export & Import', 0, '2021-03-08 10:19:08', '2021-03-08 10:19:08');
-- --------------------------------------------------------
--
-- Table structure for table `qr_code_setups`
--
CREATE TABLE `qr_code_setups` (
`id` bigint(20) UNSIGNED NOT NULL,
`invoiceShowStatus` int(11) NOT NULL,
`scanInformation` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `qr_code_setups`
--
INSERT INTO `qr_code_setups` (`id`, `invoiceShowStatus`, `scanInformation`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(18, 0, 'sdsadas', 1, 1, '2021-03-13 09:51:51', '2021-03-13 15:02:03'),
(20, 0, 'nazmulfci edt', 1, 1, '2021-03-13 15:02:03', '2021-03-13 19:24:46'),
(21, 1, 'kghgjhg', 1, 1, '2021-04-07 18:50:13', '2021-04-07 18:50:13');
-- --------------------------------------------------------
--
-- Table structure for table `religiouses`
--
CREATE TABLE `religiouses` (
`id` bigint(20) UNSIGNED NOT NULL,
`religiousName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `religiouses`
--
INSERT INTO `religiouses` (`id`, `religiousName`, `created_at`, `updated_at`) VALUES
(1, 'Islam', '2021-03-07 06:36:54', '2021-03-07 06:36:54'),
(2, 'Hinduism', '2021-03-07 06:36:54', '2021-03-07 06:36:54'),
(3, 'Christianity', '2021-03-07 06:36:54', '2021-03-07 06:36:54'),
(4, 'Buddhism', '2021-03-07 06:36:54', '2021-03-07 06:36:54');
-- --------------------------------------------------------
--
-- Table structure for table `salary_grade_setups`
--
CREATE TABLE `salary_grade_setups` (
`salaryGradeSetupId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`gradeEntryId` int(11) NOT NULL,
`salaryGradeSetupStatus` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `salary_grade_setups`
--
INSERT INTO `salary_grade_setups` (`salaryGradeSetupId`, `employeEntryId`, `gradeEntryId`, `salaryGradeSetupStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 5, 3, 1, 1, 1, 3, 3, '2020-06-26 09:25:09', '2020-06-26 09:35:16'),
(2, 7, 4, 1, 1, 1, 3, NULL, '2020-06-26 10:10:23', '2020-06-26 10:10:23'),
(3, 2, 1, 1, 1, 1, 3, NULL, '2020-06-26 10:10:34', '2020-06-26 10:10:34');
-- --------------------------------------------------------
--
-- Table structure for table `sales_customer_entries`
--
CREATE TABLE `sales_customer_entries` (
`salesCustomerEntryId` bigint(20) UNSIGNED NOT NULL,
`customerTypeId` int(11) NOT NULL,
`customerName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`customerEmail` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`customerPhone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`customerImoNumber` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customerFacebookID` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customerAddress` text COLLATE utf8mb4_unicode_ci NOT NULL,
`referenceName` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`referenceEmail` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`referencePhone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customerStatus` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales_customer_entries`
--
INSERT INTO `sales_customer_entries` (`salesCustomerEntryId`, `customerTypeId`, `customerName`, `customerEmail`, `customerPhone`, `customerImoNumber`, `customerFacebookID`, `customerAddress`, `referenceName`, `referenceEmail`, `referencePhone`, `customerStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 'Anissa Heidenreich DVM', '[email protected]', '3', NULL, NULL, 'Dr. Korbin Mosciski', NULL, NULL, NULL, '0', 1, 1, 3, 3, '2020-07-22 15:17:25', '2020-07-26 10:39:48'),
(2, 1, 'Guido Heathcote', '[email protected]', '5', NULL, NULL, 'Bertrand Johnston', NULL, NULL, NULL, '1', 1, 1, 3, 3, '2020-07-22 15:17:25', '2020-07-24 12:50:17'),
(3, 3, 'Georgiana Gibson', '[email protected]', '8', NULL, NULL, 'Joanne Baumbach', NULL, NULL, NULL, '1', 1, 1, 3, 3, '2020-07-22 15:17:25', '2020-07-24 12:49:27'),
(4, 1, 'Tobin Gibson', '[email protected]', '2', NULL, NULL, 'Lilla Welch', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(5, 3, 'Kraig Ullrich', '[email protected]', '4', NULL, NULL, 'Easter Bruen', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(6, 2, 'Ms. Keira Terry', '[email protected]', '2', NULL, NULL, 'Travon Greenholt', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(7, 3, 'Darrell O\'Conner', '[email protected]', '4', NULL, NULL, 'Kennedy Schimmel', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(8, 3, 'Jaydon Spencer', '[email protected]', '9', NULL, NULL, 'Mr. Sherman Mann', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(9, 3, 'Kaycee Collier', '[email protected]', '11', NULL, NULL, 'Anna D\'Amore', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(10, 2, 'Frederick Schulist', '[email protected]', '8', NULL, NULL, 'Karine Bahringer', NULL, NULL, NULL, '1', 1, 1, 3, NULL, '2020-07-22 15:17:26', '2020-07-22 15:17:26'),
(11, 1, 'arif', '[email protected]', '999', '9999', 'fdsf', 'fsdfsd', 'fsdf', '[email protected]', '888', '1', 1, 1, 3, NULL, NULL, NULL),
(12, 4, 'Edward D. Veilleux', '[email protected]', '1632077744', '01812454358', 'fb.com/nazmulfci', 'Elida Ho', NULL, NULL, NULL, '1', 2, 2, 14, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sales_invoices`
--
CREATE TABLE `sales_invoices` (
`salesInvoiceId` bigint(20) UNSIGNED NOT NULL,
`salesDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`salesInvoiceNo` int(11) NOT NULL,
`salesCustomerTypeId` int(11) NOT NULL,
`salesCustomerId` int(11) NOT NULL,
`totalQuantity` int(11) NOT NULL,
`totalBalance` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`discountPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`totalVat` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vatCalculate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`totalPayable` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`previousDue` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currentTotalAmount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`currentPaidAmount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`shopUserId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales_invoices`
--
INSERT INTO `sales_invoices` (`salesInvoiceId`, `salesDate`, `salesInvoiceNo`, `salesCustomerTypeId`, `salesCustomerId`, `totalQuantity`, `totalBalance`, `discountPrice`, `totalVat`, `vatCalculate`, `totalPayable`, `previousDue`, `currentTotalAmount`, `currentPaidAmount`, `shopId`, `shopTypeId`, `shopUserId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, '08-08-2020', 1, 3, 3, 7, '2700', '0', NULL, '2700', '2700', '500', '2900', '2400', 1, 1, 3, 3, 3, '2020-08-08 07:07:08', '2020-08-08 09:29:30'),
(2, '18-10-2020', 2, 2, 10, 1, '600', '0', '10', '600', '660', '600', '660', '60', 1, 1, 3, 3, NULL, '2020-10-18 01:22:24', '2020-10-18 01:22:24');
-- --------------------------------------------------------
--
-- Table structure for table `sales_product_discount_price_entries`
--
CREATE TABLE `sales_product_discount_price_entries` (
`salesProductDiscountPriceId` bigint(20) UNSIGNED NOT NULL,
`purchaseProductId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`mrpDiscountAmount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mrpDiscountType` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mrpStartDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mrpExpiredDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mrpPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesDiscountAmount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesDiscountType` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesStartDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesExpiredDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesaleDiscountAmount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesaleDiscountType` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesaleStartDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesaleExpiredDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesalePrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialDiscountAmount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialDiscountType` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialStartDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialExpiredDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommerceDiscountAmount` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommerceDiscountType` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommerceStartDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommerceExpiredDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommercePrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales_product_discount_price_entries`
--
INSERT INTO `sales_product_discount_price_entries` (`salesProductDiscountPriceId`, `purchaseProductId`, `productId`, `mrpDiscountAmount`, `mrpDiscountType`, `mrpStartDate`, `mrpExpiredDate`, `mrpPrice`, `salesDiscountAmount`, `salesDiscountType`, `salesStartDate`, `salesExpiredDate`, `salesPrice`, `wholesaleDiscountAmount`, `wholesaleDiscountType`, `wholesaleStartDate`, `wholesaleExpiredDate`, `wholesalePrice`, `specialDiscountAmount`, `specialDiscountType`, `specialStartDate`, `specialExpiredDate`, `specialPrice`, `eCommerceDiscountAmount`, `eCommerceDiscountType`, `eCommerceStartDate`, `eCommerceExpiredDate`, `eCommercePrice`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '50', '1', '2020-07-18', '2020-07-26', '350', '100', '1', '2020-07-05', '2020-07-26', '300', NULL, NULL, '', '', '400', NULL, NULL, '', '', '400', '20', '1', '2020-07-04', '2020-07-11', '380', 1, 1, 3, NULL, '2020-07-20 06:12:28', NULL),
(2, 2, 2, '50', '1', '2020-07-02', '2020-07-26', '550', '100', '1', '2020-07-04', '2020-07-26', '500', NULL, NULL, '', '', '600', NULL, NULL, '', '', '600', NULL, NULL, '', '', '600', 1, 1, 3, NULL, '2020-07-25 04:52:53', NULL),
(3, 2, 2, '100', '1', '2020-10-18', '2020-10-19', '500', NULL, NULL, '', '', '600', NULL, NULL, '', '', '600', NULL, NULL, '', '', '600', NULL, NULL, '', '', '600', 1, 1, 3, NULL, '2020-10-18 01:56:22', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sales_product_entries`
--
CREATE TABLE `sales_product_entries` (
`salesProductEntryId` bigint(20) UNSIGNED NOT NULL,
`salesInvoiceNo` int(11) NOT NULL,
`salesDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`salesCustomerId` int(11) NOT NULL,
`purchaseProductId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`brandId` int(11) NOT NULL,
`unitId` int(11) NOT NULL,
`quantity` int(11) NOT NULL,
`unitPrice` int(11) NOT NULL,
`totalPrice` int(11) NOT NULL,
`discountPrice` int(11) DEFAULT NULL,
`priceType` int(11) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales_product_entries`
--
INSERT INTO `sales_product_entries` (`salesProductEntryId`, `salesInvoiceNo`, `salesDate`, `salesCustomerId`, `purchaseProductId`, `productId`, `brandId`, `unitId`, `quantity`, `unitPrice`, `totalPrice`, `discountPrice`, `priceType`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, '', 5, 2, 2, 6, 4, 2, 600, 1200, NULL, 2, 1, 1, 3, NULL, '2020-08-08 07:07:02', NULL),
(5, 1, '', 3, 3, 3, 6, 3, 5, 300, 1500, NULL, 1, 1, 1, 3, NULL, '2020-08-08 08:57:43', NULL),
(6, 2, '', 10, 2, 2, 6, 3, 1, 600, 600, NULL, 1, 1, 1, 3, NULL, '2020-10-18 01:21:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sales_product_price_entries`
--
CREATE TABLE `sales_product_price_entries` (
`salesProductPriceEntryId` bigint(20) UNSIGNED NOT NULL,
`purchaseProductId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`mrpPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salesPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wholesalePrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specialPrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eCommercePrice` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quantity` int(11) NOT NULL,
`alertQuantity` int(11) DEFAULT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sales_product_price_entries`
--
INSERT INTO `sales_product_price_entries` (`salesProductPriceEntryId`, `purchaseProductId`, `productId`, `mrpPrice`, `salesPrice`, `wholesalePrice`, `specialPrice`, `eCommercePrice`, `quantity`, `alertQuantity`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '400', '400', '300', '300', '300', 5, 11, 1, 1, 3, NULL, '2020-07-24 14:54:38', NULL),
(2, 2, 2, '600', '600', '600', '600', '600', 5, 9, 1, 1, 3, NULL, '2020-07-24 14:57:03', NULL),
(3, 3, 3, '300', '300', '300', '300', '300', 15, NULL, 1, 1, 3, NULL, '2020-07-24 15:01:18', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shops`
--
CREATE TABLE `shops` (
`shopInfoId` bigint(20) UNSIGNED NOT NULL,
`shopName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopSirialId` int(11) NOT NULL,
`shopUserName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastLoginIp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`refferTypeId` int(11) NOT NULL,
`refferUserId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`shopLicenceTypeId` int(11) NOT NULL,
`website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`facebook` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`haveBranch` int(11) NOT NULL,
`totalBranch` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `shop_account_intormations`
--
CREATE TABLE `shop_account_intormations` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`billingDate` datetime DEFAULT NULL,
`billingGraceDate` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`billAmount` double DEFAULT NULL,
`totalMonth` double DEFAULT NULL,
`totalPaid` double DEFAULT NULL,
`currentDue` double DEFAULT NULL,
`topupCurrentBalance` double DEFAULT NULL,
`topupTotalBalance` double DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_account_intormations`
--
INSERT INTO `shop_account_intormations` (`id`, `shopId`, `billingDate`, `billingGraceDate`, `billAmount`, `totalMonth`, `totalPaid`, `currentDue`, `topupCurrentBalance`, `topupTotalBalance`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL, 490, NULL, NULL, NULL, NULL, NULL, '2021-04-14 16:26:44', '2021-04-14 16:26:44'),
(2, 2, NULL, NULL, 490, NULL, NULL, NULL, NULL, NULL, '2021-04-14 16:27:37', '2021-04-14 16:27:37'),
(3, 3, '2021-05-15 13:54:14', '', 1090, 0, 0, 0, 109.93, 0, '2021-04-14 16:29:39', '2021-04-24 15:33:57');
-- --------------------------------------------------------
--
-- Table structure for table `shop_address_locations`
--
CREATE TABLE `shop_address_locations` (
`shopALId` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`branchId` int(11) NOT NULL,
`countryId` int(11) NOT NULL,
`divisionId` int(11) NOT NULL,
`districtId` int(11) NOT NULL,
`thanaId` int(11) NOT NULL,
`unionId` int(11) DEFAULT NULL,
`wardId` int(11) DEFAULT NULL,
`addressLine1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`addressLine2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`front` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`back` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`left` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`right` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopSize` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`marketName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopNo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`areaKnownName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_address_locations`
--
INSERT INTO `shop_address_locations` (`shopALId`, `shopId`, `branchId`, `countryId`, `divisionId`, `districtId`, `thanaId`, `unionId`, `wardId`, `addressLine1`, `addressLine2`, `front`, `back`, `left`, `right`, `shopSize`, `marketName`, `shopNo`, `areaKnownName`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 3, 1, 18, 2, 46, 107, 1, 1, 'Nikunja, khilkhet\nHouse#10,Road#7/D,Dhaka', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:29:39', '2021-04-14 16:29:39', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_add_asset_supplier_entries`
--
CREATE TABLE `shop_add_asset_supplier_entries` (
`assetSupplierId` bigint(20) UNSIGNED NOT NULL,
`assetSupplierName` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierCode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierPhone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierHotLine` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierMail` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierFb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierWeb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierImo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assetSupplierAddress` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopTypeId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_add_asset_supplier_entries`
--
INSERT INTO `shop_add_asset_supplier_entries` (`assetSupplierId`, `assetSupplierName`, `assetSupplierCode`, `assetSupplierPhone`, `assetSupplierHotLine`, `assetSupplierMail`, `assetSupplierFb`, `assetSupplierWeb`, `assetSupplierImo`, `assetSupplierAddress`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Rana', '1', '01707999999', 'aaaaaa', '[email protected]', 'aaaaaa', 'aaaa', 'aaaaa', 'Korona Virus', NULL, 3, NULL, '2020-03-18 10:20:19', '2020-03-18 10:20:19'),
(2, 'Sojib', '1', '017000000', 'ssssssssss', '[email protected]', 'ssssss', 'ssssss', 'ssssss', 'Brisal', '1', 3, 3, '2020-03-18 10:23:39', '2020-04-05 06:53:45'),
(3, 'Shohel', '2', '017079991', 'ssssssssss', '[email protected]', 'ssssss', 'ssssss', '019000000', 'Dhaka', '1', 3, 3, '2020-03-18 10:32:36', '2020-04-05 06:40:57');
-- --------------------------------------------------------
--
-- Table structure for table `shop_add_bank_entries`
--
CREATE TABLE `shop_add_bank_entries` (
`bankId` bigint(20) UNSIGNED NOT NULL,
`bankTypeEntryId` int(11) NOT NULL,
`bankEntryId` int(11) NOT NULL,
`bankBranch` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bankAccountName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`bankAccountNumber` int(11) NOT NULL,
`status` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_add_bank_entries`
--
INSERT INTO `shop_add_bank_entries` (`bankId`, `bankTypeEntryId`, `bankEntryId`, `bankBranch`, `bankAccountName`, `bankAccountNumber`, `status`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 1, 7, 'Korona', 'Korona Vairus', 100000000, 0, 3, 3, '2020-06-24 11:08:29', '2020-06-24 11:09:27');
-- --------------------------------------------------------
--
-- Table structure for table `shop_add_income_types`
--
CREATE TABLE `shop_add_income_types` (
`shopIncomeTypeId` bigint(20) UNSIGNED NOT NULL,
`shopIncomeTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopIncomeTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `shop_asset_categories`
--
CREATE TABLE `shop_asset_categories` (
`assetCategoryId` bigint(20) UNSIGNED NOT NULL,
`assetCategoryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`assetCategoryPosition` int(11) NOT NULL DEFAULT 1,
`assetCategoryStatus` int(11) NOT NULL,
`assetSubCategoryStatus` tinyint(1) NOT NULL,
`previousId` int(11) DEFAULT NULL,
`label` int(11) NOT NULL DEFAULT 1,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_asset_categories`
--
INSERT INTO `shop_asset_categories` (`assetCategoryId`, `assetCategoryName`, `assetCategoryPosition`, `assetCategoryStatus`, `assetSubCategoryStatus`, `previousId`, `label`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'table Update', 1, 1, 1, NULL, 1, 1, 1, 3, 3, '2020-07-04 06:24:24', '2020-07-08 07:06:00'),
(2, 'table Sub', 1, 1, 1, 1, 2, 1, 1, 3, 3, '2020-07-04 06:24:33', '2020-07-22 07:29:37'),
(3, 'table Third', 1, 1, 1, 2, 3, 1, 1, 3, 3, '2020-07-04 06:25:07', '2020-07-08 07:05:12'),
(4, 'Table Third Two', 2, 1, 1, 2, 3, 1, 1, 3, 3, '2020-07-05 07:00:09', '2020-07-08 07:05:03'),
(5, 'Category Two', 2, 1, 1, NULL, 1, 1, 1, 3, NULL, '2020-07-05 10:59:17', '2020-07-05 10:59:17'),
(6, 'table Four', 1, 1, 1, 3, 4, 1, 1, 3, NULL, '2020-07-05 11:58:27', '2020-07-05 11:58:27'),
(7, 'table Five', 1, 1, 1, 6, 5, 1, 1, 3, NULL, '2020-07-05 11:58:42', '2020-07-05 11:58:42'),
(8, 'table Six', 1, 1, 1, 7, 6, 1, 1, 3, NULL, '2020-07-05 11:59:02', '2020-07-05 11:59:02'),
(9, 'table Seven', 1, 1, 1, 8, 7, 1, 1, 3, 3, '2020-07-05 11:59:23', '2020-07-08 07:46:29'),
(10, 'table Eight', 1, 1, 0, 9, 8, 1, 1, 3, NULL, '2020-07-05 12:00:41', '2020-07-05 12:00:41'),
(11, 'table sub ok', 2, 1, 1, 1, 2, 1, 1, 3, 3, '2020-07-08 07:07:01', '2020-07-08 07:27:27');
-- --------------------------------------------------------
--
-- Table structure for table `shop_asset_entries`
--
CREATE TABLE `shop_asset_entries` (
`shopAssetEntryId` bigint(20) UNSIGNED NOT NULL,
`assetCategoryId` int(11) NOT NULL,
`assetProductId` int(11) NOT NULL,
`assetSupplierId` int(11) NOT NULL,
`assetBrandId` int(11) NOT NULL,
`purchasedate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mfgDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expiryDate` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invoiceNo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`modelNo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`productQuantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`productCost` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`totalProductCost` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`currentPayable` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`previousPayableDue` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`depreciation` double(20,3) DEFAULT NULL,
`depreciationDay` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`depreciationMonth` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`depreciationYear` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`warranty` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`selectMothOrYearWarranty` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`guarantee` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`selectMothOrYearGuarantee` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`color` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`size` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` int(11) DEFAULT 1,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_asset_entries`
--
INSERT INTO `shop_asset_entries` (`shopAssetEntryId`, `assetCategoryId`, `assetProductId`, `assetSupplierId`, `assetBrandId`, `purchasedate`, `mfgDate`, `expiryDate`, `invoiceNo`, `modelNo`, `productQuantity`, `productCost`, `totalProductCost`, `currentPayable`, `previousPayableDue`, `depreciation`, `depreciationDay`, `depreciationMonth`, `depreciationYear`, `warranty`, `selectMothOrYearWarranty`, `guarantee`, `selectMothOrYearGuarantee`, `color`, `size`, `description`, `status`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 5, 8, 3, 6, '2020-07-09', '2020-07-09', '2020-07-09', '20', '20', '2', '2500', '5000', '5000', NULL, 3.205, NULL, '2', '2', NULL, NULL, NULL, NULL, NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 1, 1, 1, 3, NULL, '2020-07-09 09:44:16', '2020-07-09 09:44:16'),
(2, 11, 7, 3, 3, NULL, NULL, NULL, NULL, NULL, '2', '5000', '10000', '1000', '9000', 5.952, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 1, 1, 1, 3, NULL, '2020-07-09 09:45:04', '2020-07-09 09:45:04'),
(3, 4, 4, 2, 3, NULL, NULL, NULL, '20', '20', '5', '500', '2500', '2500', NULL, 0.278, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 1, 1, 1, 3, NULL, '2020-07-09 09:45:38', '2020-07-09 09:45:38'),
(4, 6, 4, 3, 6, NULL, NULL, NULL, '555', '555', '2', '2500', '5000', '14000', '', 1.389, NULL, NULL, '5', NULL, NULL, NULL, NULL, NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 1, 1, 1, 3, NULL, '2020-07-09 09:51:05', '2020-07-09 10:07:56');
-- --------------------------------------------------------
--
-- Table structure for table `shop_billing_amounts`
--
CREATE TABLE `shop_billing_amounts` (
`id` bigint(20) UNSIGNED NOT NULL,
`billType` int(11) NOT NULL COMMENT '1.Shop/2.Branch',
`billAmount` double NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_billing_amounts`
--
INSERT INTO `shop_billing_amounts` (`id`, `billType`, `billAmount`, `created_at`, `updated_at`) VALUES
(1, 1, 490, '2021-04-12 08:10:08', '2021-04-12 08:10:12'),
(2, 2, 300, '2021-04-12 08:10:15', '2021-04-12 08:10:18');
-- --------------------------------------------------------
--
-- Table structure for table `shop_billing_grace_information`
--
CREATE TABLE `shop_billing_grace_information` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`date` datetime NOT NULL,
`message` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`create_by` int(11) NOT NULL,
`update_by` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_billing_grace_information`
--
INSERT INTO `shop_billing_grace_information` (`id`, `shopId`, `date`, `message`, `create_by`, `update_by`, `created_at`, `updated_at`) VALUES
(1, 3, '2021-04-22 00:00:00', 'for lockdown', 1, 1, '2021-04-17 04:26:01', '2021-04-17 04:26:01');
-- --------------------------------------------------------
--
-- Table structure for table `shop_contact_person_information`
--
CREATE TABLE `shop_contact_person_information` (
`shopCPInfoId` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`CPName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`CPMobileNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`CPEmail` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`CPAddress` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`CPPhoneNo` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_contact_person_information`
--
INSERT INTO `shop_contact_person_information` (`shopCPInfoId`, `shopId`, `CPName`, `CPMobileNo`, `CPEmail`, `CPAddress`, `CPPhoneNo`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 1, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:26:44', '2021-04-14 16:26:44', NULL),
(2, 2, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:27:37', '2021-04-14 16:27:37', NULL),
(3, 3, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:29:39', '2021-04-14 16:29:39', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_customer_type_entries`
--
CREATE TABLE `shop_customer_type_entries` (
`shopCustomerTypeEntryId` bigint(20) UNSIGNED NOT NULL,
`shopCustomerName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopCustomerStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_customer_type_entries`
--
INSERT INTO `shop_customer_type_entries` (`shopCustomerTypeEntryId`, `shopCustomerName`, `shopCustomerStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Fixed Customer', 1, 1, 1, '2020-06-24 07:54:29', '2020-07-22 08:00:44'),
(2, 'Gust Customer', 1, 1, 1, '2020-06-24 10:42:36', '2020-07-22 08:00:45'),
(3, 'Ecommer Customer', 1, 1, NULL, '2020-07-22 08:11:52', NULL),
(4, 'Retail Customer', 1, 1, NULL, '2021-03-15 19:54:50', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_employee_entries`
--
CREATE TABLE `shop_employee_entries` (
`shopEmployeeEntryId` bigint(20) UNSIGNED NOT NULL,
`jobDepartmentId` int(11) NOT NULL,
`employeeTypeId` int(11) NOT NULL,
`userName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`fullName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`fatherName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`motherName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dateOfBirth` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phoneNumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`religion` int(11) NOT NULL,
`sex` int(11) NOT NULL,
`maritalStatus` int(11) NOT NULL,
`nidNumber` int(11) NOT NULL,
`nationality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`presentAddress` text COLLATE utf8mb4_unicode_ci NOT NULL,
`permanentAddress` text COLLATE utf8mb4_unicode_ci NOT NULL,
`shopId` int(11) DEFAULT NULL,
`shopTypeId` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT 1,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_employee_entries`
--
INSERT INTO `shop_employee_entries` (`shopEmployeeEntryId`, `jobDepartmentId`, `employeeTypeId`, `userName`, `password`, `fullName`, `fatherName`, `motherName`, `dateOfBirth`, `phoneNumber`, `religion`, `sex`, `maritalStatus`, `nidNumber`, `nationality`, `presentAddress`, `permanentAddress`, `shopId`, `shopTypeId`, `status`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 3, 2, 'malek', '12345', 'Malek', 'Md.Malek Khan', 'Mrs.MalekBegum', '2020-04-18', '01700000000', 1, 1, 1, 12345678, 'Bangladeshi', 'Boga', 'Boga', 1, 1, 1, 3, 3, '2020-04-16 06:29:26', '2020-06-27 04:39:55'),
(2, 3, 1, 'kalek', '12345', 'Kalek', 'Md.Kalek Khan', 'Mrs.KalekBegum', '2020-04-30', '01700000000', 1, 1, 1, 12345678, 'Bangladeshi', 'Dhaka', 'Dhaka', 1, 1, 2, 3, 3, '2020-04-16 06:30:13', '2020-06-27 04:39:54'),
(3, 4, 6, 'malekkhan', '12345', 'Rubel Khan', 'Md.Dulal Khan', 'Mrs.Ruzina Begum', '2020-06-24', '1708797991', 1, 1, 1, 12345678, 'Bangladeshi', 'Bangladeshi', 'Bangladeshi', 1, 1, 1, 3, NULL, '2020-06-25 06:28:00', NULL),
(4, 4, 2, 'eng.rubelkh', '12345', 'Rubel Khan ok', 'Md.Dulal Khan', 'Mrs.Ruzina Begum', '2020-07-11', '01708797991', 1, 1, 1, 12345678, 'Bangladeshi', 'Bangladeshi', 'Bangladeshi', 1, 1, 1, 3, NULL, '2020-06-25 06:31:31', NULL),
(5, 4, 6, 'eng.rubel', '12345', 'Rubel Khan 797991', 'Md.Malek Khan', 'Mrs.Ruzina Begum', '2020-07-08', '1708797991', 1, 1, 1, 12345678, 'Bangladeshi', 'Bangladeshi', 'Bangladeshi', 1, 1, 1, 3, 3, '2020-06-25 06:33:21', '2020-06-26 14:59:34'),
(6, 4, 2, 'eng.rubelkhan', '12345', 'Rubel Khan 2', 'Md.Dulal Khan', 'Mrs.Ruzina Begum', '2020-06-23', '01708797991', 1, 1, 2, 10101010, 'Bangladeshi', 'Dhaka', 'Dhaka', 1, 1, 1, 3, 3, '2020-06-25 06:35:11', '2020-06-26 14:59:36'),
(8, 7, 2, 'dealtaj', 'dealtaj', 'dealtaj', 'dealtaj', 'saifulf', '2020-10-16', '01812454358', 1, 1, 2, 1994, 'bangladeshi', 'Dhaka', 'Dhaka', 1, 1, 1, 3, 3, '2020-10-16 16:56:15', '2020-10-16 16:57:58'),
(9, 5, 7, 'arif', '12345678', 'arif', 'ari', 'mo', '2021-03-16', '1632077744', 1, 1, 1, 123, 'sdf', 'Elida Ho', 'Elida Ho', 2, 2, 1, 14, NULL, '2021-03-15 20:23:59', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_employee_login_time_entries`
--
CREATE TABLE `shop_employee_login_time_entries` (
`employeeLoginTimeId` bigint(20) UNSIGNED NOT NULL,
`employeeId` int(11) NOT NULL,
`employeeLoginTimeStart` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employeeLoginTimeEnd` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employeeLoginOffDay` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employeeLoginStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `shop_employee_types`
--
CREATE TABLE `shop_employee_types` (
`shopEmployeeTypeId` bigint(20) UNSIGNED NOT NULL,
`shopEmployeeTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopEmployeeTypeStatus` tinyint(1) NOT NULL,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBY` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_employee_types`
--
INSERT INTO `shop_employee_types` (`shopEmployeeTypeId`, `shopEmployeeTypeName`, `shopEmployeeTypeStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBY`, `created_at`, `updated_at`) VALUES
(1, 'Saler', 1, 1, 1, 3, 3, '2020-04-22 10:31:34', '2020-04-22 10:36:41'),
(2, 'Manager', 1, 1, 1, 3, 3, '2020-04-22 10:36:18', '2020-04-22 11:47:53'),
(3, 'Manager Branch', 1, 0, 0, 1, NULL, '2020-06-24 07:58:29', '2020-06-24 07:58:29'),
(5, 'Manager Two', 0, 1, 1, 3, 3, '2020-06-24 08:15:21', '2020-12-14 04:58:07'),
(6, 'Manager OR', 1, 0, 0, 1, 1, '2020-06-24 09:20:32', '2020-06-24 09:20:44'),
(7, 'Saler Shop Two', 1, 2, 2, 14, NULL, '2020-06-27 06:26:01', '2020-06-27 06:26:02'),
(8, 'Sales Manager', 1, 1, 1, 3, NULL, '2020-10-15 18:17:14', '2020-10-15 18:17:14'),
(9, 'IT Expert', 1, 1, 1, 3, NULL, '2020-12-14 04:29:00', '2020-12-14 04:29:00'),
(10, 'Sales Man', 1, 1, 1, 3, NULL, '2020-12-14 04:29:47', '2020-12-14 04:29:47'),
(11, 'Marketing', 1, 1, 1, 3, NULL, '2020-12-14 04:37:11', '2020-12-14 04:37:11'),
(12, 'b', 1, 2, 2, 14, NULL, '2021-03-16 20:17:11', '2021-03-16 20:17:11');
-- --------------------------------------------------------
--
-- Table structure for table `shop_expence_type_entries`
--
CREATE TABLE `shop_expence_type_entries` (
`shopExpenceTypeId` bigint(20) UNSIGNED NOT NULL,
`shopExpenceTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopExpenceTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_expence_type_entries`
--
INSERT INTO `shop_expence_type_entries` (`shopExpenceTypeId`, `shopExpenceTypeName`, `shopExpenceTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'rana', 1, 1, NULL, '2020-03-16 04:16:35', NULL),
(2, 'Transport', 1, 3, NULL, '2020-03-18 06:14:15', NULL),
(3, 'online', 1, 3, NULL, '2020-03-18 12:18:26', NULL),
(4, 'Ofline', 1, 1, 1, '2020-06-24 09:44:43', '2020-06-24 09:44:43'),
(7, 'online2', 1, 1, 1, '2020-06-24 10:06:13', '2020-06-24 10:06:13');
-- --------------------------------------------------------
--
-- Table structure for table `shop_income_type_entries`
--
CREATE TABLE `shop_income_type_entries` (
`shopIncomeTypeId` bigint(20) UNSIGNED NOT NULL,
`shopIncomeTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopIncomeTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_income_type_entries`
--
INSERT INTO `shop_income_type_entries` (`shopIncomeTypeId`, `shopIncomeTypeName`, `shopIncomeTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'direct sale', 1, 3, NULL, '2020-03-18 06:14:35', NULL),
(4, 'Local sale', 1, 1, NULL, '2020-06-24 10:12:37', '2020-06-24 10:12:37');
-- --------------------------------------------------------
--
-- Table structure for table `shop_information`
--
CREATE TABLE `shop_information` (
`shopInfoId` bigint(20) UNSIGNED NOT NULL,
`shopName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopSirialId` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopUserName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastLoginIp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`refferTypeId` int(11) NOT NULL,
`refferUserId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`shopLicenceTypeId` int(11) NOT NULL,
`website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`facebook` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`haveBranch` int(11) NOT NULL,
`totalBranch` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleteDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_information`
--
INSERT INTO `shop_information` (`shopInfoId`, `shopName`, `shopSirialId`, `shopUserName`, `password`, `pass`, `lastLoginIp`, `refferTypeId`, `refferUserId`, `shopTypeId`, `shopLicenceTypeId`, `website`, `facebook`, `youtube`, `haveBranch`, `totalBranch`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `deleteDate`) VALUES
(1, 'dd', '101-1', 'dd', '123', '123', '1', 0, 1, 1, 0, NULL, NULL, NULL, 1, 100, 1, 0, 1, NULL, NULL, '2021-04-03 17:37:26', '2021-04-04 08:29:12', NULL),
(2, 'asdasd', '102-1', 'ddd', '123', '123', '1', 0, 2, 1, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-03 17:41:40', '2021-04-03 17:41:40', NULL),
(3, 'fsdf', '101-1', 'fsdf', '123', '123', '1', 0, 24, 4, 0, NULL, NULL, NULL, 1, 0, 0, 0, 1, NULL, NULL, '2021-04-03 18:32:27', '2021-04-03 18:32:27', NULL),
(4, 'dealtaj', '103-1', 'dealtaj', '123', '123', '1', 0, 2, 2, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-03 19:23:33', '2021-04-03 19:23:33', NULL),
(5, 'dealtaj1', '102-1', 'dealtaj1', '123', '123', '1', 0, 1, 2, 0, NULL, NULL, NULL, 1, 5, 0, 0, 1, NULL, NULL, '2021-04-03 19:26:38', '2021-04-03 20:00:55', NULL),
(6, 'd', '102-1', '[email protected]', '$2y$10$ZhFz.6z/1Ms9W1hi0K7Hp.ZquSQtDdSMpH8qVTvl9bVikFMtncqfu', '123', '1', 0, 1, 3, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-03 19:56:21', '2021-04-04 07:56:48', NULL),
(7, 'aladin', '101-2', 'saladin', '$2y$10$UiDy4bKrbX3wfeN.ngQ8A.VnSbN9yIo3bDZKYOOPQde.AFdjz8hWO', '123', '1', 0, 2, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 10:02:40', '2021-04-04 10:02:40', NULL),
(8, 'fsd', '101-3', 'sdfsdf', '$2y$10$1sLrV74M4KFCup9q8x9m1eIXc1ysEFN6Hd.lTJW2eBKiJPd0A0sjq', '123', '1', 0, 2, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 10:06:58', '2021-04-04 10:06:58', NULL),
(9, 'fsd', '101-3', 'fsdafdsafdasfdsaf', '$2y$10$34PER4Z6bQ3YuDTVbz7rZerGAg.5sf5F5DXVU3BvzyzP5r/GF4J3q', '123', '1', 0, 2, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 10:08:02', '2021-04-04 10:08:02', NULL),
(10, 'dssfds', '101-4', 'sdfdfsdfsd', '$2y$10$jarcmj9PTAU/EUKwLDVNz.XXHBOrNDti7Jl95swuE7mloq8X/RoLi', '123', '1', 0, 1, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 10:28:59', '2021-04-04 10:28:59', NULL),
(11, 'nazmul', '101-5', 'nazmul', '$2y$10$mBmNewZ6W4LEKGrKuI4md.zcTT6nMZ6TfQ5PeHa4WGQpyg1RXQCJC', '123', '1', 0, 28, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 11:31:38', '2021-04-04 11:31:38', NULL),
(12, 's', '101-6', 's', '$2y$10$aRJq2w5dqKWXJDoaWByum.L.nHvh7/VkZG/CjlbrPDJ.uRRigQW0S', '123', '1', 0, 1, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 11:49:23', '2021-04-04 11:49:23', NULL),
(13, 'ds', '101-7', 'ds', '$2y$10$gEEC0lwtW7sq9ZD62yXpteD592d8lSa2JYZaXM.8sxoMu70zg0aqG', '123', '1', 0, 2, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 11:51:13', '2021-04-04 11:51:13', NULL),
(14, 'a', '101-8', 'a', '$2y$10$wUHgjuH8kWLwGOyQaGhdd.W3jvpfkqDlSoLvfYijPB/SS4ybioDTq', '123', '1', 0, 1, 4, 0, NULL, NULL, NULL, 2, 0, 0, 0, 1, NULL, NULL, '2021-04-04 11:54:02', '2021-04-04 11:54:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_loan_entries`
--
CREATE TABLE `shop_loan_entries` (
`loanEntryId` bigint(20) UNSIGNED NOT NULL,
`loanProviderId` int(11) NOT NULL,
`loanAmount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`loanCondition` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`loanCommitment` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`loanStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `shop_loan_provider_entries`
--
CREATE TABLE `shop_loan_provider_entries` (
`loanProviderId` bigint(20) UNSIGNED NOT NULL,
`loanProviderName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`loanProviderPhone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`loanProviderAddress` text COLLATE utf8mb4_unicode_ci NOT NULL,
`loanProviderStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `shop_menu_permissions`
--
CREATE TABLE `shop_menu_permissions` (
`shopMenuPermissionId` bigint(20) UNSIGNED NOT NULL,
`employeeEntryId` int(11) NOT NULL,
`employeeTypeId` int(11) NOT NULL,
`menuTitleId` int(11) NOT NULL,
`menuId` int(11) NOT NULL,
`subMenuId` int(11) DEFAULT NULL,
`fullAccess` int(11) DEFAULT NULL,
`viewAccess` int(11) DEFAULT NULL,
`addAccess` int(11) DEFAULT NULL,
`editAccess` int(11) DEFAULT NULL,
`permissionStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_menu_permissions`
--
INSERT INTO `shop_menu_permissions` (`shopMenuPermissionId`, `employeeEntryId`, `employeeTypeId`, `menuTitleId`, `menuId`, `subMenuId`, `fullAccess`, `viewAccess`, `addAccess`, `editAccess`, `permissionStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 7, 2, 1, 2, 1, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:09', '2020-06-25 10:57:09'),
(2, 7, 2, 1, 2, 2, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:09', '2020-06-25 10:57:09'),
(3, 7, 2, 1, 2, 3, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:09', '2020-06-25 10:57:09'),
(4, 7, 2, 1, 2, 4, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:09', '2020-06-25 10:57:09'),
(5, 7, 2, 1, 2, 5, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:09', '2020-06-25 10:57:09'),
(6, 7, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, 1, 3, NULL, '2020-06-25 10:57:10', '2020-06-25 10:57:10'),
(7, 8, 2, 1, 2, 1, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-10-16 17:01:14', '2020-10-16 17:01:14'),
(8, 8, 2, 1, 2, 2, 1, NULL, NULL, NULL, 1, 3, NULL, '2020-10-16 17:01:14', '2020-10-16 17:01:14'),
(9, 8, 2, 1, 1, NULL, NULL, NULL, NULL, NULL, 1, 3, NULL, '2020-10-16 17:01:14', '2020-10-16 17:01:14'),
(10, 9, 7, 1, 1, NULL, NULL, NULL, NULL, NULL, 1, 14, NULL, '2021-03-15 20:26:15', '2021-03-15 20:26:15');
-- --------------------------------------------------------
--
-- Table structure for table `shop_owner_information`
--
CREATE TABLE `shop_owner_information` (
`shopOwnerInfoId` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`shopOwnerName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopOwnerMobileNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopOwnerEmail` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopOwnerAddress` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopOwnerPhoneNo` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleteDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_owner_information`
--
INSERT INTO `shop_owner_information` (`shopOwnerInfoId`, `shopId`, `shopOwnerName`, `shopOwnerMobileNo`, `shopOwnerEmail`, `shopOwnerAddress`, `shopOwnerPhoneNo`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `deleteDate`) VALUES
(1, 1, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:26:44', '2021-04-14 16:26:44', NULL),
(2, 2, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:27:37', '2021-04-14 16:27:37', NULL),
(3, 3, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:29:39', '2021-04-14 16:29:39', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_payment_statuses`
--
CREATE TABLE `shop_payment_statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`paymentStatusName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL COMMENT '1 = Due, 2 = Paid, 3 = Grace, 4 = Alert',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_payment_statuses`
--
INSERT INTO `shop_payment_statuses` (`id`, `paymentStatusName`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Due', 1, '2021-04-11 17:26:48', '2021-04-11 17:26:51'),
(2, 'Paid', 2, '2021-04-11 17:26:55', '2021-04-11 17:26:57'),
(3, 'Grace', 3, '2021-04-11 17:27:00', '2021-04-11 17:27:03'),
(4, 'Aleart', 4, '2021-04-11 17:27:06', '2021-04-11 17:27:09');
-- --------------------------------------------------------
--
-- Table structure for table `shop_representative_information`
--
CREATE TABLE `shop_representative_information` (
`shopRepInfoId` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`SRName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`SRMobileNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`SREmail` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`SRAddress` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`SRPhoneNo` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`deleteStatus` tinyint(1) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_representative_information`
--
INSERT INTO `shop_representative_information` (`shopRepInfoId`, `shopId`, `SRName`, `SRMobileNo`, `SREmail`, `SRAddress`, `SRPhoneNo`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 1, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:26:45', '2021-04-14 16:26:45', NULL),
(2, 2, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:27:37', '2021-04-14 16:27:37', NULL),
(3, 3, 'd', 'd', NULL, NULL, NULL, 1, 1, 1, NULL, NULL, '2021-04-14 16:29:39', '2021-04-14 16:29:39', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `shop_statuses`
--
CREATE TABLE `shop_statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`statusName` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL COMMENT '1 = Inactive, 2 = Active',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_statuses`
--
INSERT INTO `shop_statuses` (`id`, `statusName`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Inactive', 1, '2021-04-11 16:18:40', '2021-04-11 16:18:43'),
(2, 'Active', 2, '2021-04-11 16:18:46', '2021-04-11 16:18:50');
-- --------------------------------------------------------
--
-- Table structure for table `shop_type_entries`
--
CREATE TABLE `shop_type_entries` (
`shopTypeEntryId` bigint(20) UNSIGNED NOT NULL,
`shopTypeName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shopTypeCode` varchar(10) CHARACTER SET utf8mb4 NOT NULL,
`shopTypeStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `shop_type_entries`
--
INSERT INTO `shop_type_entries` (`shopTypeEntryId`, `shopTypeName`, `shopTypeCode`, `shopTypeStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(2, 'Consumar', '103', 1, 1, 1, '2021-04-03 17:58:41', '2021-04-03 18:04:31'),
(3, 'Grochary', '102', 1, 1, 1, '2021-04-03 18:02:42', '2021-04-03 18:04:19'),
(4, 'Pharmecy', '101', 1, 1, NULL, '2021-04-03 18:04:42', NULL),
(5, 'Fashion', '104', 1, 1, NULL, '2021-04-19 04:53:35', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `start_salary_setups`
--
CREATE TABLE `start_salary_setups` (
`salarySetupId` bigint(20) UNSIGNED NOT NULL,
`employeEntryId` int(11) NOT NULL,
`jobDepartmentId` int(11) NOT NULL,
`gradeEntryId` int(11) NOT NULL,
`startDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`monthDate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`salarySetupStatus` tinyint(1) NOT NULL,
`paymentStatus` int(11) NOT NULL DEFAULT 0,
`shopId` int(11) NOT NULL,
`shopTypeId` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `start_salary_setups`
--
INSERT INTO `start_salary_setups` (`salarySetupId`, `employeEntryId`, `jobDepartmentId`, `gradeEntryId`, `startDate`, `monthDate`, `salarySetupStatus`, `paymentStatus`, `shopId`, `shopTypeId`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 2, 7, 5, '1991-12-06 08:36:02', '08', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:35', '2020-06-28 08:13:35'),
(2, 2, 3, 2, '1973-10-25 22:38:47', '08', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:35', '2020-06-28 08:13:35'),
(3, 2, 6, 5, '1973-12-01 21:35:08', '08', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:35', '2020-06-28 08:13:35'),
(4, 2, 4, 3, '1977-04-10 14:15:45', '08', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(5, 2, 4, 1, '1979-07-15 12:25:20', '08', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(6, 1, 6, 2, '1970-12-11 23:46:20', '04', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(7, 1, 3, 6, '2010-01-21 12:31:01', '04', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(8, 1, 7, 2, '2005-07-14 10:14:54', '04', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(9, 1, 4, 1, '2016-04-22 12:25:45', '04', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(10, 5, 6, 2, '1977-07-17 03:51:16', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(11, 3, 4, 2, '2006-10-08 16:36:58', '05', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(12, 5, 4, 2, '2008-07-30 02:00:06', '10', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(13, 3, 7, 3, '2020-04-26 01:49:42', '11', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(14, 5, 5, 4, '2001-11-02 13:25:28', '08', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(15, 3, 5, 2, '1983-03-16 11:50:01', '09', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(16, 4, 6, 1, '1980-03-23 08:17:45', '12', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(17, 5, 3, 2, '2012-02-17 18:15:36', '12', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(18, 2, 5, 4, '1979-05-21 02:56:38', '09', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(19, 2, 7, 5, '1989-08-03 15:01:15', '08', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(20, 5, 6, 3, '1972-01-19 03:33:06', '08', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(21, 1, 6, 1, '2007-04-27 18:28:58', '01', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(22, 2, 7, 4, '2011-05-07 22:38:55', '02', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(23, 2, 6, 4, '2008-12-28 20:18:06', '02', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(24, 4, 5, 2, '1991-06-30 13:26:46', '07', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(25, 4, 6, 2, '2002-10-11 18:49:48', '03', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(26, 4, 4, 3, '1978-09-28 07:31:42', '10', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(27, 2, 6, 3, '2016-04-16 07:58:18', '12', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:36', '2020-06-28 08:13:36'),
(28, 4, 4, 4, '1977-01-09 06:05:29', '10', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(29, 1, 7, 5, '1986-10-04 17:20:40', '10', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(30, 4, 3, 6, '2017-07-22 09:38:57', '05', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(31, 4, 3, 5, '1986-02-07 02:03:44', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(32, 5, 4, 1, '2002-11-15 05:27:59', '03', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(33, 1, 5, 6, '2002-09-07 00:46:11', '04', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(34, 4, 4, 6, '1985-08-27 05:15:21', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(35, 3, 4, 4, '2011-03-20 14:05:24', '09', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(36, 5, 7, 6, '2009-03-29 14:49:45', '10', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(37, 6, 3, 1, '2015-09-09 15:31:48', '07', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(38, 6, 5, 3, '2003-06-05 22:31:51', '03', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(39, 4, 7, 6, '1992-01-27 12:39:22', '05', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(40, 1, 3, 1, '1998-04-19 18:53:21', '01', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(41, 2, 3, 6, '1975-10-19 04:02:54', '01', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(42, 3, 7, 5, '1972-11-07 02:39:31', '08', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(43, 3, 6, 5, '2004-10-26 10:35:18', '09', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(44, 2, 5, 3, '2019-09-08 23:14:45', '01', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(45, 6, 7, 6, '2012-01-18 16:17:27', '09', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(46, 2, 6, 1, '1980-10-08 14:51:22', '05', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(47, 5, 7, 3, '1981-10-16 02:19:04', '10', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(48, 1, 3, 4, '1982-08-13 06:31:29', '02', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(49, 4, 7, 4, '2015-11-12 02:31:49', '06', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(50, 5, 3, 1, '2005-07-17 18:55:39', '03', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:13:37', '2020-06-28 08:13:37'),
(51, 6, 3, 2, '1987-08-13 05:18:46', '02', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:55', '2020-06-28 08:32:55'),
(52, 5, 5, 3, '1993-10-16 10:55:06', '06', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:55', '2020-06-28 08:32:55'),
(53, 3, 4, 5, '2013-07-24 20:29:23', '03', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:55', '2020-06-28 08:32:55'),
(54, 3, 4, 2, '2020-03-07 00:00:06', '10', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(55, 2, 6, 5, '1986-03-12 19:46:09', '08', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(56, 3, 6, 5, '1991-05-11 09:17:19', '06', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(57, 4, 6, 2, '1982-06-11 17:46:12', '10', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(58, 6, 4, 1, '2007-06-24 18:50:08', '03', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(59, 2, 3, 2, '1986-03-05 13:50:06', '12', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(60, 5, 3, 4, '2002-03-08 09:36:42', '06', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(61, 1, 6, 6, '1980-03-24 15:28:33', '05', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(62, 4, 7, 3, '1985-03-22 10:03:45', '02', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(63, 4, 4, 3, '1992-07-11 12:57:02', '08', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(64, 2, 7, 6, '1993-04-10 11:12:16', '08', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(65, 2, 7, 6, '1988-06-22 13:06:10', '06', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(66, 1, 3, 4, '2000-11-27 06:37:31', '06', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(67, 2, 4, 5, '1982-02-17 19:07:43', '03', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(68, 5, 5, 4, '1972-11-14 10:59:44', '10', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(69, 4, 6, 1, '2018-11-13 21:50:45', '09', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(70, 6, 5, 6, '2006-09-20 00:41:01', '03', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(71, 1, 4, 5, '1996-08-04 23:57:47', '11', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:56', '2020-06-28 08:32:56'),
(72, 2, 5, 5, '1996-04-29 12:17:52', '11', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(73, 2, 7, 5, '2002-10-14 03:21:33', '12', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(74, 3, 4, 1, '1973-01-11 10:53:31', '10', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(75, 6, 7, 2, '1984-03-05 16:56:29', '05', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(76, 2, 5, 5, '1989-11-13 07:00:36', '12', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(77, 5, 6, 6, '1979-09-15 01:51:27', '04', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(78, 3, 3, 2, '1999-03-19 20:53:36', '10', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(79, 4, 6, 2, '1997-09-09 15:36:12', '05', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(80, 1, 6, 6, '2005-11-05 14:29:37', '08', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(81, 6, 7, 1, '1995-08-17 10:20:04', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(82, 1, 7, 2, '1983-05-05 07:50:49', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(83, 6, 3, 5, '2012-04-29 15:40:49', '03', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(84, 5, 4, 6, '1991-09-25 05:22:56', '05', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(85, 3, 7, 1, '1993-10-16 18:07:42', '08', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(86, 3, 6, 1, '1971-08-11 00:26:52', '04', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(87, 4, 4, 5, '1982-04-26 03:14:13', '12', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(88, 5, 5, 3, '1980-12-28 01:44:51', '11', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(89, 1, 6, 2, '2006-10-22 11:23:57', '07', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(90, 4, 3, 1, '1986-01-15 17:38:44', '12', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(91, 5, 6, 6, '1988-03-06 03:43:29', '11', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(92, 4, 3, 2, '1985-07-24 05:38:53', '04', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(93, 2, 6, 4, '1981-05-20 18:44:00', '12', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(94, 1, 5, 6, '2012-02-23 11:01:00', '04', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(95, 2, 4, 2, '1978-03-22 07:32:44', '11', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(96, 4, 3, 3, '2010-01-27 00:17:26', '05', 1, 1, 1, 1, 3, NULL, '2020-06-28 08:32:57', '2020-06-28 08:32:57'),
(97, 2, 4, 5, '1992-09-10 20:32:56', '06', 1, 0, 1, 1, 3, NULL, '2020-06-28 08:32:58', '2020-06-28 08:32:58'),
(98, 2, 4, 1, '2005-07-12 23:49:18', '10', 2, 0, 1, 1, 3, NULL, '2020-06-28 08:32:58', '2020-06-28 08:32:58'),
(99, 6, 7, 6, '1977-08-11 00:02:09', '09', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:58', '2020-06-28 08:32:58'),
(100, 3, 6, 3, '1994-06-21 22:42:23', '09', 2, 1, 1, 1, 3, NULL, '2020-06-28 08:32:58', '2020-06-28 08:32:58');
-- --------------------------------------------------------
--
-- Table structure for table `unions`
--
CREATE TABLE `unions` (
`id` bigint(20) UNSIGNED NOT NULL,
`upazila_id` int(11) NOT NULL,
`union_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`union_bn_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `unions`
--
INSERT INTO `unions` (`id`, `upazila_id`, `union_name`, `union_bn_name`, `created_at`, `updated_at`) VALUES
(1, 107, 'Fazilpur', '', NULL, NULL),
(2, 107, 'Barahipur', '', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `unite_entries`
--
CREATE TABLE `unite_entries` (
`uniteEntryId` bigint(20) UNSIGNED NOT NULL,
`uniteEntryName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`uniteEntryStatus` int(11) NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `unite_entries`
--
INSERT INTO `unite_entries` (`uniteEntryId`, `uniteEntryName`, `uniteEntryStatus`, `createBy`, `updateBy`, `created_at`, `updated_at`) VALUES
(1, 'Box', 1, 1, NULL, '2020-03-22 04:48:05', NULL),
(2, 'PC', 1, 1, 1, '2020-03-22 04:48:12', '2020-06-24 08:49:20'),
(3, 'KG', 1, 1, 1, '2020-06-24 08:48:41', '2020-06-24 08:50:34'),
(4, 'KA', 1, 1, 1, '2020-06-24 08:50:03', '2020-06-25 05:48:01');
-- --------------------------------------------------------
--
-- Table structure for table `upazilas`
--
CREATE TABLE `upazilas` (
`id` bigint(20) UNSIGNED NOT NULL,
`district_id` int(11) NOT NULL,
`upazila_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`upazila_bn_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `upazilas`
--
INSERT INTO `upazilas` (`id`, `district_id`, `upazila_name`, `upazila_bn_name`, `created_at`, `updated_at`) VALUES
(1, 34, 'Amtali', 'আমতলী', '0000-00-00 00:00:00', '2016-04-06 00:48:15'),
(2, 34, 'Bamna ', 'বামনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 34, 'Barguna Sadar ', 'বরগুনা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 34, 'Betagi ', 'বেতাগি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 34, 'Patharghata ', 'পাথরঘাটা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 34, 'Taltali ', 'তালতলী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 35, 'Muladi ', 'মুলাদি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 35, 'Babuganj ', 'বাবুগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 35, 'Agailjhara ', 'আগাইলঝরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 35, 'Barisal Sadar ', 'বরিশাল সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 35, 'Bakerganj ', 'বাকেরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 35, 'Banaripara ', 'বানাড়িপারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 35, 'Gaurnadi ', 'গৌরনদী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 35, 'Hizla ', 'হিজলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, 35, 'Mehendiganj ', 'মেহেদিগঞ্জ ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, 35, 'Wazirpur ', 'ওয়াজিরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(17, 36, 'Bhola Sadar ', 'ভোলা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, 36, 'Burhanuddin ', 'বুরহানউদ্দিন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(19, 36, 'Char Fasson ', 'চর ফ্যাশন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(20, 36, 'Daulatkhan ', 'দৌলতখান', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(21, 36, 'Lalmohan ', 'লালমোহন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(22, 36, 'Manpura ', 'মনপুরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(23, 36, 'Tazumuddin ', 'তাজুমুদ্দিন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, 37, 'Jhalokati Sadar ', 'ঝালকাঠি সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(25, 37, 'Kathalia ', 'কাঁঠালিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(26, 37, 'Nalchity ', 'নালচিতি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(27, 37, 'Rajapur ', 'রাজাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, 38, 'Bauphal ', 'বাউফল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(29, 38, 'Dashmina ', 'দশমিনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 38, 'Galachipa ', 'গলাচিপা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(31, 38, 'Kalapara ', 'কালাপারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(32, 38, 'Mirzaganj ', 'মির্জাগঞ্জ ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(33, 38, 'Patuakhali Sadar ', 'পটুয়াখালী সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(34, 38, 'Dumki ', 'ডুমকি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(35, 38, 'Rangabali ', 'রাঙ্গাবালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, 39, 'Bhandaria', 'ভ্যান্ডারিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(37, 39, 'Kaukhali', 'কাউখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(38, 39, 'Mathbaria', 'মাঠবাড়িয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(39, 39, 'Nazirpur', 'নাজিরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(40, 39, 'Nesarabad', 'নেসারাবাদ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(41, 39, 'Pirojpur Sadar', 'পিরোজপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(42, 39, 'Zianagar', 'জিয়ানগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(43, 40, 'Bandarban Sadar', 'বান্দরবন সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(44, 40, 'Thanchi', 'থানচি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(45, 40, 'Lama', 'লামা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(46, 40, 'Naikhongchhari', 'নাইখংছড়ি ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(47, 40, 'Ali kadam', 'আলী কদম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(48, 40, 'Rowangchhari', 'রউয়াংছড়ি ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(49, 40, 'Ruma', 'রুমা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(50, 41, 'Brahmanbaria Sadar ', 'ব্রাহ্মণবাড়িয়া সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(51, 41, 'Ashuganj ', 'আশুগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(52, 41, 'Nasirnagar ', 'নাসির নগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(53, 41, 'Nabinagar ', 'নবীনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(54, 41, 'Sarail ', 'সরাইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(55, 41, 'Shahbazpur Town', 'শাহবাজপুর টাউন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(56, 41, 'Kasba ', 'কসবা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(57, 41, 'Akhaura ', 'আখাউরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(58, 41, 'Bancharampur ', 'বাঞ্ছারামপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(59, 41, 'Bijoynagar ', 'বিজয় নগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(60, 42, 'Chandpur Sadar', 'চাঁদপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(61, 42, 'Faridganj', 'ফরিদগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(62, 42, 'Haimchar', 'হাইমচর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(63, 42, 'Haziganj', 'হাজীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(64, 42, 'Kachua', 'কচুয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(65, 42, 'Matlab Uttar', 'মতলব উত্তর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(66, 42, 'Matlab Dakkhin', 'মতলব দক্ষিণ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(67, 42, 'Shahrasti', 'শাহরাস্তি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(68, 43, 'Anwara ', 'আনোয়ারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(69, 43, 'Banshkhali ', 'বাশখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(70, 43, 'Boalkhali ', 'বোয়ালখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(71, 43, 'Chandanaish ', 'চন্দনাইশ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(72, 43, 'Fatikchhari ', 'ফটিকছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(73, 43, 'Hathazari ', 'হাঠহাজারী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(74, 43, 'Lohagara ', 'লোহাগারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(75, 43, 'Mirsharai ', 'মিরসরাই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(76, 43, 'Patiya ', 'পটিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(77, 43, 'Rangunia ', 'রাঙ্গুনিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(78, 43, 'Raozan ', 'রাউজান', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(79, 43, 'Sandwip ', 'সন্দ্বীপ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(80, 43, 'Satkania ', 'সাতকানিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(81, 43, 'Sitakunda ', 'সীতাকুণ্ড', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(82, 44, 'Barura ', 'বড়ুরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(83, 44, 'Brahmanpara ', 'ব্রাহ্মণপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(84, 44, 'Burichong ', 'বুড়িচং', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(85, 44, 'Chandina ', 'চান্দিনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(86, 44, 'Chauddagram ', 'চৌদ্দগ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(87, 44, 'Daudkandi ', 'দাউদকান্দি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(88, 44, 'Debidwar ', 'দেবীদ্বার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(89, 44, 'Homna ', 'হোমনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(90, 44, 'Comilla Sadar ', 'কুমিল্লা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(91, 44, 'Laksam ', 'লাকসাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(92, 44, 'Monohorgonj ', 'মনোহরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(93, 44, 'Meghna ', 'মেঘনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(94, 44, 'Muradnagar ', 'মুরাদনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(95, 44, 'Nangalkot ', 'নাঙ্গালকোট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(96, 44, 'Comilla Sadar South ', 'কুমিল্লা সদর দক্ষিণ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(97, 44, 'Titas ', 'তিতাস', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(98, 45, 'Chakaria ', 'চকরিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(99, 45, 'Chakaria ', 'চকরিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(100, 45, 'Cox\'s Bazar Sadar ', 'কক্স বাজার সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(101, 45, 'Kutubdia ', 'কুতুবদিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(102, 45, 'Maheshkhali ', 'মহেশখালী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(103, 45, 'Ramu ', 'রামু', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(104, 45, 'Teknaf ', 'টেকনাফ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(105, 45, 'Ukhia ', 'উখিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(106, 45, 'Pekua ', 'পেকুয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(107, 46, 'Feni Sadar', 'ফেনী সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(108, 46, 'Chagalnaiya', 'ছাগল নাইয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(109, 46, 'Daganbhyan', 'দাগানভিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(110, 46, 'Parshuram', 'পরশুরাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(111, 46, 'Fhulgazi', 'ফুলগাজি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(112, 46, 'Sonagazi', 'সোনাগাজি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(113, 47, 'Dighinala ', 'দিঘিনালা ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(114, 47, 'Khagrachhari ', 'খাগড়াছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(115, 47, 'Lakshmichhari ', 'লক্ষ্মীছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(116, 47, 'Mahalchhari ', 'মহলছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(117, 47, 'Manikchhari ', 'মানিকছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(118, 47, 'Matiranga ', 'মাটিরাঙ্গা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(119, 47, 'Panchhari ', 'পানছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(120, 47, 'Ramgarh ', 'রামগড়', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(121, 48, 'Lakshmipur Sadar ', 'লক্ষ্মীপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(122, 48, 'Raipur ', 'রায়পুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(123, 48, 'Ramganj ', 'রামগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(124, 48, 'Ramgati ', 'রামগতি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(125, 48, 'Komol Nagar ', 'কমল নগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(126, 49, 'Noakhali Sadar ', 'নোয়াখালী সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(127, 49, 'Begumganj ', 'বেগমগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(128, 49, 'Chatkhil ', 'চাটখিল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(129, 49, 'Companyganj ', 'কোম্পানীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(130, 49, 'Shenbag ', 'শেনবাগ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(131, 49, 'Hatia ', 'হাতিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(132, 49, 'Kobirhat ', 'কবিরহাট ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(133, 49, 'Sonaimuri ', 'সোনাইমুরি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(134, 49, 'Suborno Char ', 'সুবর্ণ চর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(135, 50, 'Rangamati Sadar ', 'রাঙ্গামাটি সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(136, 50, 'Belaichhari ', 'বেলাইছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(137, 50, 'Bagaichhari ', 'বাঘাইছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(138, 50, 'Barkal ', 'বরকল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(139, 50, 'Juraichhari ', 'জুরাইছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(140, 50, 'Rajasthali ', 'রাজাস্থলি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(141, 50, 'Kaptai ', 'কাপ্তাই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(142, 50, 'Langadu ', 'লাঙ্গাডু', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(143, 50, 'Nannerchar ', 'নান্নেরচর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(144, 50, 'Kaukhali ', 'কাউখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(150, 2, 'Faridpur Sadar ', 'ফরিদপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(151, 2, 'Boalmari ', 'বোয়ালমারী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(152, 2, 'Alfadanga ', 'আলফাডাঙ্গা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(153, 2, 'Madhukhali ', 'মধুখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(154, 2, 'Bhanga ', 'ভাঙ্গা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(155, 2, 'Nagarkanda ', 'নগরকান্ড', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(156, 2, 'Charbhadrasan ', 'চরভদ্রাসন ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(157, 2, 'Sadarpur ', 'সদরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(158, 2, 'Shaltha ', 'শালথা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(159, 3, 'Gazipur Sadar-Joydebpur', 'গাজীপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(160, 3, 'Kaliakior', 'কালিয়াকৈর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(161, 3, 'Kapasia', 'কাপাসিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(162, 3, 'Sripur', 'শ্রীপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(163, 3, 'Kaliganj', 'কালীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(164, 3, 'Tongi', 'টঙ্গি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(165, 4, 'Gopalganj Sadar ', 'গোপালগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(166, 4, 'Kashiani ', 'কাশিয়ানি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(167, 4, 'Kotalipara ', 'কোটালিপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(168, 4, 'Muksudpur ', 'মুকসুদপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(169, 4, 'Tungipara ', 'টুঙ্গিপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(170, 5, 'Dewanganj ', 'দেওয়ানগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(171, 5, 'Baksiganj ', 'বকসিগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(172, 5, 'Islampur ', 'ইসলামপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(173, 5, 'Jamalpur Sadar ', 'জামালপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(174, 5, 'Madarganj ', 'মাদারগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(175, 5, 'Melandaha ', 'মেলানদাহা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(176, 5, 'Sarishabari ', 'সরিষাবাড়ি ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(177, 5, 'Narundi Police I.C', 'নারুন্দি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(178, 6, 'Astagram ', 'অষ্টগ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(179, 6, 'Bajitpur ', 'বাজিতপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(180, 6, 'Bhairab ', 'ভৈরব', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(181, 6, 'Hossainpur ', 'হোসেনপুর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(182, 6, 'Itna ', 'ইটনা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(183, 6, 'Karimganj ', 'করিমগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(184, 6, 'Katiadi ', 'কতিয়াদি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(185, 6, 'Kishoreganj Sadar ', 'কিশোরগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(186, 6, 'Kuliarchar ', 'কুলিয়ারচর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(187, 6, 'Mithamain ', 'মিঠামাইন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(188, 6, 'Nikli ', 'নিকলি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(189, 6, 'Pakundia ', 'পাকুন্ডা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(190, 6, 'Tarail ', 'তাড়াইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(191, 7, 'Madaripur Sadar', 'মাদারীপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(192, 7, 'Kalkini', 'কালকিনি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(193, 7, 'Rajoir', 'রাজইর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(194, 7, 'Shibchar', 'শিবচর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(195, 8, 'Manikganj Sadar ', 'মানিকগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(196, 8, 'Singair ', 'সিঙ্গাইর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(197, 8, 'Shibalaya ', 'শিবালয়', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(198, 8, 'Saturia ', 'সাঠুরিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(199, 8, 'Harirampur ', 'হরিরামপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(200, 8, 'Ghior ', 'ঘিওর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(201, 8, 'Daulatpur ', 'দৌলতপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(202, 9, 'Lohajang ', 'লোহাজং', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(203, 9, 'Sreenagar ', 'শ্রীনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(204, 9, 'Munshiganj Sadar ', 'মুন্সিগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(205, 9, 'Sirajdikhan ', 'সিরাজদিখান', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(206, 9, 'Tongibari ', 'টঙ্গিবাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(207, 9, 'Gazaria ', 'গজারিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(208, 10, 'Bhaluka', 'ভালুকা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(209, 10, 'Trishal', 'ত্রিশাল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(210, 10, 'Haluaghat', 'হালুয়াঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(211, 10, 'Muktagachha', 'মুক্তাগাছা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(212, 10, 'Dhobaura', 'ধবারুয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(213, 10, 'Fulbaria', 'ফুলবাড়িয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(214, 10, 'Gaffargaon', 'গফরগাঁও', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(215, 10, 'Gauripur', 'গৌরিপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(216, 10, 'Ishwarganj', 'ঈশ্বরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(217, 10, 'Mymensingh Sadar', 'ময়মনসিং সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(218, 10, 'Nandail', 'নন্দাইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(219, 10, 'Phulpur', 'ফুলপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(220, 11, 'Araihazar ', 'আড়াইহাজার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(221, 11, 'Sonargaon ', 'সোনারগাঁও', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(222, 11, 'Bandar', 'বান্দার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(223, 11, 'Naryanganj Sadar ', 'নারায়ানগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(224, 11, 'Rupganj ', 'রূপগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(225, 11, 'Siddirgonj ', 'সিদ্ধিরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(226, 12, 'Belabo ', 'বেলাবো', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(227, 12, 'Monohardi ', 'মনোহরদি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(228, 12, 'Narsingdi Sadar ', 'নরসিংদী সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(229, 12, 'Palash ', 'পলাশ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(230, 12, 'Raipura , Narsingdi', 'রায়পুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(231, 12, 'Shibpur ', 'শিবপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(232, 13, 'Kendua Upazilla', 'কেন্দুয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(233, 13, 'Atpara Upazilla', 'আটপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(234, 13, 'Barhatta Upazilla', 'বরহাট্টা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(235, 13, 'Durgapur Upazilla', 'দুর্গাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(236, 13, 'Kalmakanda Upazilla', 'কলমাকান্দা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(237, 13, 'Madan Upazilla', 'মদন', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(238, 13, 'Mohanganj Upazilla', 'মোহনগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(239, 13, 'Netrakona-S Upazilla', 'নেত্রকোনা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(240, 13, 'Purbadhala Upazilla', 'পূর্বধলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(241, 13, 'Khaliajuri Upazilla', 'খালিয়াজুরি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(242, 14, 'Baliakandi ', 'বালিয়াকান্দি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(243, 14, 'Goalandaghat ', 'গোয়ালন্দ ঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(244, 14, 'Pangsha ', 'পাংশা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(245, 14, 'Kalukhali ', 'কালুখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(246, 14, 'Rajbari Sadar ', 'রাজবাড়ি সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(247, 15, 'Shariatpur Sadar -Palong', 'শরীয়তপুর সদর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(248, 15, 'Damudya ', 'দামুদিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(249, 15, 'Naria ', 'নড়িয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(250, 15, 'Jajira ', 'জাজিরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(251, 15, 'Bhedarganj ', 'ভেদারগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(252, 15, 'Gosairhat ', 'গোসাইর হাট ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(253, 16, 'Jhenaigati ', 'ঝিনাইগাতি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(254, 16, 'Nakla ', 'নাকলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(255, 16, 'Nalitabari ', 'নালিতাবাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(256, 16, 'Sherpur Sadar ', 'শেরপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(257, 16, 'Sreebardi ', 'শ্রীবরদি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(258, 17, 'Tangail Sadar ', 'টাঙ্গাইল সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(259, 17, 'Sakhipur ', 'সখিপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(260, 17, 'Basail ', 'বসাইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(261, 17, 'Madhupur ', 'মধুপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(262, 17, 'Ghatail ', 'ঘাটাইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(263, 17, 'Kalihati ', 'কালিহাতি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(264, 17, 'Nagarpur ', 'নগরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(265, 17, 'Mirzapur ', 'মির্জাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(266, 17, 'Gopalpur ', 'গোপালপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(267, 17, 'Delduar ', 'দেলদুয়ার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(268, 17, 'Bhuapur ', 'ভুয়াপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(269, 17, 'Dhanbari ', 'ধানবাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(270, 55, 'Bagerhat Sadar ', 'বাগেরহাট সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(271, 55, 'Chitalmari ', 'চিতলমাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(272, 55, 'Fakirhat ', 'ফকিরহাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(273, 55, 'Kachua ', 'কচুয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(274, 55, 'Mollahat ', 'মোল্লাহাট ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(275, 55, 'Mongla ', 'মংলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(276, 55, 'Morrelganj ', 'মরেলগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(277, 55, 'Rampal ', 'রামপাল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(278, 55, 'Sarankhola ', 'স্মরণখোলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(279, 56, 'Damurhuda ', 'দামুরহুদা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(280, 56, 'Chuadanga-S ', 'চুয়াডাঙ্গা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(281, 56, 'Jibannagar ', 'জীবন নগর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(282, 56, 'Alamdanga ', 'আলমডাঙ্গা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(283, 57, 'Abhaynagar ', 'অভয়নগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(284, 57, 'Keshabpur ', 'কেশবপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(285, 57, 'Bagherpara ', 'বাঘের পাড়া ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(286, 57, 'Jessore Sadar ', 'যশোর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(287, 57, 'Chaugachha ', 'চৌগাছা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(288, 57, 'Manirampur ', 'মনিরামপুর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(289, 57, 'Jhikargachha ', 'ঝিকরগাছা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(290, 57, 'Sharsha ', 'সারশা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(291, 58, 'Jhenaidah Sadar ', 'ঝিনাইদহ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(292, 58, 'Maheshpur ', 'মহেশপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(293, 58, 'Kaliganj ', 'কালীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(294, 58, 'Kotchandpur ', 'কোট চাঁদপুর ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(295, 58, 'Shailkupa ', 'শৈলকুপা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(296, 58, 'Harinakunda ', 'হাড়িনাকুন্দা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(297, 59, 'Terokhada ', 'তেরোখাদা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(298, 59, 'Batiaghata ', 'বাটিয়াঘাটা ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(299, 59, 'Dacope ', 'ডাকপে', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(300, 59, 'Dumuria ', 'ডুমুরিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(301, 59, 'Dighalia ', 'দিঘলিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(302, 59, 'Koyra ', 'কয়ড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(303, 59, 'Paikgachha ', 'পাইকগাছা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(304, 59, 'Phultala ', 'ফুলতলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(305, 59, 'Rupsa ', 'রূপসা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(306, 60, 'Kushtia Sadar', 'কুষ্টিয়া সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(307, 60, 'Kumarkhali', 'কুমারখালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(308, 60, 'Daulatpur', 'দৌলতপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(309, 60, 'Mirpur', 'মিরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(310, 60, 'Bheramara', 'ভেরামারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(311, 60, 'Khoksa', 'খোকসা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(312, 61, 'Magura Sadar ', 'মাগুরা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(313, 61, 'Mohammadpur ', 'মোহাম্মাদপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(314, 61, 'Shalikha ', 'শালিখা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(315, 61, 'Sreepur ', 'শ্রীপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(316, 62, 'angni ', 'আংনি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(317, 62, 'Mujib Nagar ', 'মুজিব নগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(318, 62, 'Meherpur-S ', 'মেহেরপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(319, 63, 'Narail-S Upazilla', 'নড়াইল সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(320, 63, 'Lohagara Upazilla', 'লোহাগাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(321, 63, 'Kalia Upazilla', 'কালিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(322, 64, 'Satkhira Sadar ', 'সাতক্ষীরা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(323, 64, 'Assasuni ', 'আসসাশুনি ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(324, 64, 'Debhata ', 'দেভাটা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(325, 64, 'Tala ', 'তালা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(326, 64, 'Kalaroa ', 'কলরোয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(327, 64, 'Kaliganj ', 'কালীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(328, 64, 'Shyamnagar ', 'শ্যামনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(329, 18, 'Adamdighi', 'আদমদিঘী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(330, 18, 'Bogra Sadar', 'বগুড়া সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(331, 18, 'Sherpur', 'শেরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(332, 18, 'Dhunat', 'ধুনট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(333, 18, 'Dhupchanchia', 'দুপচাচিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(334, 18, 'Gabtali', 'গাবতলি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(335, 18, 'Kahaloo', 'কাহালু', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(336, 18, 'Nandigram', 'নন্দিগ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(337, 18, 'Sahajanpur', 'শাহজাহানপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(338, 18, 'Sariakandi', 'সারিয়াকান্দি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(339, 18, 'Shibganj', 'শিবগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(340, 18, 'Sonatala', 'সোনাতলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(341, 19, 'Joypurhat S', 'জয়পুরহাট সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(342, 19, 'Akkelpur', 'আক্কেলপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(343, 19, 'Kalai', 'কালাই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(344, 19, 'Khetlal', 'খেতলাল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(345, 19, 'Panchbibi', 'পাঁচবিবি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(346, 20, 'Naogaon Sadar ', 'নওগাঁ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(347, 20, 'Mohadevpur ', 'মহাদেবপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(348, 20, 'Manda ', 'মান্দা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(349, 20, 'Niamatpur ', 'নিয়ামতপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(350, 20, 'Atrai ', 'আত্রাই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(351, 20, 'Raninagar ', 'রাণীনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(352, 20, 'Patnitala ', 'পত্নীতলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(353, 20, 'Dhamoirhat ', 'ধামইরহাট ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(354, 20, 'Sapahar ', 'সাপাহার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(355, 20, 'Porsha ', 'পোরশা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(356, 20, 'Badalgachhi ', 'বদলগাছি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(357, 21, 'Natore Sadar ', 'নাটোর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(358, 21, 'Baraigram ', 'বড়াইগ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(359, 21, 'Bagatipara ', 'বাগাতিপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(360, 21, 'Lalpur ', 'লালপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(361, 21, 'Natore Sadar ', 'নাটোর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(362, 21, 'Baraigram ', 'বড়াই গ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(363, 22, 'Bholahat ', 'ভোলাহাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(364, 22, 'Gomastapur ', 'গোমস্তাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(365, 22, 'Nachole ', 'নাচোল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(366, 22, 'Nawabganj Sadar ', 'নবাবগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(367, 22, 'Shibganj ', 'শিবগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(368, 23, 'Atgharia ', 'আটঘরিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(369, 23, 'Bera ', 'বেড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(370, 23, 'Bhangura ', 'ভাঙ্গুরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(371, 23, 'Chatmohar ', 'চাটমোহর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(372, 23, 'Faridpur ', 'ফরিদপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(373, 23, 'Ishwardi ', 'ঈশ্বরদী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(374, 23, 'Pabna Sadar ', 'পাবনা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(375, 23, 'Santhia ', 'সাথিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(376, 23, 'Sujanagar ', 'সুজানগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(377, 24, 'Bagha', 'বাঘা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(378, 24, 'Bagmara', 'বাগমারা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(379, 24, 'Charghat', 'চারঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(380, 24, 'Durgapur', 'দুর্গাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(381, 24, 'Godagari', 'গোদাগারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(382, 24, 'Mohanpur', 'মোহনপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(383, 24, 'Paba', 'পবা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(384, 24, 'Puthia', 'পুঠিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(385, 24, 'Tanore', 'তানোর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(386, 25, 'Sirajganj Sadar ', 'সিরাজগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(387, 25, 'Belkuchi ', 'বেলকুচি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(388, 25, 'Chauhali ', 'চৌহালি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(389, 25, 'Kamarkhanda ', 'কামারখান্দা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(390, 25, 'Kazipur ', 'কাজীপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(391, 25, 'Raiganj ', 'রায়গঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(392, 25, 'Shahjadpur ', 'শাহজাদপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(393, 25, 'Tarash ', 'তারাশ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(394, 25, 'Ullahpara ', 'উল্লাপাড়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(395, 26, 'Birampur ', 'বিরামপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(396, 26, 'Birganj', 'বীরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(397, 26, 'Biral ', 'বিড়াল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(398, 26, 'Bochaganj ', 'বোচাগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(399, 26, 'Chirirbandar ', 'চিরিরবন্দর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(400, 26, 'Phulbari ', 'ফুলবাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(401, 26, 'Ghoraghat ', 'ঘোড়াঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(402, 26, 'Hakimpur ', 'হাকিমপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(403, 26, 'Kaharole ', 'কাহারোল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(404, 26, 'Khansama ', 'খানসামা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(405, 26, 'Dinajpur Sadar ', 'দিনাজপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(406, 26, 'Nawabganj', 'নবাবগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(407, 26, 'Parbatipur ', 'পার্বতীপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(408, 27, 'Fulchhari', 'ফুলছড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(409, 27, 'Gaibandha sadar', 'গাইবান্ধা সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(410, 27, 'Gobindaganj', 'গোবিন্দগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(411, 27, 'Palashbari', 'পলাশবাড়ী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(412, 27, 'Sadullapur', 'সাদুল্যাপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(413, 27, 'Saghata', 'সাঘাটা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(414, 27, 'Sundarganj', 'সুন্দরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(415, 28, 'Kurigram Sadar', 'কুড়িগ্রাম সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(416, 28, 'Nageshwari', 'নাগেশ্বরী', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(417, 28, 'Bhurungamari', 'ভুরুঙ্গামারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(418, 28, 'Phulbari', 'ফুলবাড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(419, 28, 'Rajarhat', 'রাজারহাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(420, 28, 'Ulipur', 'উলিপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(421, 28, 'Chilmari', 'চিলমারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(422, 28, 'Rowmari', 'রউমারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(423, 28, 'Char Rajibpur', 'চর রাজিবপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(424, 29, 'Lalmanirhat Sadar', 'লালমনিরহাট সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(425, 29, 'Aditmari', 'আদিতমারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(426, 29, 'Kaliganj', 'কালীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(427, 29, 'Hatibandha', 'হাতিবান্ধা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(428, 29, 'Patgram', 'পাটগ্রাম', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(429, 30, 'Nilphamari Sadar', 'নীলফামারী সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(430, 30, 'Saidpur', 'সৈয়দপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(431, 30, 'Jaldhaka', 'জলঢাকা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(432, 30, 'Kishoreganj', 'কিশোরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(433, 30, 'Domar', 'ডোমার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(434, 30, 'Dimla', 'ডিমলা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(435, 31, 'Panchagarh Sadar', 'পঞ্চগড় সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(436, 31, 'Debiganj', 'দেবীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(437, 31, 'Boda', 'বোদা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(438, 31, 'Atwari', 'আটোয়ারি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(439, 31, 'Tetulia', 'তেতুলিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(440, 32, 'Badarganj', 'বদরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(441, 32, 'Mithapukur', 'মিঠাপুকুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(442, 32, 'Gangachara', 'গঙ্গাচরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(443, 32, 'Kaunia', 'কাউনিয়া', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(444, 32, 'Rangpur Sadar', 'রংপুর সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(445, 32, 'Pirgachha', 'পীরগাছা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(446, 32, 'Pirganj', 'পীরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(447, 32, 'Taraganj', 'তারাগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(448, 33, 'Thakurgaon Sadar ', 'ঠাকুরগাঁও সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(449, 33, 'Pirganj ', 'পীরগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(450, 33, 'Baliadangi ', 'বালিয়াডাঙ্গি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(451, 33, 'Haripur ', 'হরিপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(452, 33, 'Ranisankail ', 'রাণীসংকইল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(453, 51, 'Ajmiriganj', 'আজমিরিগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(454, 51, 'Baniachang', 'বানিয়াচং', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(455, 51, 'Bahubal', 'বাহুবল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(456, 51, 'Chunarughat', 'চুনারুঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(457, 51, 'Habiganj Sadar', 'হবিগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(458, 51, 'Lakhai', 'লাক্ষাই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(459, 51, 'Madhabpur', 'মাধবপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(460, 51, 'Nabiganj', 'নবীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(461, 51, 'Shaistagonj ', 'শায়েস্তাগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(462, 52, 'Moulvibazar Sadar', 'মৌলভীবাজার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(463, 52, 'Barlekha', 'বড়লেখা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(464, 52, 'Juri', 'জুড়ি', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(465, 52, 'Kamalganj', 'কামালগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(466, 52, 'Kulaura', 'কুলাউরা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(467, 52, 'Rajnagar', 'রাজনগর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(468, 52, 'Sreemangal', 'শ্রীমঙ্গল', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(469, 53, 'Bishwamvarpur', 'বিসশম্ভারপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(470, 53, 'Chhatak', 'ছাতক', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(471, 53, 'Derai', 'দেড়াই', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(472, 53, 'Dharampasha', 'ধরমপাশা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(473, 53, 'Dowarabazar', 'দোয়ারাবাজার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(474, 53, 'Jagannathpur', 'জগন্নাথপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(475, 53, 'Jamalganj', 'জামালগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(476, 53, 'Sulla', 'সুল্লা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(477, 53, 'Sunamganj Sadar', 'সুনামগঞ্জ সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(478, 53, 'Shanthiganj', 'শান্তিগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(479, 53, 'Tahirpur', 'তাহিরপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(480, 54, 'Sylhet Sadar', 'সিলেট সদর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(481, 54, 'Beanibazar', 'বেয়ানিবাজার', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(482, 54, 'Bishwanath', 'বিশ্বনাথ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(483, 54, 'Dakshin Surma ', 'দক্ষিণ সুরমা', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(484, 54, 'Balaganj', 'বালাগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(485, 54, 'Companiganj', 'কোম্পানিগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(486, 54, 'Fenchuganj', 'ফেঞ্চুগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(487, 54, 'Golapganj', 'গোলাপগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(488, 54, 'Gowainghat', 'গোয়াইনঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(489, 54, 'Jaintiapur', 'জয়ন্তপুর', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(490, 54, 'Kanaighat', 'কানাইঘাট', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(491, 54, 'Zakiganj', 'জাকিগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(492, 54, 'Nobigonj', 'নবীগঞ্জ', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(493, 1, 'Adabor', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(494, 1, 'Airport', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(495, 1, 'Badda', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(496, 1, 'Banani', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(497, 1, 'Bangshal', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(498, 1, 'Bhashantek', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(499, 1, 'Cantonment', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(500, 1, 'Chackbazar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(501, 1, 'Darussalam', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(502, 1, 'Daskhinkhan', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(503, 1, 'Demra', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(504, 1, 'Dhamrai', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(505, 1, 'Dhanmondi', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(506, 1, 'Dohar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(507, 1, 'Gandaria', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(508, 1, 'Gulshan', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(509, 1, 'Hazaribag', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(510, 1, 'Jatrabari', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(511, 1, 'Kafrul', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(512, 1, 'Kalabagan', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(513, 1, 'Kamrangirchar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(514, 1, 'Keraniganj', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(515, 1, 'Khilgaon', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(516, 1, 'Khilkhet', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(517, 1, 'Kotwali', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(518, 1, 'Lalbag', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(519, 1, 'Mirpur Model', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(520, 1, 'Mohammadpur', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(521, 1, 'Motijheel', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(522, 1, 'Mugda', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(523, 1, 'Nawabganj', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(524, 1, 'New Market', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(525, 1, 'Pallabi', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(526, 1, 'Paltan', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(527, 1, 'Ramna', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(528, 1, 'Rampura', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(529, 1, 'Rupnagar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(530, 1, 'Sabujbag', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(531, 1, 'Savar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(532, 1, 'Shah Ali', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(533, 1, 'Shahbag', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(534, 1, 'Shahjahanpur', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(535, 1, 'Sherebanglanagar', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(536, 1, 'Shyampur', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(537, 1, 'Sutrapur', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(538, 1, 'Tejgaon', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(539, 1, 'Tejgaon I/A', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(540, 1, 'Turag', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(541, 1, 'Uttara', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(542, 1, 'Uttara West', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(543, 1, 'Uttarkhan', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(544, 1, 'Vatara', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(545, 1, 'Wari', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(546, 1, 'Others', '', '2016-04-06 05:00:09', '0000-00-00 00:00:00'),
(547, 35, 'Airport', 'এয়ারপোর্ট', '2016-04-06 05:22:44', '0000-00-00 00:00:00'),
(548, 35, 'Kawnia', 'কাউনিয়া', '2016-04-06 05:24:16', '0000-00-00 00:00:00'),
(549, 35, 'Bondor', 'বন্দর', '2016-04-06 05:26:55', '0000-00-00 00:00:00'),
(550, 35, 'Others', 'অন্যান্য', '2016-04-06 05:27:50', '0000-00-00 00:00:00'),
(551, 24, 'Boalia', 'বোয়ালিয়া', '2016-04-06 05:31:49', '0000-00-00 00:00:00'),
(552, 24, 'Motihar', 'মতিহার', '2016-04-06 05:32:36', '0000-00-00 00:00:00'),
(553, 24, 'Shahmokhdum', 'শাহ্ মকখদুম ', '2016-04-06 05:35:51', '0000-00-00 00:00:00'),
(554, 24, 'Rajpara', 'রাজপারা ', '2016-04-06 05:38:08', '0000-00-00 00:00:00'),
(555, 24, 'Others', 'অন্যান্য', '2016-04-06 05:38:45', '0000-00-00 00:00:00'),
(556, 43, 'Akborsha', 'Akborsha', '2016-04-06 05:56:37', '0000-00-00 00:00:00'),
(557, 43, 'Baijid bostami', 'বাইজিদ বোস্তামী', '2016-04-06 06:09:14', '0000-00-00 00:00:00'),
(558, 43, 'Bakolia', 'বাকোলিয়া', '2016-04-06 06:10:28', '0000-00-00 00:00:00'),
(559, 43, 'Bandar', 'বন্দর', '2016-04-06 06:11:29', '0000-00-00 00:00:00'),
(560, 43, 'Chandgaon', 'চাঁদগাও', '2016-04-06 06:12:10', '0000-00-00 00:00:00'),
(561, 43, 'Chokbazar', 'চকবাজার', '2016-04-06 06:12:46', '0000-00-00 00:00:00'),
(562, 43, 'Doublemooring', 'ডাবল মুরিং', '2016-04-06 06:13:46', '0000-00-00 00:00:00'),
(563, 43, 'EPZ', 'ইপিজেড', '2016-04-06 06:14:31', '0000-00-00 00:00:00'),
(564, 43, 'Hali Shohor', 'হলী শহর', '2016-04-06 06:15:30', '0000-00-00 00:00:00'),
(565, 43, 'Kornafuli', 'কর্ণফুলি', '2016-04-06 06:16:05', '0000-00-00 00:00:00'),
(566, 43, 'Kotwali', 'কোতোয়ালী', '2016-04-06 06:16:44', '0000-00-00 00:00:00'),
(567, 43, 'Kulshi', 'কুলশি', '2016-04-06 06:17:45', '0000-00-00 00:00:00'),
(568, 43, 'Pahartali', 'পাহাড়তলী', '2016-04-06 06:19:02', '0000-00-00 00:00:00'),
(569, 43, 'Panchlaish', 'পাঁচলাইশ', '2016-04-06 06:20:00', '0000-00-00 00:00:00'),
(570, 43, 'Potenga', 'পতেঙ্গা', '2016-04-06 06:20:56', '0000-00-00 00:00:00'),
(571, 43, 'Shodhorgat', 'সদরঘাট', '2016-04-06 06:21:55', '0000-00-00 00:00:00'),
(572, 43, 'Others', 'অন্যান্য', '2016-04-06 06:22:27', '0000-00-00 00:00:00'),
(573, 44, 'Others', 'অন্যান্য', '2016-04-06 06:37:35', '0000-00-00 00:00:00'),
(574, 59, 'Aranghata', 'আড়াংঘাটা', '2016-04-06 07:30:26', '0000-00-00 00:00:00'),
(575, 59, 'Daulatpur', 'দৌলতপুর', '2016-04-06 07:31:48', '0000-00-00 00:00:00'),
(576, 59, 'Harintana', 'হারিন্তানা ', '2016-04-06 07:33:42', '0000-00-00 00:00:00'),
(577, 59, 'Horintana', 'হরিণতানা ', '2016-04-06 07:34:47', '0000-00-00 00:00:00'),
(578, 59, 'Khalishpur', 'খালিশপুর', '2016-04-06 07:35:32', '0000-00-00 00:00:00'),
(579, 59, 'Khanjahan Ali', 'খানজাহান আলী', '2016-04-06 07:36:50', '0000-00-00 00:00:00'),
(580, 59, 'Khulna Sadar', 'খুলনা সদর', '2016-04-06 07:37:34', '0000-00-00 00:00:00'),
(581, 59, 'Labanchora', 'লাবানছোরা', '2016-04-06 07:38:59', '0000-00-00 00:00:00'),
(582, 59, 'Sonadanga', 'সোনাডাঙ্গা', '2016-04-06 07:39:58', '0000-00-00 00:00:00'),
(583, 59, 'Others', 'অন্যান্য', '2016-04-06 07:41:50', '0000-00-00 00:00:00'),
(584, 2, 'Others', 'অন্যান্য', '2016-04-06 07:43:32', '0000-00-00 00:00:00'),
(585, 4, 'Others', 'অন্যান্য', '2016-04-06 07:44:43', '0000-00-00 00:00:00'),
(586, 5, 'Others', 'অন্যান্য', '2016-04-06 07:45:54', '0000-00-00 00:00:00'),
(587, 54, 'Airport', 'বিমানবন্দর', '2016-04-06 07:54:23', '0000-00-00 00:00:00'),
(588, 54, 'Hazrat Shah Paran', 'হযরত শাহ পরাণ', '2016-04-06 07:56:49', '0000-00-00 00:00:00'),
(589, 54, 'Jalalabad', 'জালালাবাদ', '2016-04-06 07:57:51', '0000-00-00 00:00:00'),
(590, 54, 'Kowtali', 'কোতোয়ালী', '2016-04-06 07:59:03', '0000-00-00 00:00:00'),
(591, 54, 'Moglabazar', 'মোগলাবাজার', '2016-04-06 08:00:34', '0000-00-00 00:00:00'),
(592, 54, 'Osmani Nagar', 'ওসমানী নগর', '2016-04-06 08:01:12', '0000-00-00 00:00:00'),
(593, 54, 'South Surma', 'দক্ষিণ সুরমা', '2016-04-06 08:01:52', '0000-00-00 00:00:00'),
(594, 54, 'Others', 'অন্যান্য', '2016-04-06 08:02:43', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`adminId` int(11) DEFAULT NULL,
`shopId` int(11) DEFAULT NULL,
`employeeId` int(11) DEFAULT NULL,
`adminAccessId` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shopAccessName` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createBy` int(11) DEFAULT NULL,
`updateBy` int(11) DEFAULT NULL,
`role` int(11) NOT NULL DEFAULT 1,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `phone`, `email`, `email_verified_at`, `adminId`, `shopId`, `employeeId`, `adminAccessId`, `shopAccessName`, `password`, `address`, `createBy`, `updateBy`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Md.Rubel Khan', '01708797991', '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$OJorD8ruDZusjkPazIMYlOROVI80NlUIzKG.UKkgcSmfKvCMG0t4q', 'Dhaka', NULL, 1, 1, NULL, '2020-03-14 03:58:48', '2020-03-18 09:25:07'),
(2, 'Md.Rana Khan', '0170000000', '[email protected]', NULL, 1, NULL, NULL, '1', NULL, '$2y$10$gJPe.Y2zxXWnkhS4DCGk2eGQZY8OHPnF8C/hBfWFj6GGnRhlFaWGC', 'Dhaka', 1, NULL, 2, NULL, '2020-03-14 04:00:33', NULL),
(3, 'Md.Shalam Khan', '0170000000', '[email protected]', NULL, NULL, 1, NULL, NULL, 'shop', '$2y$10$wuZaZZRddZCVjO/kVrbxV.uXUhyXqckgB5eoWFE2B6X0qTIdyJviO', 'Barisal', 1, NULL, 3, NULL, '2020-03-14 04:01:15', NULL),
(13, 'Shohel Rana', '0170000000', '[email protected]', NULL, 1, NULL, NULL, '1', NULL, '$2y$10$hmVAqPajZ4xfhGFsb0nUhuvCuLnPlL5qOFAgAoWPzyU4A/CKksYNq', 'Pabna', 1, NULL, 2, NULL, '2020-06-24 07:38:15', NULL),
(14, 'Shohel Rana', '0170000002', '[email protected]', NULL, NULL, 2, NULL, NULL, 'shoptwo', '$2y$10$OJorD8ruDZusjkPazIMYlOROVI80NlUIzKG.UKkgcSmfKvCMG0t4q', 'Dhaka', 1, 1, 3, NULL, '2020-06-24 07:39:58', '2020-06-24 07:40:40'),
(15, 'Rubel Khan', '1708797991', NULL, NULL, NULL, NULL, 4, NULL, 'malekkhan', '$2y$10$4/M3rUNQvK3.Wdz4xd20..bGC8jmI9uYdO6rra2XOxQ21JHOYdQ12', 'Bangladeshi', 3, NULL, 4, NULL, '2020-06-25 06:28:00', NULL),
(16, 'Rubel Khan ok', '01708797991', NULL, NULL, NULL, NULL, 5, NULL, '[email protected]', '$2y$10$HzwAuflZeYaxQKQilKrvyOqblf2qVbsq7RhxyYaSEBYM3G8ELaJDe', 'Bangladeshi', 3, NULL, 4, NULL, '2020-06-25 06:31:31', NULL),
(17, 'Rubel Khan 797991', '1708797991', NULL, NULL, NULL, NULL, 6, NULL, 'eng.rubelkhan797991', '$2y$10$62PHEbpG8c9/h11iztKoBOXt26XRLo4c/doLhTFKqeOLIUwAdxU7y', 'Bangladeshi', 3, NULL, 4, NULL, '2020-06-25 06:33:21', '2020-06-26 14:59:34'),
(18, 'Rubel Khan 2', '01708797991', '[email protected]', NULL, NULL, NULL, 7, NULL, 'eng.rubel', '$2y$10$c1MAheJYuds4DaS7sSoXm./N6XVBuplqZGmFK.5JWiTa4msxvdHbK', 'Dhaka', 3, 18, 4, NULL, '2020-06-25 06:35:11', '2020-06-26 14:59:36'),
(19, 'RobertVax', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$qo37BJADtK.x9ym9/4fubOMKNZ3z0FDvqw1uTlrWVuWXpGQqEMkTa', NULL, NULL, NULL, 1, NULL, '2020-09-20 14:08:06', '2020-09-20 14:08:06'),
(20, 'dealtaj', '01812454358', NULL, NULL, NULL, NULL, 8, NULL, 'dealtaj', '$2y$10$U4I5R21c1UNmbjAwczwM3OEVGoIfNd.uU.6C.4aZbEDTs4yBmcb3u', 'Dhaka', 3, 3, 4, NULL, '2020-10-16 16:56:15', '2020-10-16 16:57:58'),
(21, 'Salvatore Dietrich', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$Y8FlNyMZVcapVXnvIAgYF.5IEktR4sV76o4yewfhYe3hvQBeeXom6', NULL, NULL, NULL, 1, NULL, '2020-11-20 06:18:05', '2020-11-20 06:18:05'),
(22, 'Alysha Fadel', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$nu51leBIrWYScPIwtzfNZ.LGTgPqSDy6JBkjOl4OgMFMAQAlitYfW', NULL, NULL, NULL, 1, NULL, '2020-11-27 13:03:37', '2020-11-27 13:03:37'),
(23, 'Claude Simonis', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$SGy6UrQRpaasQMcebfhg7.s8Ov./qbh7qQtJlht.DA8ZRIj.ZWcTW', NULL, NULL, NULL, 1, NULL, '2020-11-30 01:02:22', '2020-11-30 01:02:22'),
(24, 'Bernardo Veum', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$E/wkHBuYiMSykxl.euLIv.pqhwH7Q19q4xVJlXws0l2o1Sh9XL4KO', NULL, NULL, NULL, 1, NULL, '2020-12-04 22:50:09', '2020-12-04 22:50:09'),
(25, 'Lincoln Berge', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$G0oxzIt/v04R2e.OFSbgku4A1KCg9x5UvfB3K5qewVJ3G0Dx3iWT2', NULL, NULL, NULL, 1, NULL, '2020-12-06 14:17:09', '2020-12-06 14:17:09'),
(26, 'Brandt Collins', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$/sOUUbm7K.RJsofsLKImIOno37tu3oe5LMnVbvTq/NIpbQrUPERBi', NULL, NULL, NULL, 1, NULL, '2020-12-12 10:54:29', '2020-12-12 10:54:29'),
(27, 'Rubel', NULL, '[email protected]', NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$ZMSm.o6rpbssaW7XNOaGzOToVP58PMRlK2HehbRWXxVafcx9flmS2', NULL, NULL, NULL, 1, NULL, '2021-02-25 04:18:36', '2021-02-25 04:18:36'),
(28, 'Nazmul Huda', NULL, '[email protected]', NULL, NULL, 2, NULL, NULL, NULL, '$2y$10$/uvwPaiq/qDN1GSvcVM7ke5Z8VsTqn/z1P9m8xVvhCqjN1sRWgL/e', NULL, NULL, NULL, 2, NULL, '2021-03-15 18:10:03', '2021-03-15 18:10:03'),
(29, 'arif', '1632077744', NULL, NULL, NULL, NULL, 9, NULL, 'arif', '$2y$10$aZnsVYaBPELzejt.n0MAyODVa.sPKhF6XbcTn/WjRjE4OPeNElRQu', 'Elida Ho', 14, NULL, 4, NULL, '2021-03-15 20:23:59', NULL),
(30, 'arif', '01882061784', '[email protected]', NULL, 3, NULL, NULL, '3', NULL, '$2y$10$3zfgGnG3tMeyX10Iz3.1N.Dxn/FSYcWQNZ73K7GYxDC4vsf2Dy2Tm', 'sdfdf', 1, NULL, 2, NULL, '2021-03-16 21:11:16', NULL),
(31, 'do', '12', '[email protected]', NULL, 4, NULL, NULL, '4', NULL, '$2y$10$bNQKH.8igJm/xJRnjuGSz.5bwY5QV/1Nv0YenX0WEFcyNWW460.BS', 'df', 1, NULL, 2, NULL, '2021-03-24 08:32:24', NULL),
(32, 'Nazmul', '1632077744', '[email protected]', NULL, 5, NULL, NULL, '5', NULL, '$2y$10$PNFW5Gut7TsV89JfOBswh.s9yVTD3WqP1GUbXqJulyw42Od/VETiq', 'Elida Ho', 1, NULL, 2, NULL, '2021-03-24 09:05:35', NULL),
(33, 'saiful', '01', '[email protected]', NULL, 6, NULL, NULL, '6', NULL, '$2y$10$aFozr/7ulQDUrBcqTqRwKept4PBbTHU.KPGF/NePrqNWdTpR5tKd2', 'zddf', 1, NULL, 2, NULL, '2021-03-24 09:06:03', NULL),
(34, 'a', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'a', '$2y$10$88ZQig/zjO09QgaBwLIYNeM6wH6GPyqMaoZ5cgTUYOZYlcE7Lx.L2', NULL, NULL, NULL, 4, NULL, '2021-04-04 11:54:02', '2021-04-04 11:54:02'),
(35, 'Acc Saiful', '01812454358', '[email protected]', NULL, 7, NULL, NULL, '7', NULL, '$2y$10$QEMzx61eAvJtN1nOsk07setHU5628gOwB6L0UeLfgec6bBDeIeJ66', 'Nikunja, khilkhet\nHouse#10,Road#7/D,Dhaka', 1, 35, 2, NULL, '2021-04-11 15:18:58', '2021-04-11 15:21:02');
-- --------------------------------------------------------
--
-- Table structure for table `vendors`
--
CREATE TABLE `vendors` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `vendors`
--
INSERT INTO `vendors` (`id`, `name`, `email`, `phone`, `created_at`, `updated_at`) VALUES
(14, 'Nazmul Huda', '[email protected]', '01812454358', '2021-03-06 13:23:46', '2021-03-06 13:23:46'),
(15, 'Edward D. Veilleux', '[email protected]', '1632077744', '2021-03-06 13:24:14', '2021-03-06 13:24:14');
-- --------------------------------------------------------
--
-- Table structure for table `voucher_information`
--
CREATE TABLE `voucher_information` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`branchId` int(11) NOT NULL,
`voucherDate` datetime NOT NULL,
`voucherType` int(11) NOT NULL,
`voucherSource` int(11) NOT NULL DEFAULT 0,
`voucherNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`voucherUniqueId` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`paymentTo` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobileNo` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`checkPaymentType` int(11) DEFAULT NULL,
`receiverBankAccountName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`chequeNo` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`chequeDate` datetime DEFAULT NULL,
`accountCodeDebit` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`accountCodeCredit` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`debitAmount` double NOT NULL,
`creditAmount` double NOT NULL,
`voucherAmount` double NOT NULL,
`particular` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`day` int(11) NOT NULL,
`month` int(11) NOT NULL,
`year` int(11) NOT NULL,
`openingVoucher` int(11) NOT NULL DEFAULT 0,
`status` tinyint(1) NOT NULL DEFAULT 1,
`deleteStatus` tinyint(1) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `voucher_information`
--
INSERT INTO `voucher_information` (`id`, `shopId`, `branchId`, `voucherDate`, `voucherType`, `voucherSource`, `voucherNo`, `voucherUniqueId`, `paymentTo`, `mobileNo`, `checkPaymentType`, `receiverBankAccountName`, `chequeNo`, `chequeDate`, `accountCodeDebit`, `accountCodeCredit`, `debitAmount`, `creditAmount`, `voucherAmount`, `particular`, `day`, `month`, `year`, `openingVoucher`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619854130', 'bappy', '01454878796', NULL, NULL, NULL, NULL, '102010101', '202020101', 10000, 10000, 10000, 'test', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 07:28:50', NULL, NULL),
(2, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619864534', 'Bappy', '0145789568', NULL, NULL, NULL, NULL, '102010101', '202020101', 5000, 5000, 5000, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:22:14', NULL, NULL),
(3, 1, 0, '2021-05-01 00:00:00', 3, 0, 'BP-01-05/21', '1619864741', 'dsf', 'sdf', 1, NULL, '12', '2021-05-05 00:00:00', '102010201', '202020101', 18000, 18000, 18000, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:25:41', NULL, NULL),
(4, 1, 0, '2021-05-01 00:00:00', 2, 0, 'CR-01-05/21', '1619865620', 'ds', 'ds', NULL, NULL, NULL, NULL, '102010101', '102020101', 6000, 6000, 6000, 'subHead', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:40:20', NULL, NULL),
(5, 1, 0, '2021-05-01 00:00:00', 4, 0, 'BR-01-05/21', '1619865698', 'dsf', 'sdf', 1, NULL, 'sdf', '2021-05-06 00:00:00', '102010201', '102020101', 7000, 7000, 7000, 'dfsfd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:41:38', NULL, NULL),
(6, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866258', 'fd', 'df', NULL, NULL, NULL, NULL, '102010101', '20202010101', -1000, -1000, -1000, 'dsdds', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:50:58', NULL, NULL),
(7, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866378', 'ds', 'sd', NULL, NULL, NULL, NULL, '102010101', '20202010101', 1, 1, 1, 'sd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:52:58', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `voucher_information_reports`
--
CREATE TABLE `voucher_information_reports` (
`id` bigint(20) UNSIGNED NOT NULL,
`shopId` int(11) NOT NULL,
`branchId` int(11) NOT NULL,
`voucherDate` datetime NOT NULL,
`voucherType` int(11) NOT NULL,
`voucherSource` int(11) NOT NULL DEFAULT 0,
`voucherNo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`voucherUniqueId` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`paymentTo` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobileNo` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`checkPaymentType` int(11) DEFAULT NULL,
`receiverBankAccountName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`chequeNo` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`chequeDate` datetime DEFAULT NULL,
`accountsCode` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` int(11) NOT NULL,
`voucherAmount` double NOT NULL,
`randId` int(11) NOT NULL,
`particular` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`day` int(11) NOT NULL,
`month` int(11) NOT NULL,
`year` int(11) NOT NULL,
`openingVoucher` int(11) NOT NULL DEFAULT 0,
`status` tinyint(1) NOT NULL DEFAULT 1,
`deleteStatus` tinyint(1) DEFAULT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `voucher_information_reports`
--
INSERT INTO `voucher_information_reports` (`id`, `shopId`, `branchId`, `voucherDate`, `voucherType`, `voucherSource`, `voucherNo`, `voucherUniqueId`, `paymentTo`, `mobileNo`, `checkPaymentType`, `receiverBankAccountName`, `chequeNo`, `chequeDate`, `accountsCode`, `type`, `voucherAmount`, `randId`, `particular`, `day`, `month`, `year`, `openingVoucher`, `status`, `deleteStatus`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619854130', 'bappy', '01454878796', NULL, NULL, NULL, NULL, '102010101', 1, 10000, 0, 'test', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 07:28:50', NULL, NULL),
(2, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619854130', 'bappy', '01454878796', NULL, NULL, NULL, NULL, '202020101', 2, 10000, 0, 'test', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 07:28:50', NULL, NULL),
(3, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619864534', 'Bappy', '0145789568', NULL, NULL, NULL, NULL, '102010101', 1, 5000, 0, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:22:14', NULL, NULL),
(4, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619864534', 'Bappy', '0145789568', NULL, NULL, NULL, NULL, '202020101', 2, 5000, 0, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:22:14', NULL, NULL),
(5, 1, 0, '2021-05-01 00:00:00', 3, 0, 'BP-01-05/21', '1619864741', 'dsf', 'sdf', 1, NULL, '12', '2021-05-05 00:00:00', '102010201', 1, 18000, 0, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:25:42', NULL, NULL),
(6, 1, 0, '2021-05-01 00:00:00', 3, 0, 'BP-01-05/21', '1619864741', 'dsf', 'sdf', 1, NULL, '12', '2021-05-05 00:00:00', '202020101', 2, 18000, 0, 'This is for payment.', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:25:42', NULL, NULL),
(7, 1, 0, '2021-05-01 00:00:00', 2, 0, 'CR-01-05/21', '1619865620', 'ds', 'ds', NULL, NULL, NULL, NULL, '102010101', 1, 6000, 0, 'subHead', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:40:20', NULL, NULL),
(8, 1, 0, '2021-05-01 00:00:00', 2, 0, 'CR-01-05/21', '1619865620', 'ds', 'ds', NULL, NULL, NULL, NULL, '102020101', 2, 6000, 0, 'subHead', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:40:20', NULL, NULL),
(9, 1, 0, '2021-05-01 00:00:00', 4, 0, 'BR-01-05/21', '1619865698', 'dsf', 'sdf', 1, NULL, 'sdf', '2021-05-06 00:00:00', '102010201', 1, 7000, 0, 'dfsfd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:41:38', NULL, NULL),
(10, 1, 0, '2021-05-01 00:00:00', 4, 0, 'BR-01-05/21', '1619865698', 'dsf', 'sdf', 1, NULL, 'sdf', '2021-05-06 00:00:00', '102020101', 2, 7000, 0, 'dfsfd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:41:39', NULL, NULL),
(11, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866258', 'fd', 'df', NULL, NULL, NULL, NULL, '102010101', 1, -1000, 0, 'dsdds', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:50:59', NULL, NULL),
(12, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866258', 'fd', 'df', NULL, NULL, NULL, NULL, '20202010101', 2, -1000, 0, 'dsdds', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:50:59', NULL, NULL),
(13, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866378', 'ds', 'sd', NULL, NULL, NULL, NULL, '102010101', 1, 1, 0, 'sd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:52:58', NULL, NULL),
(14, 1, 0, '2021-05-01 00:00:00', 1, 0, 'CP-01-05/21', '1619866378', 'ds', 'sd', NULL, NULL, NULL, NULL, '20202010101', 2, 1, 0, 'sd', 1, 5, 2021, 0, 1, NULL, 1, NULL, NULL, '2021-05-01 10:52:58', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `voucher_types`
--
CREATE TABLE `voucher_types` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`shortName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`createBy` int(11) NOT NULL,
`updateBy` int(11) DEFAULT NULL,
`deleteBy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`delete_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `voucher_types`
--
INSERT INTO `voucher_types` (`id`, `name`, `shortName`, `createBy`, `updateBy`, `deleteBy`, `created_at`, `updated_at`, `delete_at`) VALUES
(1, 'Cash Payment Voucher', 'CP', 1, NULL, NULL, '2021-04-29 14:47:48', NULL, NULL),
(2, 'Cash Receipt Voucher', 'CR', 1, NULL, NULL, '2021-04-29 14:49:31', NULL, NULL),
(3, 'Bank Payment Voucher', 'BP', 1, NULL, NULL, '2021-04-29 14:49:31', NULL, NULL),
(4, 'Bank Receipt Voucher', 'BR', 1, NULL, NULL, '2021-04-29 14:49:31', NULL, NULL),
(5, 'Contra Voucher', 'CV', 1, NULL, NULL, '2021-04-29 14:49:31', NULL, NULL),
(6, 'Journal Voucher', 'JV', 1, NULL, NULL, '2021-04-29 14:49:31', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `wards`
--
CREATE TABLE `wards` (
`id` bigint(20) UNSIGNED NOT NULL,
`union_id` int(11) NOT NULL,
`ward_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`ward_bn_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `wards`
--
INSERT INTO `wards` (`id`, `union_id`, `ward_name`, `ward_bn_name`, `created_at`, `updated_at`) VALUES
(1, 1, 'ward no 1', '', NULL, NULL),
(2, 2, 'ward no 2', '', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `website_infos`
--
CREATE TABLE `website_infos` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`link` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `website_infos`
--
INSERT INTO `website_infos` (`id`, `name`, `link`, `description`, `created_at`, `updated_at`) VALUES
(1, 'fgbfg', 'vbvcb', 'cvbc', '2021-03-06 04:07:45', '2021-03-06 04:07:45'),
(2, 'sdfsdf', 'sdfsdf', 'sdfsdfd', '2021-03-06 04:08:51', '2021-03-06 04:08:51'),
(3, 'sdfsdf', 'sdfsdf', 'sdfsdfd', '2021-03-06 04:09:14', '2021-03-06 04:09:14'),
(4, 'sdf', 'sdf', 'sdf', '2021-03-06 04:09:59', '2021-03-06 04:09:59');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `account_groups`
--
ALTER TABLE `account_groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `account_setups`
--
ALTER TABLE `account_setups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `account_setup_head_lists`
--
ALTER TABLE `account_setup_head_lists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `account_setup_placement_lists`
--
ALTER TABLE `account_setup_placement_lists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `add_product_supplier_entries`
--
ALTER TABLE `add_product_supplier_entries`
ADD PRIMARY KEY (`productSupplierId`);
--
-- Indexes for table `adminlicence_types`
--
ALTER TABLE `adminlicence_types`
ADD PRIMARY KEY (`licenceTypesId`);
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `admin_bussiness_types`
--
ALTER TABLE `admin_bussiness_types`
ADD PRIMARY KEY (`bussinessTypeId`);
--
-- Indexes for table `admin_entries`
--
ALTER TABLE `admin_entries`
ADD PRIMARY KEY (`adminId`),
ADD UNIQUE KEY `admin_entries_email_unique` (`email`);
--
-- Indexes for table `admin_grades`
--
ALTER TABLE `admin_grades`
ADD PRIMARY KEY (`gradeId`);
--
-- Indexes for table `admin_holiday_setups`
--
ALTER TABLE `admin_holiday_setups`
ADD PRIMARY KEY (`holidaySetupId`);
--
-- Indexes for table `admin_holiday_types`
--
ALTER TABLE `admin_holiday_types`
ADD PRIMARY KEY (`holidayTypeId`);
--
-- Indexes for table `admin_menus`
--
ALTER TABLE `admin_menus`
ADD PRIMARY KEY (`adminMenuId`);
--
-- Indexes for table `admin_menu_permissions`
--
ALTER TABLE `admin_menu_permissions`
ADD PRIMARY KEY (`adminMenuPermissionId`);
--
-- Indexes for table `admin_menu_title_name1s`
--
ALTER TABLE `admin_menu_title_name1s`
ADD PRIMARY KEY (`adminMenuTitleId`);
--
-- Indexes for table `admin_menu_title_names`
--
ALTER TABLE `admin_menu_title_names`
ADD PRIMARY KEY (`adminMenuTitleId`);
--
-- Indexes for table `admin_meta_key_descriptions`
--
ALTER TABLE `admin_meta_key_descriptions`
ADD PRIMARY KEY (`metaKeyId`);
--
-- Indexes for table `admin_name_of_degrees`
--
ALTER TABLE `admin_name_of_degrees`
ADD PRIMARY KEY (`nameOfDegreeId`);
--
-- Indexes for table `admin_name_of_institutes`
--
ALTER TABLE `admin_name_of_institutes`
ADD PRIMARY KEY (`nameOfInstituteId`);
--
-- Indexes for table `admin_purchase_types`
--
ALTER TABLE `admin_purchase_types`
ADD PRIMARY KEY (`purchaseTypeId`);
--
-- Indexes for table `admin_setups`
--
ALTER TABLE `admin_setups`
ADD PRIMARY KEY (`adminSetupId`);
--
-- Indexes for table `admin_skill_grades`
--
ALTER TABLE `admin_skill_grades`
ADD PRIMARY KEY (`skillGradeId`);
--
-- Indexes for table `admin_sub_menus`
--
ALTER TABLE `admin_sub_menus`
ADD PRIMARY KEY (`adminSubMenuId`);
--
-- Indexes for table `admin_types`
--
ALTER TABLE `admin_types`
ADD PRIMARY KEY (`adminTypeId`);
--
-- Indexes for table `asset_brand_entries`
--
ALTER TABLE `asset_brand_entries`
ADD PRIMARY KEY (`assetBrandEntryId`);
--
-- Indexes for table `asset_code_entries`
--
ALTER TABLE `asset_code_entries`
ADD PRIMARY KEY (`assetCodeEntryId`);
--
-- Indexes for table `asset_statuses`
--
ALTER TABLE `asset_statuses`
ADD PRIMARY KEY (`assetStatusId`);
--
-- Indexes for table `bank_entries`
--
ALTER TABLE `bank_entries`
ADD PRIMARY KEY (`bankEntryId`);
--
-- Indexes for table `bank_type_entries`
--
ALTER TABLE `bank_type_entries`
ADD PRIMARY KEY (`bankTypeEntryId`);
--
-- Indexes for table `basic_infos`
--
ALTER TABLE `basic_infos`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `branch_information`
--
ALTER TABLE `branch_information`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `brand_entries`
--
ALTER TABLE `brand_entries`
ADD PRIMARY KEY (`brandId`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`categoryId`);
--
-- Indexes for table `chart_of_accounts`
--
ALTER TABLE `chart_of_accounts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `chart_of_account_group_types`
--
ALTER TABLE `chart_of_account_group_types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `commission_type_entries`
--
ALTER TABLE `commission_type_entries`
ADD PRIMARY KEY (`commissionTypeEntryId`);
--
-- Indexes for table `company_information`
--
ALTER TABLE `company_information`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `company_logos`
--
ALTER TABLE `company_logos`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `currencies`
--
ALTER TABLE `currencies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `districts`
--
ALTER TABLE `districts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `divisions`
--
ALTER TABLE `divisions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `employee_attendances`
--
ALTER TABLE `employee_attendances`
ADD PRIMARY KEY (`employeeAttendanceId`);
--
-- Indexes for table `employee_banking_entries`
--
ALTER TABLE `employee_banking_entries`
ADD PRIMARY KEY (`employeeBankingId`);
--
-- Indexes for table `employee_education_entries`
--
ALTER TABLE `employee_education_entries`
ADD PRIMARY KEY (`employeeEducationId`);
--
-- Indexes for table `employee_leave_entries`
--
ALTER TABLE `employee_leave_entries`
ADD PRIMARY KEY (`employeeLeaveId`);
--
-- Indexes for table `employee_professional_entries`
--
ALTER TABLE `employee_professional_entries`
ADD PRIMARY KEY (`employeeProfessionalId`);
--
-- Indexes for table `employee_skill_entries`
--
ALTER TABLE `employee_skill_entries`
ADD PRIMARY KEY (`employeeSkillId`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `grade_entries`
--
ALTER TABLE `grade_entries`
ADD PRIMARY KEY (`gradeEntryId`);
--
-- Indexes for table `invoice_for_type_lists`
--
ALTER TABLE `invoice_for_type_lists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `invoice_setups`
--
ALTER TABLE `invoice_setups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `invoice_setup_details`
--
ALTER TABLE `invoice_setup_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `invoice_type_lists`
--
ALTER TABLE `invoice_type_lists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `job_department_entries`
--
ALTER TABLE `job_department_entries`
ADD PRIMARY KEY (`jobDepartmentEntryId`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `product_brand_entries`
--
ALTER TABLE `product_brand_entries`
ADD PRIMARY KEY (`productBrandEntryId`);
--
-- Indexes for table `product_categories`
--
ALTER TABLE `product_categories`
ADD PRIMARY KEY (`poductCategoryId`);
--
-- Indexes for table `product_names`
--
ALTER TABLE `product_names`
ADD PRIMARY KEY (`productNameId`);
--
-- Indexes for table `product_price_setup_details`
--
ALTER TABLE `product_price_setup_details`
ADD PRIMARY KEY (`productPriceSetupid`);
--
-- Indexes for table `purchase_invoices`
--
ALTER TABLE `purchase_invoices`
ADD PRIMARY KEY (`purchaseInvoiceId`);
--
-- Indexes for table `purchase_product_details`
--
ALTER TABLE `purchase_product_details`
ADD PRIMARY KEY (`purchaseProductDetailsId`);
--
-- Indexes for table `purchase_product_entries`
--
ALTER TABLE `purchase_product_entries`
ADD PRIMARY KEY (`purchaseProductId`);
--
-- Indexes for table `purchase_product_more_fields`
--
ALTER TABLE `purchase_product_more_fields`
ADD PRIMARY KEY (`purchaseProductMoreFieldId`);
--
-- Indexes for table `purchase_product_total_prices`
--
ALTER TABLE `purchase_product_total_prices`
ADD PRIMARY KEY (`purchaseProductTotalPriceId`);
--
-- Indexes for table `purchase_product_total_quantities`
--
ALTER TABLE `purchase_product_total_quantities`
ADD PRIMARY KEY (`productTotalQuantityId`);
--
-- Indexes for table `purchase_types`
--
ALTER TABLE `purchase_types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `qr_code_setups`
--
ALTER TABLE `qr_code_setups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `religiouses`
--
ALTER TABLE `religiouses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `salary_grade_setups`
--
ALTER TABLE `salary_grade_setups`
ADD PRIMARY KEY (`salaryGradeSetupId`);
--
-- Indexes for table `sales_customer_entries`
--
ALTER TABLE `sales_customer_entries`
ADD PRIMARY KEY (`salesCustomerEntryId`);
--
-- Indexes for table `sales_invoices`
--
ALTER TABLE `sales_invoices`
ADD PRIMARY KEY (`salesInvoiceId`);
--
-- Indexes for table `sales_product_discount_price_entries`
--
ALTER TABLE `sales_product_discount_price_entries`
ADD PRIMARY KEY (`salesProductDiscountPriceId`);
--
-- Indexes for table `sales_product_entries`
--
ALTER TABLE `sales_product_entries`
ADD PRIMARY KEY (`salesProductEntryId`);
--
-- Indexes for table `sales_product_price_entries`
--
ALTER TABLE `sales_product_price_entries`
ADD PRIMARY KEY (`salesProductPriceEntryId`);
--
-- Indexes for table `shops`
--
ALTER TABLE `shops`
ADD PRIMARY KEY (`shopInfoId`);
--
-- Indexes for table `shop_account_intormations`
--
ALTER TABLE `shop_account_intormations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `shop_address_locations`
--
ALTER TABLE `shop_address_locations`
ADD PRIMARY KEY (`shopALId`);
--
-- Indexes for table `shop_add_asset_supplier_entries`
--
ALTER TABLE `shop_add_asset_supplier_entries`
ADD PRIMARY KEY (`assetSupplierId`);
--
-- Indexes for table `shop_add_bank_entries`
--
ALTER TABLE `shop_add_bank_entries`
ADD PRIMARY KEY (`bankId`);
--
-- Indexes for table `shop_add_income_types`
--
ALTER TABLE `shop_add_income_types`
ADD PRIMARY KEY (`shopIncomeTypeId`);
--
-- Indexes for table `shop_asset_categories`
--
ALTER TABLE `shop_asset_categories`
ADD PRIMARY KEY (`assetCategoryId`);
--
-- Indexes for table `shop_asset_entries`
--
ALTER TABLE `shop_asset_entries`
ADD PRIMARY KEY (`shopAssetEntryId`);
--
-- Indexes for table `shop_billing_amounts`
--
ALTER TABLE `shop_billing_amounts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `shop_billing_grace_information`
--
ALTER TABLE `shop_billing_grace_information`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `shop_contact_person_information`
--
ALTER TABLE `shop_contact_person_information`
ADD PRIMARY KEY (`shopCPInfoId`);
--
-- Indexes for table `shop_customer_type_entries`
--
ALTER TABLE `shop_customer_type_entries`
ADD PRIMARY KEY (`shopCustomerTypeEntryId`);
--
-- Indexes for table `shop_employee_entries`
--
ALTER TABLE `shop_employee_entries`
ADD PRIMARY KEY (`shopEmployeeEntryId`);
--
-- Indexes for table `shop_employee_login_time_entries`
--
ALTER TABLE `shop_employee_login_time_entries`
ADD PRIMARY KEY (`employeeLoginTimeId`);
--
-- Indexes for table `shop_employee_types`
--
ALTER TABLE `shop_employee_types`
ADD PRIMARY KEY (`shopEmployeeTypeId`);
--
-- Indexes for table `shop_expence_type_entries`
--
ALTER TABLE `shop_expence_type_entries`
ADD PRIMARY KEY (`shopExpenceTypeId`);
--
-- Indexes for table `shop_income_type_entries`
--
ALTER TABLE `shop_income_type_entries`
ADD PRIMARY KEY (`shopIncomeTypeId`);
--
-- Indexes for table `shop_information`
--
ALTER TABLE `shop_information`
ADD PRIMARY KEY (`shopInfoId`);
--
-- Indexes for table `shop_loan_entries`
--
ALTER TABLE `shop_loan_entries`
ADD PRIMARY KEY (`loanEntryId`);
--
-- Indexes for table `shop_loan_provider_entries`
--
ALTER TABLE `shop_loan_provider_entries`
ADD PRIMARY KEY (`loanProviderId`);
--
-- Indexes for table `shop_menu_permissions`
--
ALTER TABLE `shop_menu_permissions`
ADD PRIMARY KEY (`shopMenuPermissionId`);
--
-- Indexes for table `shop_owner_information`
--
ALTER TABLE `shop_owner_information`
ADD PRIMARY KEY (`shopOwnerInfoId`);
--
-- Indexes for table `shop_payment_statuses`
--
ALTER TABLE `shop_payment_statuses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `shop_representative_information`
--
ALTER TABLE `shop_representative_information`
ADD PRIMARY KEY (`shopRepInfoId`);
--
-- Indexes for table `shop_statuses`
--
ALTER TABLE `shop_statuses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `shop_type_entries`
--
ALTER TABLE `shop_type_entries`
ADD PRIMARY KEY (`shopTypeEntryId`);
--
-- Indexes for table `start_salary_setups`
--
ALTER TABLE `start_salary_setups`
ADD PRIMARY KEY (`salarySetupId`);
--
-- Indexes for table `unions`
--
ALTER TABLE `unions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `unite_entries`
--
ALTER TABLE `unite_entries`
ADD PRIMARY KEY (`uniteEntryId`);
--
-- Indexes for table `upazilas`
--
ALTER TABLE `upazilas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Indexes for table `vendors`
--
ALTER TABLE `vendors`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `voucher_information`
--
ALTER TABLE `voucher_information`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `voucher_information_reports`
--
ALTER TABLE `voucher_information_reports`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `voucher_types`
--
ALTER TABLE `voucher_types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `wards`
--
ALTER TABLE `wards`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `website_infos`
--
ALTER TABLE `website_infos`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `account_groups`
--
ALTER TABLE `account_groups`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `account_setups`
--
ALTER TABLE `account_setups`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `account_setup_head_lists`
--
ALTER TABLE `account_setup_head_lists`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93;
--
-- AUTO_INCREMENT for table `account_setup_placement_lists`
--
ALTER TABLE `account_setup_placement_lists`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `add_product_supplier_entries`
--
ALTER TABLE `add_product_supplier_entries`
MODIFY `productSupplierId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `adminlicence_types`
--
ALTER TABLE `adminlicence_types`
MODIFY `licenceTypesId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admin_bussiness_types`
--
ALTER TABLE `admin_bussiness_types`
MODIFY `bussinessTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `admin_entries`
--
ALTER TABLE `admin_entries`
MODIFY `adminId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `admin_grades`
--
ALTER TABLE `admin_grades`
MODIFY `gradeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admin_holiday_setups`
--
ALTER TABLE `admin_holiday_setups`
MODIFY `holidaySetupId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `admin_holiday_types`
--
ALTER TABLE `admin_holiday_types`
MODIFY `holidayTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admin_menus`
--
ALTER TABLE `admin_menus`
MODIFY `adminMenuId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `admin_menu_permissions`
--
ALTER TABLE `admin_menu_permissions`
MODIFY `adminMenuPermissionId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `admin_menu_title_name1s`
--
ALTER TABLE `admin_menu_title_name1s`
MODIFY `adminMenuTitleId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admin_menu_title_names`
--
ALTER TABLE `admin_menu_title_names`
MODIFY `adminMenuTitleId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `admin_meta_key_descriptions`
--
ALTER TABLE `admin_meta_key_descriptions`
MODIFY `metaKeyId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `admin_name_of_degrees`
--
ALTER TABLE `admin_name_of_degrees`
MODIFY `nameOfDegreeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admin_name_of_institutes`
--
ALTER TABLE `admin_name_of_institutes`
MODIFY `nameOfInstituteId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `admin_purchase_types`
--
ALTER TABLE `admin_purchase_types`
MODIFY `purchaseTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `admin_setups`
--
ALTER TABLE `admin_setups`
MODIFY `adminSetupId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `admin_skill_grades`
--
ALTER TABLE `admin_skill_grades`
MODIFY `skillGradeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `admin_sub_menus`
--
ALTER TABLE `admin_sub_menus`
MODIFY `adminSubMenuId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=259;
--
-- AUTO_INCREMENT for table `admin_types`
--
ALTER TABLE `admin_types`
MODIFY `adminTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `asset_brand_entries`
--
ALTER TABLE `asset_brand_entries`
MODIFY `assetBrandEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `asset_code_entries`
--
ALTER TABLE `asset_code_entries`
MODIFY `assetCodeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `asset_statuses`
--
ALTER TABLE `asset_statuses`
MODIFY `assetStatusId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bank_entries`
--
ALTER TABLE `bank_entries`
MODIFY `bankEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `bank_type_entries`
--
ALTER TABLE `bank_type_entries`
MODIFY `bankTypeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `basic_infos`
--
ALTER TABLE `basic_infos`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `branch_information`
--
ALTER TABLE `branch_information`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `brand_entries`
--
ALTER TABLE `brand_entries`
MODIFY `brandId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `categoryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `chart_of_accounts`
--
ALTER TABLE `chart_of_accounts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `chart_of_account_group_types`
--
ALTER TABLE `chart_of_account_group_types`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `commission_type_entries`
--
ALTER TABLE `commission_type_entries`
MODIFY `commissionTypeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `company_information`
--
ALTER TABLE `company_information`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `company_logos`
--
ALTER TABLE `company_logos`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=240;
--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=268;
--
-- AUTO_INCREMENT for table `districts`
--
ALTER TABLE `districts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=65;
--
-- AUTO_INCREMENT for table `divisions`
--
ALTER TABLE `divisions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `employee_attendances`
--
ALTER TABLE `employee_attendances`
MODIFY `employeeAttendanceId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `employee_banking_entries`
--
ALTER TABLE `employee_banking_entries`
MODIFY `employeeBankingId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `employee_education_entries`
--
ALTER TABLE `employee_education_entries`
MODIFY `employeeEducationId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `employee_leave_entries`
--
ALTER TABLE `employee_leave_entries`
MODIFY `employeeLeaveId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `employee_professional_entries`
--
ALTER TABLE `employee_professional_entries`
MODIFY `employeeProfessionalId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `employee_skill_entries`
--
ALTER TABLE `employee_skill_entries`
MODIFY `employeeSkillId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `grade_entries`
--
ALTER TABLE `grade_entries`
MODIFY `gradeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `invoice_for_type_lists`
--
ALTER TABLE `invoice_for_type_lists`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `invoice_setups`
--
ALTER TABLE `invoice_setups`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `invoice_setup_details`
--
ALTER TABLE `invoice_setup_details`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `invoice_type_lists`
--
ALTER TABLE `invoice_type_lists`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `job_department_entries`
--
ALTER TABLE `job_department_entries`
MODIFY `jobDepartmentEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=329;
--
-- AUTO_INCREMENT for table `product_brand_entries`
--
ALTER TABLE `product_brand_entries`
MODIFY `productBrandEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `product_categories`
--
ALTER TABLE `product_categories`
MODIFY `poductCategoryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `product_names`
--
ALTER TABLE `product_names`
MODIFY `productNameId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `product_price_setup_details`
--
ALTER TABLE `product_price_setup_details`
MODIFY `productPriceSetupid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `purchase_invoices`
--
ALTER TABLE `purchase_invoices`
MODIFY `purchaseInvoiceId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `purchase_product_details`
--
ALTER TABLE `purchase_product_details`
MODIFY `purchaseProductDetailsId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `purchase_product_entries`
--
ALTER TABLE `purchase_product_entries`
MODIFY `purchaseProductId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `purchase_product_more_fields`
--
ALTER TABLE `purchase_product_more_fields`
MODIFY `purchaseProductMoreFieldId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `purchase_product_total_prices`
--
ALTER TABLE `purchase_product_total_prices`
MODIFY `purchaseProductTotalPriceId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `purchase_product_total_quantities`
--
ALTER TABLE `purchase_product_total_quantities`
MODIFY `productTotalQuantityId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `purchase_types`
--
ALTER TABLE `purchase_types`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `qr_code_setups`
--
ALTER TABLE `qr_code_setups`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `religiouses`
--
ALTER TABLE `religiouses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `salary_grade_setups`
--
ALTER TABLE `salary_grade_setups`
MODIFY `salaryGradeSetupId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sales_customer_entries`
--
ALTER TABLE `sales_customer_entries`
MODIFY `salesCustomerEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `sales_invoices`
--
ALTER TABLE `sales_invoices`
MODIFY `salesInvoiceId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `sales_product_discount_price_entries`
--
ALTER TABLE `sales_product_discount_price_entries`
MODIFY `salesProductDiscountPriceId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sales_product_entries`
--
ALTER TABLE `sales_product_entries`
MODIFY `salesProductEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `sales_product_price_entries`
--
ALTER TABLE `sales_product_price_entries`
MODIFY `salesProductPriceEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shops`
--
ALTER TABLE `shops`
MODIFY `shopInfoId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shop_account_intormations`
--
ALTER TABLE `shop_account_intormations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `shop_address_locations`
--
ALTER TABLE `shop_address_locations`
MODIFY `shopALId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `shop_add_asset_supplier_entries`
--
ALTER TABLE `shop_add_asset_supplier_entries`
MODIFY `assetSupplierId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `shop_add_bank_entries`
--
ALTER TABLE `shop_add_bank_entries`
MODIFY `bankId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `shop_add_income_types`
--
ALTER TABLE `shop_add_income_types`
MODIFY `shopIncomeTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shop_asset_categories`
--
ALTER TABLE `shop_asset_categories`
MODIFY `assetCategoryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `shop_asset_entries`
--
ALTER TABLE `shop_asset_entries`
MODIFY `shopAssetEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shop_billing_amounts`
--
ALTER TABLE `shop_billing_amounts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `shop_billing_grace_information`
--
ALTER TABLE `shop_billing_grace_information`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `shop_contact_person_information`
--
ALTER TABLE `shop_contact_person_information`
MODIFY `shopCPInfoId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `shop_customer_type_entries`
--
ALTER TABLE `shop_customer_type_entries`
MODIFY `shopCustomerTypeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shop_employee_entries`
--
ALTER TABLE `shop_employee_entries`
MODIFY `shopEmployeeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `shop_employee_login_time_entries`
--
ALTER TABLE `shop_employee_login_time_entries`
MODIFY `employeeLoginTimeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shop_employee_types`
--
ALTER TABLE `shop_employee_types`
MODIFY `shopEmployeeTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `shop_expence_type_entries`
--
ALTER TABLE `shop_expence_type_entries`
MODIFY `shopExpenceTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `shop_income_type_entries`
--
ALTER TABLE `shop_income_type_entries`
MODIFY `shopIncomeTypeId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shop_information`
--
ALTER TABLE `shop_information`
MODIFY `shopInfoId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `shop_loan_entries`
--
ALTER TABLE `shop_loan_entries`
MODIFY `loanEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shop_loan_provider_entries`
--
ALTER TABLE `shop_loan_provider_entries`
MODIFY `loanProviderId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `shop_menu_permissions`
--
ALTER TABLE `shop_menu_permissions`
MODIFY `shopMenuPermissionId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `shop_owner_information`
--
ALTER TABLE `shop_owner_information`
MODIFY `shopOwnerInfoId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `shop_payment_statuses`
--
ALTER TABLE `shop_payment_statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `shop_representative_information`
--
ALTER TABLE `shop_representative_information`
MODIFY `shopRepInfoId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `shop_statuses`
--
ALTER TABLE `shop_statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `shop_type_entries`
--
ALTER TABLE `shop_type_entries`
MODIFY `shopTypeEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `start_salary_setups`
--
ALTER TABLE `start_salary_setups`
MODIFY `salarySetupId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
--
-- AUTO_INCREMENT for table `unions`
--
ALTER TABLE `unions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `unite_entries`
--
ALTER TABLE `unite_entries`
MODIFY `uniteEntryId` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `upazilas`
--
ALTER TABLE `upazilas`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=595;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `vendors`
--
ALTER TABLE `vendors`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `voucher_information`
--
ALTER TABLE `voucher_information`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `voucher_information_reports`
--
ALTER TABLE `voucher_information_reports`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `voucher_types`
--
ALTER TABLE `voucher_types`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `wards`
--
ALTER TABLE `wards`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `website_infos`
--
ALTER TABLE `website_infos`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;
| 53.763004 | 732 | 0.647628 |
f4024c46abf53761e35d2c99c8653876e2cbedd3 | 5,694 | cs | C# | src/ThoughtWorks.ConferenceTrackManager.Tests/Models/ConferenceTests.cs | EvanPalmer/TWConferenceTrackManager | f7388e4dcc88823702104a4f236a24575232a0e7 | [
"MIT"
] | null | null | null | src/ThoughtWorks.ConferenceTrackManager.Tests/Models/ConferenceTests.cs | EvanPalmer/TWConferenceTrackManager | f7388e4dcc88823702104a4f236a24575232a0e7 | [
"MIT"
] | null | null | null | src/ThoughtWorks.ConferenceTrackManager.Tests/Models/ConferenceTests.cs | EvanPalmer/TWConferenceTrackManager | f7388e4dcc88823702104a4f236a24575232a0e7 | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using Xunit;
using Moq;
using ThoughtWorks.ConferenceTrackManager.App;
using ThoughtWorks.ConferenceTrackManager.Models;
using ThoughtWorks.ConferenceTrackManager.Access;
namespace ThoughtWorks.ConferenceTrackManager.Tests.Models
{
public class ConferenceTests
{
[Fact]
public void Print_BuildsSessions()
{
// Arrange
List<ITalk> talks = new List<ITalk>();
var sessionCreator = new Mock<IConferenceSessionCreator>();
sessionCreator.Setup(sb => sb.CreateSessionsOrEmptyListFromConfig()).Returns(new List<IConferenceSession>());
var talkDistributor = new Mock<ITalkDistributor>();
talkDistributor.Setup(sb => sb.DistributeTalksAcrossSessions(It.IsAny<IList<IConferenceSession>>(), It.IsAny<IList<ITalk>>())).Returns(true);
var outputWriter = new Mock<IOutputWriter>();
var conference = new Conference(talks, sessionCreator.Object, outputWriter.Object, talkDistributor.Object);
// Act
conference.Print();
// Assert
sessionCreator.Verify(sb => sb.CreateSessionsOrEmptyListFromConfig(), Times.Once());
}
[Fact]
public void Print_PopulatesSessions()
{
// Arrange
List<ITalk> talks = new List<ITalk>();
var sessionCreator = new Mock<IConferenceSessionCreator>();
var sessions = new List<IConferenceSession> { new Mock<IConferenceSession>().Object, new Mock<IConferenceSession>().Object };
sessionCreator.Setup(sb => sb.CreateSessionsOrEmptyListFromConfig()).Returns(sessions);
var talkDistributor = new Mock<ITalkDistributor>();
talkDistributor.Setup(sb => sb.DistributeTalksAcrossSessions(It.IsAny<IList<IConferenceSession>>(), It.IsAny<IList<ITalk>>())).Returns(true);
var outputWriter = new Mock<IOutputWriter>();
var conference = new Conference(talks, sessionCreator.Object, outputWriter.Object, talkDistributor.Object);
// Act
conference.Print();
// Assert
talkDistributor.Verify(sb => sb.DistributeTalksAcrossSessions(sessions, It.IsAny<IList<ITalk>>()), Times.Once());
}
[Fact]
public void Print_PrintsErrorMessage_WhenPopulationFails()
{
// Arrange
List<ITalk> talks = new List<ITalk>();
var sessionCreator = new Mock<IConferenceSessionCreator>();
var sessions = new List<IConferenceSession> { new Mock<IConferenceSession>().Object, new Mock<IConferenceSession>().Object };
sessionCreator.Setup(sb => sb.CreateSessionsOrEmptyListFromConfig()).Returns(sessions);
var talkDistributor = new Mock<ITalkDistributor>();
talkDistributor.Setup(sb => sb.DistributeTalksAcrossSessions(It.IsAny<IList<IConferenceSession>>(), It.IsAny<IList<ITalk>>())).Returns(false);
var outputWriter = new Mock<IOutputWriter>();
var conference = new Conference(talks, sessionCreator.Object, outputWriter.Object, talkDistributor.Object);
// Act
conference.Print();
// Assert
outputWriter.Verify(o => o.WriteLine("Didn't add at least one of the talks!\nHere's the best I could do:\n"), Times.Once());
}
[Fact]
public void Print_DoesNotPrintErrorMessage_WhenPopulationSucceeds()
{
// Arrange
List<ITalk> talks = new List<ITalk>();
var sessionCreator = new Mock<IConferenceSessionCreator>();
var sessions = new List<IConferenceSession> { new Mock<IConferenceSession>().Object, new Mock<IConferenceSession>().Object };
sessionCreator.Setup(sb => sb.CreateSessionsOrEmptyListFromConfig()).Returns(sessions);
var talkDistributor = new Mock<ITalkDistributor>();
talkDistributor.Setup(sb => sb.DistributeTalksAcrossSessions(It.IsAny<IList<IConferenceSession>>(), It.IsAny<IList<ITalk>>())).Returns(true);
var outputWriter = new Mock<IOutputWriter>();
var conference = new Conference(talks, sessionCreator.Object, outputWriter.Object, talkDistributor.Object);
// Act
conference.Print();
// Assert
outputWriter.Verify(o => o.WriteLine("Didn't add at least one of the talks!\nHere's the best I could do:\n"), Times.Never());
}
[Fact]
public void Print_PrintsEachSession()
{
// Arrange
List<ITalk> talks = new List<ITalk>();
var sessionCreator = new Mock<IConferenceSessionCreator>();
var sessions = new List<IConferenceSession>();
var firstSession = new Mock<IConferenceSession>();
sessions.Add(firstSession.Object);
var lastSession = new Mock<IConferenceSession>();
sessions.Add(lastSession.Object);
sessionCreator.Setup(sb => sb.CreateSessionsOrEmptyListFromConfig()).Returns(sessions);
var talkDistributor = new Mock<ITalkDistributor>();
talkDistributor.Setup(sb => sb.DistributeTalksAcrossSessions(It.IsAny<IList<IConferenceSession>>(), It.IsAny<IList<ITalk>>())).Returns(true);
var outputWriter = new Mock<IOutputWriter>();
var conference = new Conference(talks, sessionCreator.Object, outputWriter.Object, talkDistributor.Object);
// Act
conference.Print();
// Assert
firstSession.Verify(s => s.Print(), Times.Once());
lastSession.Verify(s => s.Print(), Times.Once());
}
}
}
| 48.666667 | 154 | 0.642079 |
70e6ef941851b278c516a85d624d38e0a9db77ed | 39 | sql | SQL | project/template/sql/Score/delete.sql | danmaq/dIR | 4879f66ff40750c88ed716910ffd87e097529df6 | [
"MIT"
] | null | null | null | project/template/sql/Score/delete.sql | danmaq/dIR | 4879f66ff40750c88ed716910ffd87e097529df6 | [
"MIT"
] | null | null | null | project/template/sql/Score/delete.sql | danmaq/dIR | 4879f66ff40750c88ed716910ffd87e097529df6 | [
"MIT"
] | null | null | null | DELETE FROM DIR_SCORE
WHERE ID = ?;
| 13 | 22 | 0.666667 |
5899f96b57e3e05a3a36a9ee5c62168df4a7d90f | 463 | rb | Ruby | lib/b001e/extensions/core/false_class_extensions.rb | JoergWMittag/b001e | 3d13f9d78faad7a2cec19236b133d67944821e88 | [
"MIT"
] | 3 | 2016-05-08T21:08:28.000Z | 2019-10-10T12:21:59.000Z | lib/b001e/extensions/core/false_class_extensions.rb | JoergWMittag/b001e | 3d13f9d78faad7a2cec19236b133d67944821e88 | [
"MIT"
] | null | null | null | lib/b001e/extensions/core/false_class_extensions.rb | JoergWMittag/b001e | 3d13f9d78faad7a2cec19236b133d67944821e88 | [
"MIT"
] | null | null | null | # vim: filetype=ruby, fileencoding=UTF-8, tabsize=2, shiftwidth=2
#Copyright (c) 2009 Jörg W Mittag <[email protected]>
#This code is licensed under the terms of the MIT License (see LICENSE.txt)
require 'b001e/falsiness'
module B001e
module Extensions
module Core
module FalseClassExtensions
include B001e::Falsiness
end
end
end
end
class FalseClass
include B001e::Extensions::Core::FalseClassExtensions
end
| 22.047619 | 75 | 0.74514 |
548f929402d3f7a29b3d8a895c3fe4dc114e53e2 | 22,514 | css | CSS | public/assets/css/style-new-home.min.css | tranthanhtuan269/chothuocso | 12327b8c07bbcc5ca6aaeabc66093308b2cd5759 | [
"MIT"
] | null | null | null | public/assets/css/style-new-home.min.css | tranthanhtuan269/chothuocso | 12327b8c07bbcc5ca6aaeabc66093308b2cd5759 | [
"MIT"
] | null | null | null | public/assets/css/style-new-home.min.css | tranthanhtuan269/chothuocso | 12327b8c07bbcc5ca6aaeabc66093308b2cd5759 | [
"MIT"
] | null | null | null | header {
border-bottom: 3px solid #3f7fba
}
header .logo {
overflow: hidden;
padding: 23px
}
header .logo img {
width: 135px;
height: 44px
}
header .header-info {
padding-top: 40px;
padding-bottom: 26px;
text-align: right
}
header .header-info .item-header {
margin-right: 25px;
display: inline-block
}
header .header-info .item-header a {
font-size: 15px;
font-weight: 600;
color: #000
}
header .header-info .item-header a .fa {
color: #00a451;
padding-right: 5px
}
header .header-info .item-header a:hover {
color: #3f7fba;
text-decoration: none
}
header .header-info .item-header a:hover .fa {
color: #3f7fba
}
header .top-menu-mobile {
display: none;
background: #5080bf;
padding-top: 20px;
padding-bottom: 20px
}
header .top-menu-mobile .right {
color: #fff;
text-align: right
}
header .top-menu-mobile .right a:hover {
text-decoration: none
}
header .top-menu-mobile .right .fa {
font-size: 24px;
color: #fff
}
.header-homepage {
background: url(../images/bg-header.jpg) no-repeat 50% fixed;
background-size: cover;
height: 595px;
position: relative;
font-family: Roboto, sans-serif
}
.header-homepage .top-menu {
background: #4160a1;
border-bottom: 1px solid #ccc;
font-size: 16px
}
.header-homepage .top-menu .left-menu .logo {
background: #254893;
text-align: center;
overflow: hidden;
padding: 20px 30px;
position: absolute;
box-shadow: #ccc
}
.header-homepage .top-menu .left-menu .logo img {
width: 110px;
height: 40px
}
.header-homepage .top-menu .left-menu .homepage-menu {
margin: 0
}
.header-homepage .top-menu .left-menu .homepage-menu li {
display: inline-block;
padding: 21px 0;
margin: 0 14px
}
.header-homepage .top-menu .left-menu .homepage-menu li.active,
.header-homepage .top-menu .left-menu .homepage-menu li:hover {
border-bottom: 2px solid #fff
}
.header-homepage .top-menu .left-menu .homepage-menu li a {
color: #fff;
font-size: 16px
}
.header-homepage .top-menu .left-menu .homepage-menu li a:hover {
text-decoration: none
}
.header-homepage .top-menu .right-menu {
text-align: right
}
.header-homepage .top-menu .right-menu .homepage-menu {
margin: 0
}
.header-homepage .top-menu .right-menu .homepage-menu li {
display: inline-block;
padding: 14px 0;
margin: 0 15px
}
.header-homepage .top-menu .right-menu .homepage-menu li.active,
.header-homepage .top-menu .right-menu .homepage-menu li:hover {
border-bottom: 2px solid #fff
}
.header-homepage .top-menu .right-menu .homepage-menu li a {
color: #fff;
font-size: 16px
}
.header-homepage .top-menu .right-menu .homepage-menu li a:hover {
text-decoration: none
}
.header-homepage .top-menu .right-menu .homepage-menu .info {
background: #fff;
padding: 12px;
color: #6a82b5
}
.header-homepage .top-menu .right-menu .homepage-menu .info h5 {
font-size: 15px;
font-weight: 700;
text-align: center;
text-transform: uppercase
}
.header-homepage .top-menu .right-menu .homepage-menu .info h6 {
text-align: center;
font-size: 10.34px
}
.header-homepage .top-menu-mobile {
display: none;
padding-top: 20px
}
.header-homepage .top-menu-mobile .right {
color: #fff;
text-align: right
}
.header-homepage .top-menu-mobile .right a:hover {
text-decoration: none
}
.header-homepage .top-menu-mobile .right .fa {
font-size: 24px;
color: #666;
}
.header-homepage .top-search {
position: absolute;
left: calc(50% - 375px);
bottom: 40px
}
.header-homepage .top-search .wrapper-header h3 {
color: #fff;
font-size: 36px
}
.header-homepage .top-search .wrapper-header h3 span {
text-transform: uppercase;
font-weight: 600
}
.header-homepage .top-search .wrapper-header .form-search {
background: rgba(0, 0, 0, .5);
padding: 30px 15px;
border-radius: 5px
}
.header-homepage .top-search .wrapper-header .form-search h4 {
font-size: 21px;
color: #fff
}
.header-homepage .top-search .wrapper-header .form-search h4 span {
font-weight: 700;
text-transform: capitalize
}
.header-homepage .top-search .wrapper-header .form-search form {
padding-bottom: 20px;
border-bottom: 1px solid #fff
}
.header-homepage .top-search .wrapper-header .form-search form .form-group {
margin-right: 10px
}
.header-homepage .top-search .wrapper-header .form-search form .form-group .dropdown button .fa {
padding: 0 10px
}
.header-homepage .top-search .wrapper-header .form-search form .form-group .dropdown .dropdown-menu {
padding-left: 10px
}
.header-homepage .top-search .wrapper-header .form-search form .form-group .dropdown .dropdown-menu li {
padding: 5px 0
}
.header-homepage .top-search .wrapper-header .form-search form .form-group:first-child button:after {
margin-left: 90px
}
.header-homepage .top-search .wrapper-header .form-search form .submit button {
color: #fff;
background: #f07007
}
.header-homepage .top-search .wrapper-header .form-search .bottom-search {
padding-top: 15px;
color: #fff;
font-size: 14px
}
.header-homepage .top-search .wrapper-header .form-search .bottom-search a {
color: #fff;
margin-top: 15px;
padding: 0 15px;
border-right: 1px solid #fff
}
.header-homepage .top-search .wrapper-header .form-search .bottom-search a:last-child {
border: none
}
#loginHeader .nav li a {
text-align: center;
width: 100%;
margin: 0;
color: #000;
font-size: 18px;
padding: 20px 15px;
background-color: #d8d8d8
}
#loginHeader .nav li a.active {
background-color: #fff
}
#loginHeader h3 {
text-align: center;
color: #2a70b8;
margin-top: 20px;
font-size: 20px;
text-transform: uppercase;
font-weight: 500
}
#loginHeader form {
max-width: 500px;
margin: 0 auto;
margin-top: 50px;
padding-bottom: 30px;
border-bottom: 1px solid #ccc
}
#loginHeader form .form-group {
text-align: center
}
#loginHeader .footer {
margin-top: 30px
}
#loginHeader .footer p {
padding: 15px
}
#loginHeader .footer .rows a {
margin-bottom: 20px;
line-height: 30px;
padding: 8px;
padding-right: 20px;
border-radius: 4px;
color: #fff;
display: inline-block;
text-transform: uppercase
}
#loginHeader .footer .rows a:first-child {
background: #3a5898
}
#loginHeader .footer .rows a:nth-child(2) {
background: #c20c05
}
#loginHeader .footer .rows a:hover {
text-decoration: none
}
.mm-menu {
z-index: 1!important
}
.wrapper {
font-size: 16px;
font-family: Roboto, sans-serif;
background: url(../images/bg.jpg) no-repeat;
background-size: cover
}
.wrapper h1 {
padding-top: 85px;
color: #204491;
font-size: 36px;
font-weight: 700;
text-transform: uppercase;
padding-bottom: 15px
}
.wrapper .description {
margin-bottom: 65px
}
.wrapper .content .item .title-item {
font-size: 21px;
color: #204491;
font-weight: 700;
text-transform: uppercase;
text-align: center;
padding-bottom: 10px;
margin-bottom: 12px
}
.wrapper .content .item .title-item .border-triangle {
width: 0;
height: 0;
margin: 0 auto;
border-left: 40px solid transparent;
border-right: 40px solid transparent;
border-top: 35px solid #5080bf
}
.wrapper .content .item:nth-child(2) .border-triangle {
border-top: 35px solid #7aace4
}
.wrapper .content .item:nth-child(3) .border-triangle {
border-top: 35px solid #98c6f1
}
.wrapper .content .item .content-item {
margin: 0 auto;
border-radius: 6px;
max-width: 325px;
line-height: 34px;
padding: 10px;
background: #fff;
text-align: justify
}
.wrapper .search {
position: relative;
top: -30px;
overflow: hidden
}
.wrapper .search .search-btn {
position: absolute;
top: calc(50% - 11px);
left: 7px
}
.wrapper .search .search-btn a {
color: #fff;
font-weight: 700;
font-size: 18px;
border-radius: 6px;
text-transform: uppercase;
padding: 15px 32px;
background-color: #f69c20
}
.wrapper .search .search-btn a:hover {
text-decoration: none
}
.wrapper .search .search-bg img {
width: 100%;
height: auto
}
@media (max-width:768px) {
.wrapper h1 {
font-size: 28px
}
.wrapper .content .content-item {
max-width: 100%!important
}
.wrapper .search {
margin-top: 20px
}
.wrapper .search .search-btn a {
font-size: 14px;
padding: 4px 10px;
border-radius: 2px
}
header .header-info {
text-align: center
}
}
.wrapper-homepage {
font-family: Roboto, sans-serif
}
.wrapper-homepage .part-1 {
background: #e5ecf5;
padding-top: 50px;
text-align: center
}
.wrapper-homepage .part-1 h2 {
font-size: 32px;
padding-bottom: 20px
}
.wrapper-homepage .part-1 h2 span {
font-weight: 700
}
.wrapper-homepage .part-1 .hr {
height: 1px;
background: #ccc;
width: 70%;
margin: 0 auto
}
.wrapper-homepage .part-1 ul {
margin-top: 20px;
margin-bottom: 30px
}
.wrapper-homepage .part-1 ul li {
display: inline-block;
padding-right: 25px
}
.wrapper-homepage .part-1 ul li span {
font-weight: 700;
font-size: 24px
}
.wrapper-homepage .part-1 .list-job .item {
margin-bottom: 50px
}
.wrapper-homepage .part-1 .list-job .item .image {
border-radius: 2px;
overflow: hidden;
position: relative
}
.wrapper-homepage .part-1 .list-job .item .image .logo {
position: absolute;
top: 10px;
left: 10px;
padding: 3px;
border: 1px solid #ccc;
border-radius: 50%
}
.wrapper-homepage .part-1 .list-job .item .image .logo img {
width: 100px;
height: 100px;
border-radius: 50%
}
/*.wrapper-homepage .part-1 .list-job .item .image img{width:100%;height:auto}*/
.wrapper-homepage .part-1 .list-job .item .title {
border: 1px solid #ccc;
border-radius: 2px;
background: #fff;
text-align: center;
padding: 15px 0
}
.wrapper-homepage .part-1 .list-job .item .title a {
color: #000;
font-weight: 600;
text-transform: uppercase;
font-size: 14px
}
.wrapper-homepage .part-1 .btn-more {
padding: 50px 30px
}
.wrapper-homepage .part-1 .btn-more a {
padding: 20px 30px;
color: #7ea2cf;
border: 1px solid #7ea2cf;
border-radius: 4px;
font-size: 20px
}
.wrapper-homepage .part-2 {
padding: 60px 0;
overflow: hidden
}
.wrapper-homepage .part-2 img {
width: 100%;
height: auto
}
.wrapper-homepage .part-3,
.wrapper-homepage .part-4 {
text-align: center
}
.wrapper-homepage .part-3 h2,
.wrapper-homepage .part-4 h2 {
font-size: 32px
}
.wrapper-homepage .part-3 h3,
.wrapper-homepage .part-4 h3 {
font-size: 24px
}
.wrapper-homepage .part-3 .list-job-3,
.wrapper-homepage .part-4 .list-job-3 {
margin-top: 30px
}
.wrapper-homepage .part-3 .list-job-3 .item,
.wrapper-homepage .part-4 .list-job-3 .item {
margin-bottom: 50px
}
.wrapper-homepage .part-3 .list-job-3 .item .image,
.wrapper-homepage .part-4 .list-job-3 .item .image {
border-radius: 2px;
overflow: hidden
}
.wrapper-homepage .part-3 .list-job-3 .item .image img,
.wrapper-homepage .part-4 .list-job-3 .item .image img {
width: 100%;
height: auto
}
.wrapper-homepage .part-3 .list-job-3 .item .title,
.wrapper-homepage .part-4 .list-job-3 .item .title {
background: #fff;
text-align: center;
padding: 15px 0
}
.wrapper-homepage .part-3 .list-job-3 .item .title a,
.wrapper-homepage .part-4 .list-job-3 .item .title a {
color: #000;
font-size: 26px
}
.wrapper-homepage .part-4 {
background: #e5ecf5;
padding-top: 65px;
padding-bottom: 40px
}
.footer-homepage {
border-top: 3px solid #3f7fba;
padding-top: 40px
}
.footer-homepage .top-footer {
margin-bottom: 30px
}
.footer-homepage .top-footer .container {
padding-bottom: 20px;
border-bottom: 1px solid #ccc
}
.footer-homepage .top-footer .item .title {
font-size: 14px;
text-transform: uppercase;
font-weight: 600
}
.footer-homepage .top-footer .item ul {
padding: 0;
margin: 0
}
.footer-homepage .top-footer .item ul li {
padding: 5px 0;
list-style-type: none
}
.footer-homepage .top-footer .item ul li a {
text-transform: capitalize;
font-size: 15px;
color: #000
}
.footer-homepage .top-footer .item ul li a:hover {
color: #6f9fcb;
text-decoration: none
}
.footer-homepage .top-footer .footer-3 ul li {
display: inline-block
}
.footer-homepage .top-footer .footer-3 ul li:first-child a {
border-radius: 50%;
padding: 5px 14px;
background: #314a7e;
color: #fff;
font-size: 24px
}
.footer-homepage .top-footer .footer-3 ul li:nth-child(2) a {
border-radius: 50%;
padding: 5px 6px;
background: #da4335;
color: #fff;
font-size: 24px
}
.footer-homepage .top-footer .footer-3 ul li:nth-child(3) a {
border-radius: 50%;
padding: 5px 9px;
background: #e32d27;
color: #fff;
font-size: 24px
}
.footer-homepage .bottom-footer {
padding-bottom: 40px
}
.footer-homepage .bottom-footer p {
margin: 3px 0;
font-size: 12px;
}
.footer-homepage .bottom-footer p a {
color: #000
}
@media (max-width:1349px) {
.header-homepage .top-menu .left-menu li {
margin: 0 10px!important
}
.header-homepage .top-menu .left-menu li a {
font-size: 14px!important
}
.header-homepage .top-menu .right-menu .homepage-menu li {
padding: 20px 0!important
}
.header-homepage .top-menu .right-menu .homepage-menu .info {
background: #fff;
padding: 12px 12px 16px!important;
color: #6a82b5;
}
}
@media (max-width:1200px) {
.header-homepage .top-menu .right-menu .homepage-menu{
margin: 0;
padding: 0;
}
.header-homepage .top-menu .left-menu li {
margin: 0 5px!important
}
.header-homepage .top-menu .left-menu li a {
font-size: 14px!important
}
.header-homepage .top-menu .right-menu .homepage-menu li {
padding: 20px 0!important
display: inline-block;
padding: 14px 0;
margin: 0 5px;
}
.header-homepage .top-menu .right-menu .homepage-menu .info {
background: #fff;
padding: 14px 3px 12px!important;
color: #6a82b5;
}
.header-homepage .top-menu .right-menu .homepage-menu .info h6{
display: none;
}
.header-homepage .top-menu .right-menu .homepage-menu .info h5{
width: 96px;
font-size: 12px;
margin-top: 4px;
}
}
@media (max-width:1023px) {
.header-homepage .top-menu-mobile,
header .top-menu-mobile {
display: block
}
.header-homepage .top-menu,
header .top-menu {
display: none
}
.header-homepage .top-search,
header .top-search {
padding: 20px;
left: 0;
}
.header-homepage .top-search .wrapper-header .form-search .form-group,
header .top-search .wrapper-header .form-search .form-group {
margin-bottom: 15px
}
.header-homepage .top-search .wrapper-header h3,
header .top-search .wrapper-header h3 {
font-size: 24px;
text-align: center
}
}
@media (max-width:420px) {
.header-homepage {
height: 680px
}
}
.ntd-page .top .right .btn-modal {
text-align: right
}
.ntd-page .top .right button.buy-now {
margin-top: 85px;
margin-right: 25px;
border: none;
color: #fff;
font-weight: 700;
font-size: 18px;
border-radius: 6px;
text-transform: uppercase;
padding: 15px 32px;
background-color: #f69c20
}
.ntd-page .top .right .modal-content {
border-radius: 0
}
.ntd-page .top .right .modal-content .form-modal h3 {
text-align: center;
font-size: 18px;
text-transform: uppercase;
color: #5494c9;
padding: 20px;
border-bottom: 1px solid #ccc;
margin-bottom: 20px
}
.ntd-page .top .right .modal-content .form-modal form {
padding: 0 50px
}
.ntd-page .top .right .modal-content .form-modal form .form-group label {
display: none
}
.ntd-page .top .right .modal-content .form-modal form button {
color: #fff;
font-weight: 700;
font-size: 18px;
border-radius: 6px;
text-transform: uppercase;
padding: 5px 12px;
background-color: #f69c20
}
.ntd-page .top .right .modal-content .form-modal .footer {
text-align: center;
padding: 20px;
background: #1d72b8;
color: #fff;
font-size: 18px
}
.ntd-page .top .right .modal-content .form-modal .footer span {
margin-right: 15px
}
.ntd-page .top .right .modal-content .form-modal .footer span:first-child {
text-transform: uppercase
}
.ntd-page .image-bottom {
margin-top: 50px;
background: #b3dced;
background: -webkit-gradient(left top, right top, color-stop(0, #b3dced), color-stop(0, #2d559e), color-stop(100%, #29b8e5));
background: linear-gradient(90deg, #b3dced 0, #2d559e 0, #29b8e5);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#b3dced", endColorstr="#29b8e5", GradientType=1)
}
.ntd-page .image-bottom .col-md-6 {
text-align: center;
padding: 40px 20px;
overflow: hidden
}
.ntd-page .image-bottom .col-md-6 img {
max-width: 460px;
width: 100%;
height: auto
}
.clear {
clear: both
}
@media (max-width:992px) {
.ntd-page .top .right {
padding-bottom: 30px
}
.ntd-page .top .right .btn-modal {
text-align: center!important
}
.ntd-page .top .right .buy-now {
margin: 0!important
}
}
@media (min-width:576px) {
.modal-dialog {
max-width: 720px;
margin: 30px auto
}
}
.header-homepage .top-search .wrapper-header .form-search form .form-group .dropdown .dropdown-menu.city-select {
min-width: 11.2rem;
}
.header-homepage .top-search .wrapper-header .form-search form .form-group .dropdown .dropdown-menu.district-select {
min-width: 11.45rem;
}
.dropdown-menu {
right: 0;
left: auto;
min-width: 12rem;
}
/*info-page*/
#info-page #images-company{
margin-top: 30px;
margin-bottom: 30px;
}
#info-page #images-company .col-xs-12{
margin:10px 0;
}
#info-page #images-company img{
height: 250px;
width: 100%;
}
.obj-name{
font-size: 28px;
font-weight: bold;
margin: 15px 0;
}
.star-vote{
padding: 6px;
height: 25px;
border-radius: 8px;
background: #2a70b8;
margin-right: -2px;
}
#info-page i.master-point {
background-position: -145px -210px;
display: inline-block;
width: 20px;
height: 20px;
position: absolute;
left: -30px;
top: -2px;
}
#info-page .star-hold{
margin: 10px 0;
}
#info-page .info-row{
margin: 5px 0 3px;
}
#info-page .info-job-row{
margin: 5px 0 3px;
}
#info-page .info-job-row .fa{
width: 26px;
}
#info-page .info-row .fa{
width: 30px;
}
#info-page .link-job{
text-align: center;
margin-top: 20px;
}
#info-page .web-link{
float: left;
word-break: break-all;
width: 90%;
}
#info-page .logo-company{
border: 1px solid #CDCDCD;
padding: 20px;
background: #FFF;
border-radius: 4px 4px 0 0;
border-bottom: none;
}
#info-page .info-company{
border: 1px solid #CDCDCD;
padding: 20px;
background: #efefef;
}
#info-page hr{
border: 1px solid #fff;
}
#info-page .link-social{
margin-top: 20px;
margin-bottom: 9px;
border-bottom: 1px solid #BABABA;
position: relative;
}
#info-page .link-social .text{
background: #2a70b8;
padding: 8px 20px;
color: white;
font-weight: bold;
display: inline-block;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
#info-page .link-social #share{
}
#info-page .link-social #share span{
float: right;
font-size: 18px;
font-weight: bold;
padding-top: 8px;
margin-right: 20px;
}
#info-page .link-social #share a{
float: right;
overflow: hidden;
width: 30px;
height: 30px;
background: #2a70b8;
display: inline-block;
border-radius: 50%;
text-align: center;
margin-top: 5px;
margin-right: 5px;
}
#info-page .link-social #share a i{
background: url(../images/bg.png);
display: inline-block;
}
#info-page .link-social #share a i.i1{
background-position: -82px -185px;
width: 25px;
height: 20px;
margin-top: 6px;
}
#info-page .link-social #share a i.i2{
background-position: -60px -185px;
width: 25px;
height: 20px;
margin-top: 6px;
}
#info-page .link-social #share a i.i3{
background-position: -40px -185px;
width: 20px;
height: 20px;
margin-top: 6px;
}
#info-page .link-social #share a i.i4{
background-position: -15px -185px;
width: 24px;
height: 24px;
margin-top: 6px;
}
#info-page .link-social #share a i.i5{
background-position: 0 -185px;
width: 10px;
height: 20px;
margin-top: 6px;
}
#info-page .link-social #share a:nth-child(4) {
background-color: #ed1e27;
}
#info-page .link-social #share a:nth-child(3) {
background-color: #32ccfe;
}
#info-page .link-social #share a:nth-child(2) {
background-color: #bd081b;
}
#info-page .link-social #share a:nth-child(1) {
background-color: #2c6998;
}
#info-page .detail-info{
margin-top: 20px;
margin-bottom: 20px;
border: 1px solid #e4e3e3;
border-radius: 8px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
#info-page .detail-info .title{
background-color: #f5f8fa;
padding: 10px 20px;
color: #9ea5aa;
font-size: 14px;
text-transform: uppercase;
margin-top: 10px;
font-weight: bold;
margin-bottom: 15px;
font-family: 'Noto Sans',Helvetica, Arial, sans-serif!important;
}
#info-page #join-now{
margin-bottom: 20px;
}
#info-page #join-now div{
text-align: center;
}
@media (max-width:768px) {
#info-page .link-social .text{
display: none;
}
#info-page .link-social{
border: none;
margin-bottom: 0;
}
.hidden-xs{
display: none;
}
}
@media (min-width:768px and max-width:992px) {
#info-page .link-social .text{
display: none;
}
#info-page .link-social{
border: none;
margin-bottom: 0;
}
.hidden-xs{
display: none;
}
.hidden-sm{
display: none;
}
} | 19.853616 | 129 | 0.637381 |
a326e3c7b81badf7c7c47771e645407c02ef0c62 | 3,569 | java | Java | lealone-test/src/test/java/org/lealone/test/service/generated/AllTypeService.java | xsir/Lealone | dc71794c1c9be73d62972b913644e1dadc8c8f11 | [
"Apache-2.0"
] | 1,483 | 2016-02-27T15:35:36.000Z | 2022-03-31T17:02:03.000Z | lealone-test/src/test/java/org/lealone/test/service/generated/AllTypeService.java | xsir/Lealone | dc71794c1c9be73d62972b913644e1dadc8c8f11 | [
"Apache-2.0"
] | 67 | 2016-03-09T04:52:46.000Z | 2022-03-28T03:13:11.000Z | lealone-test/src/test/java/org/lealone/test/service/generated/AllTypeService.java | xsir/Lealone | dc71794c1c9be73d62972b913644e1dadc8c8f11 | [
"Apache-2.0"
] | 297 | 2016-02-25T15:17:52.000Z | 2022-03-30T17:04:49.000Z | package org.lealone.test.service.generated;
import java.math.BigDecimal;
import java.sql.*;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.UUID;
import org.lealone.client.ClientServiceProxy;
import org.lealone.db.value.ValueUuid;
import org.lealone.orm.json.JsonObject;
import org.lealone.test.orm.generated.User;
/**
* Service interface for 'all_type_service'.
*
* THIS IS A GENERATED OBJECT, DO NOT MODIFY THIS CLASS.
*/
public interface AllTypeService {
static AllTypeService create(String url) {
if (new org.lealone.db.ConnectionInfo(url).isEmbedded())
return new org.lealone.test.service.impl.AllTypeServiceImpl();
else
return new ServiceProxy(url);
}
User testType(Integer f1, Boolean f2, Byte f3, Short f4, Long f5, Long f6, BigDecimal f7, Double f8, Float f9, Time f10, Date f11, Timestamp f12, byte[] f13, Object f14, String f15, String f16, String f17, Blob f18, Clob f19, UUID f20, Array f21);
UUID testUuid(UUID f1);
static class ServiceProxy implements AllTypeService {
private final PreparedStatement ps1;
private final PreparedStatement ps2;
private ServiceProxy(String url) {
ps1 = ClientServiceProxy.prepareStatement(url, "EXECUTE SERVICE ALL_TYPE_SERVICE TEST_TYPE(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
ps2 = ClientServiceProxy.prepareStatement(url, "EXECUTE SERVICE ALL_TYPE_SERVICE TEST_UUID(?)");
}
@Override
public User testType(Integer f1, Boolean f2, Byte f3, Short f4, Long f5, Long f6, BigDecimal f7, Double f8, Float f9, Time f10, Date f11, Timestamp f12, byte[] f13, Object f14, String f15, String f16, String f17, Blob f18, Clob f19, UUID f20, Array f21) {
try {
ps1.setInt(1, f1);
ps1.setBoolean(2, f2);
ps1.setByte(3, f3);
ps1.setShort(4, f4);
ps1.setLong(5, f5);
ps1.setLong(6, f6);
ps1.setBigDecimal(7, f7);
ps1.setDouble(8, f8);
ps1.setFloat(9, f9);
ps1.setTime(10, f10);
ps1.setDate(11, f11);
ps1.setTimestamp(12, f12);
ps1.setBytes(13, f13);
ps1.setObject(14, f14);
ps1.setString(15, f15);
ps1.setString(16, f16);
ps1.setString(17, f17);
ps1.setBlob(18, f18);
ps1.setClob(19, f19);
ps1.setBytes(20, ValueUuid.get(f20).getBytes());
ps1.setArray(21, f21);
ResultSet rs = ps1.executeQuery();
rs.next();
JsonObject jo = new JsonObject(rs.getString(1));
rs.close();
return jo.mapTo(User.class);
} catch (Throwable e) {
throw ClientServiceProxy.failed("ALL_TYPE_SERVICE.TEST_TYPE", e);
}
}
@Override
public UUID testUuid(UUID f1) {
try {
ps2.setBytes(1, ValueUuid.get(f1).getBytes());
ResultSet rs = ps2.executeQuery();
rs.next();
UUID ret = ValueUuid.get(rs.getBytes(1)).getUuid();
rs.close();
return ret;
} catch (Throwable e) {
throw ClientServiceProxy.failed("ALL_TYPE_SERVICE.TEST_UUID", e);
}
}
}
}
| 37.968085 | 263 | 0.570188 |
3848d4db211db6f7ad66081b2b229548562740fc | 458 | php | PHP | resources/lang/lv/folder.php | bvalters/webtech | d002acbb97e9f9fc9df9342a876d1968b5a4cb3f | [
"MIT"
] | null | null | null | resources/lang/lv/folder.php | bvalters/webtech | d002acbb97e9f9fc9df9342a876d1968b5a4cb3f | [
"MIT"
] | null | null | null | resources/lang/lv/folder.php | bvalters/webtech | d002acbb97e9f9fc9df9342a876d1968b5a4cb3f | [
"MIT"
] | null | null | null | <?php
return [
'download' => 'Lejupielādēt',
'delete' => 'Dzēst',
'scrolltotop' => 'Iet uz lapas sākumu',
'filename' => 'Nosaukums',
'size' => 'Izmērs',
'date' => 'Datums',
'copiedtoclipboard' => 'Saite nokopēta!',
'choosefile' => 'Spied šeit, lai izvēlētos failus',
'upload' => [
"action" => "Augšupielādēt",
"success" => "Fails veiksmīgi augšupielādēts!|[2,*] Faili veiksmīgi augšupielādēti!"
],
];
| 26.941176 | 92 | 0.567686 |
6b174eb56efc4d7b002bbe0708a7c022a9fb1ab1 | 15,574 | js | JavaScript | frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/pages/index.js | pradeepkumarcm-egov/DIGIT-Dev | d8fb601fae6d919d2386f36b36dfc7fde77ebd4f | [
"MIT"
] | null | null | null | frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/pages/index.js | pradeepkumarcm-egov/DIGIT-Dev | d8fb601fae6d919d2386f36b36dfc7fde77ebd4f | [
"MIT"
] | null | null | null | frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/pages/index.js | pradeepkumarcm-egov/DIGIT-Dev | d8fb601fae6d919d2386f36b36dfc7fde77ebd4f | [
"MIT"
] | null | null | null | import {
DownloadIcon,
EmailIcon,
FilterIcon,
Header,
Loader,
MultiLink,
RemoveableTag,
ShareIcon,
WhatsappIcon
} from "@egovernments/digit-ui-react-components";
import { format } from "date-fns";
import React, { useEffect, Fragment,useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { useParams } from "react-router-dom";
import { checkCurrentScreen } from "../components/DSSCard";
import FilterContext from "../components/FilterContext";
import Filters from "../components/Filters";
import FiltersNational from "../components/FiltersNational";
import Layout from "../components/Layout";
const key = "DSS_FILTERS";
function addFinancialYearAccordingToCurrentDate () {
const currentDate = new Date()
if(getMonth(currentDate) > 3){
return addMonths(startOfYear(currentDate), 3)
} else {
return addMonths(subYears(startOfYear(currentDate), 1),3)
}
}
const getInitialRange = () => {
const data = Digit.SessionStorage.get(key);
const startDate = data?.range?.startDate ? new Date(data?.range?.startDate) : Digit.Utils.dss.getDefaultFinacialYear().startDate;
const endDate = data?.range?.endDate ? new Date(data?.range?.endDate) : Digit.Utils.dss.getDefaultFinacialYear().endDate;
const title = `${format(startDate, "MMM d, yyyy")} - ${format(endDate, "MMM d, yyyy")}`;
const duration = Digit.Utils.dss.getDuration(startDate, endDate);
const denomination = data?.denomination || "Lac";
const tenantId = data?.filters?.tenantId || [];
return { startDate, endDate, title, duration, denomination, tenantId };
};
const DashBoard = ({ stateCode }) => {
const tenantId = Digit.ULBService.getCurrentTenantId();
const { t } = useTranslation();
const [filters, setFilters] = useState(() => {
const { startDate, endDate, title, duration, denomination, tenantId } = getInitialRange();
return {
denomination,
range: { startDate, endDate, title, duration },
requestDate: {
startDate: startDate.getTime(),
endDate: endDate.getTime(),
interval: duration,
title: title,
},
filters: {
tenantId,
},
};
});
const [isFilterModalOpen, setIsFilterModalOpen] = useState(false);
const isNational = checkCurrentScreen();
const { moduleCode } = useParams();
const language = Digit.StoreData.getCurrentLanguage();
const { isLoading: localizationLoading, data: store } = Digit.Services.useStore({ stateCode, moduleCode, language });
const { data: screenConfig } = Digit.Hooks.dss.useMDMS(stateCode, "dss-dashboard", "DssDashboard");
const { data: nationalInfo, isLoadingNAT } = Digit.Hooks.dss.useMDMS(stateCode, "tenant", ["nationalInfo"], {
select: (data) => {
let nationalInfo = data?.tenant?.nationalInfo || [];
let combinedResult = nationalInfo.reduce((acc, curr) => {
if (acc[curr.stateCode]) {
acc[curr.stateCode].push(curr);
} else {
acc[curr.stateCode] = [curr];
}
return { ...acc };
}, {});
let formattedResponse = { ddr: [], ulb: [] };
Object.keys(combinedResult).map((key) => {
let stateName = combinedResult[key]?.[0].stateName;
formattedResponse.ddr.push({ code: key, ddrKey: stateName, ulbKey: stateName });
formattedResponse.ulb.push(...combinedResult[key].map((e) => ({ code: e.code, ulbKey: e.name, ddrKey: e.stateName })));
});
return formattedResponse;
},
enabled: isNational,
});
const { data: response, isLoading } = Digit.Hooks.dss.useDashboardConfig(moduleCode);
const { data: ulbTenants, isLoading: isUlbLoading } = Digit.Hooks.useModuleTenants("FSM");
const { isLoading: isMdmsLoading, data: mdmsData } = Digit.Hooks.useCommonMDMS(stateCode, "FSM", "FSTPPlantInfo");
const [showOptions, setShowOptions] = useState(false);
const [showFilters, setShowFilters] = useState(false);
const [tabState, setTabState] = useState("");
const handleFilters = (data) => {
Digit.SessionStorage.set(key, data);
setFilters(data);
};
const fullPageRef = useRef();
const provided = useMemo(
() => ({
value: filters,
setValue: handleFilters,
ulbTenants: isNational ? nationalInfo : ulbTenants,
fstpMdmsData: mdmsData,
}),
[filters, isUlbLoading, isMdmsLoading]
);
const mobileView = innerWidth <= 640;
const handlePrint = () => Digit.Download.PDF(fullPageRef, t(dashboardConfig?.[0]?.name));
const removeULB = (id) => {
handleFilters({
...filters,
filters: { ...filters?.filters, tenantId: [...filters?.filters?.tenantId].filter((tenant, index) => index !== id) },
});
};
const removeST = (id) => {
let newStates=[...filters?.filters?.state].filter((tenant, index) => index !== id) ;
let newUlbs=filters?.filters?.ulb||[];
if(newStates?.length==0){
newUlbs=[];
}else{
let filteredUlbs=nationalInfo?.ulb?.filter((e) => Digit.Utils.dss.getCitiesAvailable(e, newStates))?.map(ulbs=>ulbs?.code)
newUlbs=newUlbs.filter(ulb=>filteredUlbs.includes(ulb))
}
handleFilters({
...filters,
filters: { ...filters?.filters, state:newStates ,ulb:newUlbs},
});
};
const removeTenant = (id) => {
handleFilters({
...filters,
filters: { ...filters?.filters, ulb: [...filters?.filters?.ulb].filter((tenant, index) => index !== id) },
});
};
const handleClear = () => {
handleFilters({ ...filters, filters: { ...filters?.filters, tenantId: [] } });
};
const clearAllTn = () => {
handleFilters({ ...filters, filters: { ...filters?.filters, ulb: [] } });
};
const clearAllSt = () => {
handleFilters({ ...filters, filters: { ...filters?.filters, state: [], ulb: [] } });
};
const dashboardConfig = response?.responseData;
let tabArrayObj =
dashboardConfig?.[0]?.visualizations?.reduce((curr, acc) => {
curr[acc.name] = 0;
return { ...curr };
}, {}) || {};
let tabArray = Object.keys(tabArrayObj).map((key) => key);
useEffect(() => {
if (tabArray?.length > 0 && tabState == "") {
setTabState(tabArray[0]);
}
}, [tabArray]);
const shareOptions = navigator.share
? [
{
label: t("ES_DSS_SHARE_PDF"),
onClick: (e) => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.PDF(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name));
}, 500);
},
},
{
label: t("ES_DSS_SHARE_IMAGE"),
onClick: () => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.Image(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name));
}, 500);
},
},
]
: [
/*
{
icon: <EmailIcon />,
label: t("ES_DSS_SHARE_PDF"),
onClick: () => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.PDF(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name), "mail");
}, 500);
},
},
{
icon: <WhatsappIcon />,
label: t("ES_DSS_SHARE_PDF"),
onClick: () => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.PDF(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name), "whatsapp");
}, 500);
},
},
*/
{
icon: <EmailIcon />,
label: t("ES_DSS_SHARE_IMAGE"),
onClick: () => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.DownloadImage(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name), "mail");
}, 500);
},
},
{
icon: <WhatsappIcon />,
label: t("ES_DSS_SHARE_IMAGE"),
onClick: () => {
setShowOptions(!showOptions);
setTimeout(() => {
return Digit.ShareFiles.DownloadImage(tenantId, fullPageRef, t(dashboardConfig?.[0]?.name), "whatsapp");
}, 500);
},
},
];
if (isLoading || isUlbLoading || localizationLoading || isMdmsLoading || isLoadingNAT) {
return <Loader />;
}
return (
<FilterContext.Provider value={provided}>
<div ref={fullPageRef} id="divToPrint">
<div className="options">
<Header styles={{ marginBottom: "0px",whiteSpace:"pre" }}>{t(dashboardConfig?.[0]?.name)}</Header>
{mobileView ? null : (
<div className="divToBeHidden">
<div className="mrlg divToBeHidden">
<MultiLink
className="multilink-block-wrapper divToBeHidden"
label={t(`ES_DSS_SHARE`)}
icon={<ShareIcon className="mrsm" />}
// showOptions={(e) => {
// setShowOptions(e)}
// }
onHeadClick={(e) =>{ setShowOptions(e !== undefined ? e : !showOptions)}}
displayOptions={showOptions}
options={shareOptions}
/>
</div>
<div className="mrsm divToBeHidden" onClick={handlePrint}>
<DownloadIcon className="mrsm divToBeHidden" />
{t(`ES_DSS_DOWNLOAD`)}
</div>
</div>
)}
</div>
{isNational ? (
<FiltersNational
t={t}
ulbTenants={nationalInfo}
isOpen={isFilterModalOpen}
closeFilters={() => setIsFilterModalOpen(false)}
isNational={isNational}
/>
) : (
<Filters
t={t}
ulbTenants={isNational ? nationalInfo : ulbTenants}
isOpen={isFilterModalOpen}
closeFilters={() => setIsFilterModalOpen(false)}
isNational={isNational}
/>
)}
{filters?.filters?.tenantId?.length > 0 && (
<div className="tag-container">
{!showFilters &&
filters?.filters?.tenantId &&
filters.filters.tenantId
.slice(0, 5)
.map((filter, id) => <RemoveableTag key={id} text={`${t(`DSS_HEADER_ULB`)}: ${t(filter)}`} onClick={() => removeULB(id)} />)}
{filters?.filters?.tenantId?.length > 6 && (
<>
{showFilters &&
filters.filters.tenantId.map((filter, id) => (
<RemoveableTag key={id} text={`${t(`DSS_HEADER_ULB`)}: ${t(filter)}`} onClick={() => removeULB(id)} />
))}
{!showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(true)}>
{t(`DSS_FILTER_SHOWALL`)}
</p>
)}
{showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(false)}>
{t(`DSS_FILTER_SHOWLESS`)}
</p>
)}
</>
)}
<p className="clearText cursorPointer" onClick={handleClear}>
{t(`DSS_FILTER_CLEAR`)}
</p>
</div>
)}
{filters?.filters?.state?.length > 0 && (
<div className="tag-container">
{!showFilters &&
filters?.filters?.state &&
filters.filters.state
.slice(0, 5)
.map((filter, id) => <RemoveableTag key={id} text={`${t(`DSS_HEADER_STATE`)}: ${t(filter)}`} onClick={() => removeST(id)} />)}
{filters?.filters?.state?.length > 6 && (
<>
{showFilters &&
filters.filters.state.map((filter, id) => (
<RemoveableTag key={id} text={`${t(`DSS_HEADER_STATE`)}: ${t(filter)}`} onClick={() => removeST(id)} />
))}
{!showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(true)}>
{t(`DSS_FILTER_SHOWALL`)}
</p>
)}
{showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(false)}>
{t(`DSS_FILTER_SHOWLESS`)}
</p>
)}
</>
)}
<p className="clearText cursorPointer" onClick={clearAllSt}>
{t(`DSS_FILTER_CLEAR_ST`)}
</p>
</div>
)}
{filters?.filters?.ulb?.length > 0 && (
<div className="tag-container">
{!showFilters &&
filters?.filters?.ulb &&
filters.filters.ulb
.slice(0, 5)
.map((filter, id) => <RemoveableTag key={id} text={`${t(`DSS_HEADER_ULB`)}: ${t(filter)}`} onClick={() => removeTenant(id)} />)}
{filters?.filters?.ulb?.length > 6 && (
<>
{showFilters &&
filters.filters.ulb.map((filter, id) => (
<RemoveableTag key={id} text={`${t(`DSS_HEADER_ULB`)}: ${t(filter)}`} onClick={() => removeTenant(id)} />
))}
{!showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(true)}>
{t(`DSS_FILTER_SHOWALL`)}
</p>
)}
{showFilters && (
<p className="clearText cursorPointer" onClick={() => setShowFilters(false)}>
{t(`DSS_FILTER_SHOWLESS`)}
</p>
)}
</>
)}
<p className="clearText cursorPointer" onClick={clearAllTn}>
{t(`DSS_FILTER_CLEAR_TN`)}
</p>
</div>
)}
{mobileView ? (
<div className="options-m">
<div>
<FilterIcon onClick={() => setIsFilterModalOpen(!isFilterModalOpen)} style />
</div>
<div className="divToBeHidden">
<MultiLink
className="multilink-block-wrapper"
label={t(`ES_DSS_SHARE`)}
icon={<ShareIcon className="mrsm" />}
showOptions={(e) => setShowOptions(e)}
onHeadClick={(e) => setShowOptions(e !== undefined ? e : !showOptions)}
displayOptions={showOptions}
options={shareOptions}
/>
</div>
<div onClick={handlePrint} className="divToBeHidden">
<DownloadIcon />
{t(`ES_DSS_DOWNLOAD`)}
</div>
</div>
) : null}
<div>
{tabArray && tabArray?.length > 1 && (
<div className="dss-switch-tabs chart-row">
<div className="dss-switch-tab-wrapper">
{tabArray?.map((key) => (
<div className={tabState === key ? "dss-switch-tab-selected" : "dss-switch-tab-unselected"} onClick={() => setTabState(key)}>
{t(key)}
</div>
))}
</div>
</div>
)}
</div>
{dashboardConfig?.[0]?.visualizations
.filter((row) => row.name === tabState)
.map((row, key) => {
return <Layout rowData={row} key={key} />;
})}
</div>
</FilterContext.Provider>
);
};
export default DashBoard; | 36.992874 | 144 | 0.527867 |
79f3637392812c1bed100654304c4cd9ae21574c | 1,844 | php | PHP | src/MoneyBundle/Twig/Extension/MoneyFormatterExtension.php | Qurus/SolidInvoice | 36486d848f969613c6a269d88debe3c12d50dabf | [
"MIT"
] | null | null | null | src/MoneyBundle/Twig/Extension/MoneyFormatterExtension.php | Qurus/SolidInvoice | 36486d848f969613c6a269d88debe3c12d50dabf | [
"MIT"
] | null | null | null | src/MoneyBundle/Twig/Extension/MoneyFormatterExtension.php | Qurus/SolidInvoice | 36486d848f969613c6a269d88debe3c12d50dabf | [
"MIT"
] | null | null | null | <?php
declare(strict_types=1);
/*
* This file is part of SolidInvoice project.
*
* (c) 2013-2017 Pierre du Plessis <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace SolidInvoice\MoneyBundle\Twig\Extension;
use Money\Currency;
use Money\Money;
use SolidInvoice\MoneyBundle\Formatter\MoneyFormatter;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigFunction;
class MoneyFormatterExtension extends AbstractExtension
{
/**
* @var MoneyFormatter
*/
private $formatter;
/**
* @var Currency
*/
private $currency;
public function __construct(MoneyFormatter $formatter, Currency $currency)
{
$this->formatter = $formatter;
$this->currency = $currency;
}
/**
* {@inheritdoc}
*/
public function getFunctions()
{
return [
new TwigFunction('currencyFormatter', function () {
return $this->formatter;
}),
];
}
public function getFilters(): array
{
return [
new TwigFilter('formatCurrency', function ($money, $currency = null): string {
if (!$money instanceof Money && is_numeric($money)) {
@trigger_error('Passing a number to "formatCurrency" is deprecated since version 2.0.1 and will be unsupported in version 2.1. Pass a Money instance instead.', E_USER_DEPRECATED);
$money = new Money((int) $money, $currency ? new Currency($currency) : $this->currency);
}
return $this->formatter->format($money);
}),
];
}
/**
* {@inheritdoc}
*/
public function getName()
{
return 'currency_formatter';
}
}
| 24.586667 | 199 | 0.605206 |
d7f16d01cffc382d83c4275c9dc87324b63d425d | 2,946 | h | C | SVEngine/src/base/SVStack.h | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/base/SVStack.h | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/base/SVStack.h | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | // SVStack.h
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#ifndef SV_STACK_H
#define SV_STACK_H
#include "SVBase.h"
namespace sv {
namespace util {
template <class Type,s32 Capacity> class SVStack {
public:
SVStack()
:m_depth(0) {
m_stack = new Type[Capacity];
}
~SVStack() {
destroy();
}
sv_inline Type &get(s32 index) {
assert((u32)index < (u32)m_depth && "Stack::get(): bad index");
return m_stack[m_depth - 1 - index];
}
sv_inline const Type &get(s32 index) const {
assert((u32)index < (u32)m_depth && "Stack::get(): bad index");
return m_stack[m_depth - 1 - index];
}
sv_inline s32 size() const {
return m_depth;
}
sv_inline s32 empty() const {
return (m_depth == 0);
}
sv_inline s32 capacity() const {
return Capacity;
}
sv_inline void append(s32 num) {
assert(m_depth + num < Capacity && "Stack::append(): stack overflow");
m_depth += num;
}
sv_inline void remove(s32 num) {
assert(m_depth - num >= 0 && "Stack::remove(): stack underflow");
m_depth -= num;
}
sv_inline void clear() {
m_depth = 0;
}
void destroy() {
m_depth = 0;
delete [] m_stack;
m_stack = 0;
}
sv_inline Type &top() {
assert(m_depth > 0 && "Stack::top(): stack underflow");
return m_stack[m_depth - 1];
}
sv_inline const Type &top() const {
assert(m_depth > 0 && "Stack::top(): stack underflow");
return m_stack[m_depth - 1];
}
sv_inline Type &pop() {
assert(m_depth > 0 && "Stack::pop(): stack underflow");
return m_stack[--m_depth];
}
sv_inline void push(const Type &t) {
assert(m_depth < Capacity && "Stack::push(): stack overflow");
m_stack[m_depth++] = t;
}
sv_inline Type &push() {
assert(m_depth < Capacity && "Stack::push(): stack overflow");
return m_stack[m_depth++];
}
private:
s32 m_depth;
Type *m_stack;
};
}//!namespace util
}//!namespace sv
#endif /* SV_STACK_H */
| 27.792453 | 86 | 0.418534 |
797cbaea93914e4469d48e9a4aa5b4e625847b0e | 2,731 | php | PHP | application/views/admin/privileges/facultyType.php | nanda-abriti/ELibrary | dcee585a69b8b542464c461217238eb515cb68a1 | [
"MIT"
] | null | null | null | application/views/admin/privileges/facultyType.php | nanda-abriti/ELibrary | dcee585a69b8b542464c461217238eb515cb68a1 | [
"MIT"
] | null | null | null | application/views/admin/privileges/facultyType.php | nanda-abriti/ELibrary | dcee585a69b8b542464c461217238eb515cb68a1 | [
"MIT"
] | null | null | null | <main class="app-content" style="background-color:white;margin-top:0">
<div class="row" style="padding:40px">
<div class="col-md-12">
<h4 class="text-center">Faculty Log In </h4>
<div class="table-responsive">
<table class="table table-bordered" id="myTable">
<thead>
<tr>
<th>S.No</th>
<th>Name</th>
<th>Email</th>
<th>User Type</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
if($approved)
foreach($approved as $approve){
?>
<tr>
<form action="<?php echo base_url('userTypeUpdateFaculty');?>" method="post">
<td><?php echo $i;?></td>
<td><?php echo $approve->cfacultyName; ?>
<input type="hidden" name="fid" value="<?php echo $approve->fid;?>">
</td>
<td><?php echo $approve->cfacultyEmail; ?></td>
<td><?php echo $approve->cuserType; ?></td>
<td>
<div class="input-group">
<select class="form-control btn btn-flat" name="utid">
<?php
if($userTypes)
foreach($userTypes as $userType){
?>
<option value="<?php echo $userType->id;?>"><?php echo $userType->cuserType;?></option>
<?php
}
?>
</select>
<span class="input-group-btn">
<button type="submit" name="" class="btn btn-success btn-flat"><i class="fa fa-send-o"></i>
</button>
</span>
</div>
</form>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</main>
<script>
$(document).ready(function()
{
$('#myTable').DataTable();
});
</script> | 39.57971 | 132 | 0.30758 |
962ff91e7d1a252eec8d680879245a200ff4e7f7 | 1,602 | ps1 | PowerShell | Public/Get-RedditComment.ps1 | 1RedOne/PSReddit | 5d887c04525409d3ff069ca66e29dea39cba9a55 | [
"Apache-2.0"
] | 19 | 2015-09-16T19:00:33.000Z | 2020-03-11T18:03:57.000Z | Public/Get-RedditComment.ps1 | 1RedOne/PSReddit | 5d887c04525409d3ff069ca66e29dea39cba9a55 | [
"Apache-2.0"
] | 3 | 2016-06-13T08:43:20.000Z | 2020-02-09T02:59:48.000Z | Public/Get-RedditComment.ps1 | 1RedOne/PSReddit | 5d887c04525409d3ff069ca66e29dea39cba9a55 | [
"Apache-2.0"
] | 9 | 2015-09-16T19:03:15.000Z | 2020-03-11T18:04:00.000Z | <#
.Synopsis
Gets the comments of a Reddit link, or several.
.DESCRIPTION
Uses the Reddit API to get comments made on a given link, collection of posts or the id.
.EXAMPLE
Get-RedditComment -id "3i9psm"
.EXAMPLE
"https://www.reddit.com/r/redditdev/comments/3i9psm/how_can_i_find_the_id_of_the_original_post_in_a/" | Get-RedditComment
.EXAMPLE
Get-RedditPost -Name PowerShell | Select-Object -First 1 | Get-RedditComment
#>
function Get-RedditComment
{
[CmdletBinding()]
Param (
[Parameter(
Position = 1,
Mandatory = $true,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true
)]
[Alias("Link", "Name")]
[string]
$id
)
Process
{
## Depending on how we passed the id to the function, we need to
## strip some characters.
switch ($id)
{
{($id -like "t3_*")}
{
$id = $id -replace "t3_", ""
break
}
{($id -like "http*")}
{
$id = $id.Split("/")[6]
break
}
}
$uri = 'http://www.reddit.com/comments/{0}.json' -f $id
Write-Verbose "Sending request to $uri"
$listings = (Invoke-RestMethod $uri) | Where kind -eq 'Listing'
# Comments have a type 't1' in Reddit API
$comments = $listings | ForEach-Object { $_.data.children } | Where-Object kind -eq 't1' | Select-Object -Expand data
$comments | ForEach-Object { $_.PSObject.TypeNames.Insert(0,'PowerReddit.Comment'); $_ }
}
}
| 28.607143 | 125 | 0.567416 |
43765f8e7ddab0ec808bee1ac8684b21cd0efd56 | 6,397 | tsx | TypeScript | apps/www/pages/donate/cancel/index.tsx | keesey/phylopic | 3838490675b9a10a30e7c63c8b0ed3006a30c427 | [
"MIT"
] | null | null | null | apps/www/pages/donate/cancel/index.tsx | keesey/phylopic | 3838490675b9a10a30e7c63c8b0ed3006a30c427 | [
"MIT"
] | 2 | 2022-03-28T17:48:48.000Z | 2022-03-28T20:27:23.000Z | apps/www/pages/donate/cancel/index.tsx | keesey/phylopic | 3838490675b9a10a30e7c63c8b0ed3006a30c427 | [
"MIT"
] | null | null | null | import { BuildContainer } from "@phylopic/utils-api"
import type { NextPage } from "next"
import React from "react"
import { SWRConfig } from "swr"
import PageHead from "~/metadata/PageHead"
import SearchContainer from "~/search/SearchContainer"
import AnchorLink from "~/ui/AnchorLink"
import Breadcrumbs from "~/ui/Breadcrumbs"
import BulletList from "~/ui/BulletList"
import InlineSections from "~/ui/InlineSections"
import PageLoader from "~/ui/PageLoader"
import SearchOverlay from "~/ui/SearchOverlay"
import SiteFooter from "~/ui/SiteFooter"
import SiteNav from "~/ui/SiteNav"
import SiteTitle from "~/ui/SiteTitle"
const PageComponent: NextPage = () => (
<SWRConfig>
<BuildContainer>
<PageLoader />
<PageHead title="PhyloPic: Other Ways to Contribute" url="https://www.phylopic.org/contribute/cancel" />
<SearchContainer>
<header>
<SiteNav />
</header>
<main>
<SearchOverlay>
<header>
<Breadcrumbs
items={[
{ children: "Home", href: "/" },
{ children: "Donate", href: "/donate" },
{ children: <strong>Other Ways to Contribute</strong> },
]}
/>
<p>
<strong>
Decided not to donate to <SiteTitle />?
</strong>{" "}
That’s O.K., there are…
</p>
<h1>Other Ways to Contribute</h1>
</header>
<InlineSections>
<section>
<h2>Upload a Silhouette</h2>
<p>
<SiteTitle /> relies on silhouettes uploaded by people like you! Use the{" "}
<a href="https://contribute.phylopic.org">Image Uploader</a> to add your artwork the
database of freely-reusable images!
</p>
<p></p>
</section>
<section>
<h2>Become a Patron</h2>
<p>
For as little as $1 a month, you can see previews of new <SiteTitle />{" "}
functionality, as well as updates on other projects by{" "}
<AnchorLink
href={`/contributors/${process.env.NEXT_PUBLIC_CONTACT_CONTRIBUTOR_UUID}`}
>
Mike Keesey
</AnchorLink>
, like the comic book series{" "}
<a href="https://www.keesey-comics.com/paleocene">
<cite>Paleocene</cite>
</a>
. <a href="https://www.patreon.com/tmkeesey?fan_landing=true">Become a patron!</a>
</p>
</section>
<section>
<h2>Spread the Word!</h2>
<p>
Tell people about{" "}
<a href="https://www.phylopic.org">
<SiteTitle />
</a>
!
</p>
</section>
<section>
<h2>Support Free Technologies</h2>
<p>
<SiteTitle /> relies on a number of free, open-source technologies. Support them
instead! Here are a few:
</p>
<BulletList>
<li>
<a href="https://inkscape.org/support-us/">Inkscape</a>
</li>
<li>
<a href="https://imagemagick.org/script/support.php#support">ImageMagick</a>
</li>
<li>
<a href="https://opencollective.com/mochajs#support">Mocha</a>
</li>
</BulletList>
</section>
<section>
<h2>Software Engineering</h2>
<p>
If you are technically inclined, check out the{" "}
<a href="https://github.com/keesey/phylopic">code repository</a> and/or the{" "}
<a href="http://api-docs.phylopic.org/2.0">API Documentation</a>. Think about
contributing to <SiteTitle /> or building a tool that uses it.
</p>
</section>
<section>
<h2>Change Your Mind?</h2>
<p>
Come on, you want to donate <em>something</em> don’t you? Right?
</p>
<p>
<AnchorLink href="/donate">Go back!</AnchorLink>
</p>
</section>
</InlineSections>
</SearchOverlay>
</main>
<SiteFooter />
</SearchContainer>
</BuildContainer>
</SWRConfig>
)
export default PageComponent
| 51.176 | 120 | 0.357511 |
4014386b29721c730a722c5ee20e39823d0c2557 | 2,891 | asm | Assembly | Transynther/x86/_processed/P/_zr_/i3-7100_9_0xca_notsx.log_1_837.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/P/_zr_/i3-7100_9_0xca_notsx.log_1_837.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/P/_zr_/i3-7100_9_0xca_notsx.log_1_837.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1e41b, %r15
nop
nop
nop
sub %rdx, %rdx
movw $0x6162, (%r15)
cmp %rbx, %rbx
lea addresses_D_ht+0x1e89b, %rdi
add $50710, %rax
mov $0x6162636465666768, %r8
movq %r8, %xmm5
and $0xffffffffffffffc0, %rdi
vmovaps %ymm5, (%rdi)
nop
nop
nop
nop
and $42572, %rdi
lea addresses_A_ht+0x1bd1b, %rcx
nop
and %r15, %r15
movw $0x6162, (%rcx)
nop
nop
nop
nop
nop
and %r8, %r8
lea addresses_normal_ht+0x1149b, %rbx
add %rax, %rax
mov (%rbx), %r15d
nop
nop
nop
nop
nop
dec %rcx
lea addresses_D_ht+0x18ca3, %rsi
lea addresses_WC_ht+0x885b, %rdi
nop
nop
nop
nop
dec %r8
mov $83, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_UC_ht+0x13f7b, %rsi
lea addresses_WC_ht+0x659b, %rdi
clflush (%rdi)
nop
add %rbx, %rbx
mov $46, %rcx
rep movsw
nop
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0xdf2b, %rdx
nop
nop
nop
nop
nop
add %r15, %r15
mov (%rdx), %rbx
nop
add %r15, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
push %rsi
// Store
lea addresses_WC+0x1829b, %rbx
xor %r11, %r11
movb $0x51, (%rbx)
nop
nop
nop
nop
nop
xor $31922, %rbx
// Faulty Load
mov $0xc9b, %rbp
nop
nop
nop
dec %rdx
mov (%rbp), %ebx
lea oracles, %rsi
and $0xff, %rbx
shlq $12, %rbx
mov (%rsi,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_P', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 1}
00
*/
| 18.651613 | 148 | 0.646835 |
c385eb76d4bd5255dee10f84abba9f6a04a083ac | 1,150 | cs | C# | Assets/Scripts/Sounds/SoundManager.cs | KristopherMoore/Midnight-The-Final-Sun | a6846369717ecea929a625a5b31e0500e34d978e | [
"Unlicense"
] | 3 | 2019-05-15T15:42:55.000Z | 2019-10-10T19:32:58.000Z | Assets/Scripts/Sounds/SoundManager.cs | KristopherMoore/Midnight-The-Final-Sun | a6846369717ecea929a625a5b31e0500e34d978e | [
"Unlicense"
] | 1 | 2019-05-18T21:23:43.000Z | 2019-05-18T21:23:43.000Z | Assets/Scripts/Sounds/SoundManager.cs | KristopherMoore/Midnight-The-Final-Sun | a6846369717ecea929a625a5b31e0500e34d978e | [
"Unlicense"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SoundManager : MonoBehaviour {
public static SoundManager Instance;
//variables for the players Weapon
private GameObject playerWeapon;
private AudioSource weaponAudioSource;
// Use this for initialization
void Start ()
{
Instance = this;
findEquippedWeapon();
weaponAudioSource = playerWeapon.GetComponent<AudioSource>();
}
public void PlaySound(string soundName)
{
if(soundName == "Fire")
{
weaponAudioSource.Play();
}
}
private void findEquippedWeapon()
{
//find our Main Camera gameObject
playerWeapon = GameObject.Find("Main Camera");
//grab our weapon bone
playerWeapon = HelperK.FindSearchAllChildren(playerWeapon.transform, "WEAPON").gameObject;
//find the name of the object current the child of our WEAPON bone, this way we dont need to know the name of the weapon currently equipped. We just know where it will be
playerWeapon = playerWeapon.transform.GetChild(0).gameObject;
}
}
| 26.136364 | 178 | 0.68087 |
c8c99ad6edae849d6115e850e99010e7ffc89d35 | 419 | swift | Swift | VKClientSample/Models/News/PostPhoto.swift | rdscoo1/VKClientSample | dbba30a533d99666e66b4d6523f58b89e556f641 | [
"MIT"
] | null | null | null | VKClientSample/Models/News/PostPhoto.swift | rdscoo1/VKClientSample | dbba30a533d99666e66b4d6523f58b89e556f641 | [
"MIT"
] | null | null | null | VKClientSample/Models/News/PostPhoto.swift | rdscoo1/VKClientSample | dbba30a533d99666e66b4d6523f58b89e556f641 | [
"MIT"
] | null | null | null | //
// PostPhoto.swift
// VKClientSample
//
// Created by Roman Khodukin on 9/21/20.
// Copyright © 2020 Roman Khodukin. All rights reserved.
//
struct PostPhoto: Decodable {
let id: Int
let sizes: [PostPhotoSize]?
var highResPhoto: String {
guard let photoLinkhighRes = sizes?.first(where: { $0.type == "x" })?.url else {
return ""
}
return photoLinkhighRes
}
}
| 22.052632 | 88 | 0.606205 |
6b9ef879ae5c7a635de40eb106d376f953e57998 | 1,953 | dart | Dart | pgsql_serializable/test/src/core_subclass_type_input.dart | anycode/pgsql_serializable.dart | f792a1823a1e6eb8900ddc39bacd4b13b1b8d38c | [
"BSD-3-Clause"
] | null | null | null | pgsql_serializable/test/src/core_subclass_type_input.dart | anycode/pgsql_serializable.dart | f792a1823a1e6eb8900ddc39bacd4b13b1b8d38c | [
"BSD-3-Clause"
] | 4 | 2022-01-03T21:13:19.000Z | 2022-03-21T21:12:51.000Z | pgsql_serializable/test/src/core_subclass_type_input.dart | anycode/pgsql_serializable.dart | f792a1823a1e6eb8900ddc39bacd4b13b1b8d38c | [
"BSD-3-Clause"
] | null | null | null | part of '_pgsql_serializable_test_input.dart';
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `mapView`.
To support the type `MapView` you can:
$converterOrKeyInstructions''',
element: 'mapView',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedMapField {
late MapView mapView;
}
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `listView`.
To support the type `UnmodifiableListView` you can:
$converterOrKeyInstructions''',
element: 'listView',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedListField {
late UnmodifiableListView listView;
}
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `customSet`.
To support the type `_CustomSet` you can:
$converterOrKeyInstructions''',
element: 'customSet',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedSetField {
late _CustomSet customSet;
}
abstract class _CustomSet implements Set {}
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `customDuration`.
To support the type `_CustomDuration` you can:
$converterOrKeyInstructions''',
element: 'customDuration',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedDurationField {
late _CustomDuration customDuration;
}
abstract class _CustomDuration implements Duration {}
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `customUri`.
To support the type `_CustomUri` you can:
$converterOrKeyInstructions''',
element: 'customUri',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedUriField {
_CustomUri? customUri;
}
abstract class _CustomUri implements Uri {}
@ShouldThrow(
'''
Could not generate `fromPgSql` code for `customDateTime`.
To support the type `_CustomDateTime` you can:
$converterOrKeyInstructions''',
element: 'customDateTime',
)
@PgSqlSerializable(createToPgSql: false)
class UnsupportedDateTimeField {
late _CustomDateTime customDateTime;
}
abstract class _CustomDateTime implements DateTime {}
| 23.817073 | 57 | 0.775218 |
45ee83a3fcab2775a5d7d462c57a603549583b31 | 4,469 | dart | Dart | lib/core/api/models/posts/post_created_updated_response.dart | musicplayce/flutter-sdk | 6d74f92d048baec1897f9776d44f01865c6286ae | [
"MIT"
] | 4 | 2020-05-14T22:19:51.000Z | 2022-03-15T22:06:43.000Z | lib/core/api/models/posts/post_created_updated_response.dart | lebaleiro07/flutter-sdk | 7abb867517272efc27e92b9bcf5614bef90a2b25 | [
"MIT"
] | 1 | 2020-09-03T03:17:10.000Z | 2020-09-03T03:17:10.000Z | lib/core/api/models/posts/post_created_updated_response.dart | lebaleiro07/flutter-sdk | 7abb867517272efc27e92b9bcf5614bef90a2b25 | [
"MIT"
] | 3 | 2020-08-20T15:16:03.000Z | 2020-10-14T15:12:37.000Z | import 'dart:convert';
import 'package:music_playce_sdk/core/api/models/posts/meta.model.dart';
import '../users/picture.model.dart';
import '../users/user_response.model.dart';
import 'like.model.dart';
import 'music.model.dart';
import 'release.model.dart';
import 'tag.model.dart';
class PostCreateUpdatedResponse {
String idPost;
String postName;
String idUploader;
String idMedia;
double duration;
String idPicture;
List<String> idComposers;
List<String> idInterpreters;
List<String> idTags;
String lyrics;
int likes;
int plays;
int indications;
int acceptedTerms;
bool processed;
Meta meta;
bool deleted;
DateTime datetimeCreated;
DateTime datetimeUpdated;
PostCreateUpdatedResponse({
this.idPost,
this.postName,
this.idUploader,
this.idMedia,
this.duration,
this.idPicture,
this.idComposers,
this.idInterpreters,
this.idTags,
this.lyrics,
this.likes,
this.plays,
this.indications,
this.acceptedTerms,
this.processed,
this.meta,
this.deleted,
this.datetimeCreated,
this.datetimeUpdated,
});
factory PostCreateUpdatedResponse.fromJson(String str) =>
PostCreateUpdatedResponse.fromMap(json.decode(str));
String toJson() => json.encode(toMap());
factory PostCreateUpdatedResponse.fromMap(Map<String, dynamic> json) =>
new PostCreateUpdatedResponse(
idPost: json["_id"] == null ? null : json["_id"],
postName: json["name"] == null ? null : json["name"],
idUploader: json["id_uploader"] == null ? null : json["id_uploader"],
idMedia: json["id_media"] == null ? null : json["id_media"],
duration: json["duration"] == null ? null : json["duration"].toDouble(),
idPicture: json["id_picture"] == null ? null : json["id_picture"],
idComposers: json["id_composers"] == null
? null
: List<String>.from(json["id_composers"].map((x) => x)),
idInterpreters: json["id_interpreters"] == null
? null
: List<String>.from(json["id_interpreters"].map((x) => x)),
idTags: json["id_tags"] == null
? null
: List<String>.from(json["id_tags"].map((x) => x)),
lyrics: json["lyrics"] == null ? null : json["lyrics"],
likes: json["likes"] == null ? null : json["likes"],
plays: json["plays"] == null ? null : json["plays"],
indications: json["indications"] == null ? null : json["indications"],
acceptedTerms:
json["accepted_terms"] == null ? null : json["accepted_terms"],
processed: json["processed"] == null ? null : json["processed"],
meta: json['meta'] == null ? null : Meta.fromMap(json['meta']),
deleted: json["deleted"] == null ? null : json["deleted"],
datetimeCreated: json["datetime_created"] == null
? null
: DateTime.parse(json["datetime_created"]),
datetimeUpdated: json["datetime_updated"] == null
? null
: DateTime.parse(json["datetime_updated"]),
);
Map<String, dynamic> toMap() => {
"_id": idPost == null ? null : idPost,
"name": postName == null ? null : postName,
"id_uploader": idUploader == null ? null : idUploader,
"id_media": idMedia == null ? null : idMedia,
"duration": duration == null ? null : duration,
"id_picture": idPicture == null ? null : idPicture,
"id_composers": idComposers == null
? null
: List<String>.from(idComposers.map((x) => x)),
"id_interpreters": idInterpreters == null
? null
: List<String>.from(idInterpreters.map((x) => x)),
"id_tags":
idTags == null ? null : List<String>.from(idTags.map((x) => x)),
"lyrics": lyrics == null ? null : lyrics,
"likes": likes == null ? null : likes,
"plays": plays == null ? null : plays,
"indications": indications == null ? null : indications,
"accepted_terms": acceptedTerms == null ? null : acceptedTerms,
"processed": processed == null ? null : processed,
"meta": meta == null ? null : meta.toMap(),
"deleted": deleted == null ? null : deleted,
"datetime_created":
datetimeCreated == null ? null : datetimeCreated.toIso8601String(),
"datetime_updated":
datetimeUpdated == null ? null : datetimeUpdated.toIso8601String(),
};
}
| 36.333333 | 80 | 0.603267 |
1a8f48a7766b74f41bbae07e905b92e629940ae6 | 1,512 | py | Python | inference.py | Jia-Wei-Liao/Set14_Dataset_Super-Resolution | a24098d8dc52ea463b2e1dca838ad60da019a720 | [
"MIT"
] | null | null | null | inference.py | Jia-Wei-Liao/Set14_Dataset_Super-Resolution | a24098d8dc52ea463b2e1dca838ad60da019a720 | [
"MIT"
] | null | null | null | inference.py | Jia-Wei-Liao/Set14_Dataset_Super-Resolution | a24098d8dc52ea463b2e1dca838ad60da019a720 | [
"MIT"
] | null | null | null | import os
import tqdm
import imageio
import argparse
import options.options as option
from solvers import create_solver
from data import create_dataset, create_dataloader
from utils import util
def main(args):
opt = option.parse(args.opt)
opt = option.dict_to_nonedict(opt)
solver = create_solver(opt)
bm_names = []
test_loaders = []
for _, dataset_opt in sorted(opt['datasets'].items()):
test_set = create_dataset(dataset_opt)
test_loader = create_dataloader(test_set, dataset_opt)
test_loaders.append(test_loader)
bm_names.append(test_set.name())
for bm, test_loader in zip(bm_names, test_loaders):
save_path_list = opt['solver']['pretrained_path'].split(os.sep)[:-2]
save_path = '/'.join(save_path_list)
save_img_path = os.path.join(save_path, 'result')
os.makedirs(save_img_path, exist_ok=True)
for batch in tqdm.tqdm(test_loader):
solver.feed_data(batch, need_HR=False)
solver.test()
visuals = solver.get_current_visual(need_HR=False)
imageio.imwrite(os.path.join(
save_img_path,
os.path.basename(batch['LR_path'][0])[:-4]+'_pred.png'
), visuals['SR'])
print("finish!")
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-opt', type=str, required=True,
help='path to options json file.')
args = parser.parse_args()
main(args)
| 30.857143 | 76 | 0.647487 |
dd7722ac8e0d04a7fdb5c68012625fc7051f3551 | 734 | java | Java | L05/src/main/java/l05/ExampleTestClass.java | anton-okolelov/otus-java-2017-11-anton-okolelov | ba16796b6a6e157879d3cd2c77458a8198cd6907 | [
"Apache-2.0"
] | 1 | 2020-12-07T09:44:57.000Z | 2020-12-07T09:44:57.000Z | L05/src/main/java/l05/ExampleTestClass.java | anton-okolelov/otus-java-2017-11-anton-okolelov | ba16796b6a6e157879d3cd2c77458a8198cd6907 | [
"Apache-2.0"
] | null | null | null | L05/src/main/java/l05/ExampleTestClass.java | anton-okolelov/otus-java-2017-11-anton-okolelov | ba16796b6a6e157879d3cd2c77458a8198cd6907 | [
"Apache-2.0"
] | null | null | null | package l05;
import l05.myunit.annotations.After;
import l05.myunit.annotations.Before;
import l05.myunit.annotations.Test;
import static l05.myunit.Assert.*;
import java.util.ArrayList;
import java.util.List;
public class ExampleTestClass {
private List<String> list = new ArrayList<>();
@Before
public void before() {
list.add("A");
list.add("B");
}
@Test
public void testFail() {
// сфейлится
assertEquals(1, list.size());
}
@Test
public void testAnotherFail() {
// сфейлится
fail();
}
@Test
public void testOk() {
assertTrue(!list.isEmpty());
}
@After
public void after() {
list.clear();
}
}
| 16.681818 | 50 | 0.589918 |
f4af96701c441a0950125d7b80f203c18f017bdf | 2,777 | tsx | TypeScript | src/components/addpeer/TabSteps.tsx | mastermind88/wiretrustee-dashboard | 6724e5bfaabdb5662ef48de2c965a1260e41a1a3 | [
"BSD-3-Clause"
] | 3 | 2022-03-27T19:33:56.000Z | 2022-03-28T15:03:23.000Z | src/components/addpeer/TabSteps.tsx | mastermind88/wiretrustee-dashboard | 6724e5bfaabdb5662ef48de2c965a1260e41a1a3 | [
"BSD-3-Clause"
] | 3 | 2022-03-25T16:33:52.000Z | 2022-03-26T11:51:07.000Z | src/components/addpeer/TabSteps.tsx | mastermind88/wiretrustee-dashboard | 6724e5bfaabdb5662ef48de2c965a1260e41a1a3 | [
"BSD-3-Clause"
] | 2 | 2022-03-26T08:17:09.000Z | 2022-03-26T11:29:53.000Z | import {useDispatch, useSelector} from "react-redux";
import Highlight from 'react-highlight';
import "highlight.js/styles/mono-blue.css";
import "highlight.js/lib/languages/bash";
import { StepCommand } from './types'
import {
Typography,
Space,
Steps, Button
} from "antd";
import {copyToClipboard} from "../../utils/common";
import {CheckOutlined, CopyOutlined} from "@ant-design/icons";
import React, {useEffect, useState} from "react";
const { Title, Text } = Typography;
const { Step } = Steps;
type Props = {
stepsItems: Array<StepCommand>
};
const TabSteps:React.FC<Props> = ({stepsItems}) => {
const [steps, setSteps] = useState(stepsItems)
useEffect(() => setSteps(stepsItems), [stepsItems])
const onCopyClick = (key: string | number, commands:React.ReactNode | string, copied: boolean) => {
if (!(typeof commands === 'string')) return
copyToClipboard(commands)
const step = steps.find(s => s.key === key)
if (step) step.copied = copied
setSteps([...steps])
if (copied) {
setTimeout(() => {
onCopyClick(key, commands, false)
}, 2000)
}
}
return (
<Steps direction="vertical" current={0}>
{steps.map(c =>
<Step
key={c.key}
title={c.title}
description={
<Space className="nb-code" direction="vertical" size="small" style={{display: "flex"}}>
{ (c.commands && (typeof c.commands === 'string' || c.commands instanceof String)) ? (
<Highlight className='bash'>
{c.commands}
</Highlight>
) : (
c.commands
)}
{ c.showCopyButton &&
<>
{ !c.copied ? (
<Button type="text" size="large" className="btn-copy-code" icon={<CopyOutlined/>}
style={{color: "rgb(107, 114, 128)"}}
onClick={() => onCopyClick(c.key, c.commands, true)}/>
): (
<Button type="text" size="large" className="btn-copy-code" icon={<CheckOutlined/>}
style={{color: "green"}}/>
)}
</>
}
</Space>
}
/>
)}
</Steps>
)
}
export default TabSteps; | 35.151899 | 118 | 0.443644 |
54399235072c4274a2703d16708860d7541ef2dd | 75 | css | CSS | src/Sankey/SankeyLabel/SankeyLabel.module.css | mallowigi/reaviz | 16bb931bc6d0a14576c4b7f2007949e15263cd39 | [
"Apache-2.0"
] | 541 | 2020-04-27T17:45:17.000Z | 2022-03-28T18:41:30.000Z | src/Sankey/SankeyLabel/SankeyLabel.module.css | mallowigi/reaviz | 16bb931bc6d0a14576c4b7f2007949e15263cd39 | [
"Apache-2.0"
] | 43 | 2020-05-04T16:29:05.000Z | 2022-03-30T11:45:03.000Z | src/Sankey/SankeyLabel/SankeyLabel.module.css | mallowigi/reaviz | 16bb931bc6d0a14576c4b7f2007949e15263cd39 | [
"Apache-2.0"
] | 91 | 2020-05-07T15:37:27.000Z | 2022-03-30T09:47:19.000Z | .label {
font-size: 12px;
user-select: none;
pointer-events: none;
}
| 12.5 | 23 | 0.64 |
316aa3d7de9afd18c96298878997125e914954c3 | 246 | rb | Ruby | spec/stub_display.rb | sohbaker/ruby-tic-tac-toe | 07c62fbbdcaede62855b9f986e47d9221702f255 | [
"MIT"
] | 2 | 2019-03-18T14:07:01.000Z | 2019-03-18T16:00:52.000Z | spec/stub_display.rb | sohbaker/tic_tac_toe_ruby | 07c62fbbdcaede62855b9f986e47d9221702f255 | [
"MIT"
] | 3 | 2019-03-25T11:04:04.000Z | 2019-04-10T14:47:19.000Z | spec/stub_display.rb | sohbaker/ruby-tic-tac-toe | 07c62fbbdcaede62855b9f986e47d9221702f255 | [
"MIT"
] | null | null | null | class StubDisplay
def show_board(_board)
end
def announce_tie
end
def announce_win(player)
end
def clear_screen
end
def prompt_player(player)
end
def notify_invalid(selection)
end
def pause_message
end
end
| 9.84 | 31 | 0.707317 |
b727edd6f6e528c256e2dc56b9a9c2e0379019bf | 1,531 | cpp | C++ | tests/test_cpu.cpp | Ma-Dan/ncnn | 8e94566ffb6b676b05a3d2875eaa9463acc4a176 | [
"BSD-3-Clause"
] | 59 | 2020-12-28T02:46:58.000Z | 2022-02-10T14:50:48.000Z | tests/test_cpu.cpp | Ma-Dan/ncnn | 8e94566ffb6b676b05a3d2875eaa9463acc4a176 | [
"BSD-3-Clause"
] | 2 | 2020-11-05T05:39:31.000Z | 2020-11-27T06:08:23.000Z | tests/test_cpu.cpp | Ma-Dan/ncnn | 8e94566ffb6b676b05a3d2875eaa9463acc4a176 | [
"BSD-3-Clause"
] | 13 | 2020-12-28T02:49:01.000Z | 2022-03-12T11:58:33.000Z | #include <stdio.h>
#include "cpu.h"
#if defined __ANDROID__ || defined __linux__
static int test_cpu_set()
{
ncnn::CpuSet set;
if (set.num_enabled() != 0)
{
fprintf(stderr, "By default all cpus should be disabled\n");
return 1;
}
set.enable(0);
if (!set.is_enabled(0))
{
fprintf(stderr, "CpuSet enable doesn't work\n");
return 1;
}
if (set.num_enabled() != 1)
{
fprintf(stderr, "Only one cpu should be enabled\n");
return 1;
}
set.disable(0);
if (set.is_enabled(0))
{
fprintf(stderr, "CpuSet disable doesn't work\n");
return 1;
}
return 0;
}
static int test_cpu_info()
{
if (ncnn::get_cpu_count() >= 0 && ncnn::get_little_cpu_count() >= 0 && ncnn::get_big_cpu_count() >= 0)
{
return 0;
}
else
{
fprintf(stderr, "The system cannot have a negative number of processors\n");
return 1;
}
}
static int test_cpu_omp()
{
if (ncnn::get_omp_num_threads() >= 0 && ncnn::get_omp_thread_num() >= 0 && ncnn::get_omp_dynamic() >= 0)
{
return 0;
}
else
{
fprintf(stderr, "The OMP cannot have a negative number of processors\n");
return 1;
}
}
#else
static int test_cpu_set()
{
return 0;
}
static int test_cpu_info()
{
return 0;
}
static int test_cpu_omp()
{
return 0;
}
#endif
int main()
{
return 0
|| test_cpu_set()
|| test_cpu_info()
|| test_cpu_omp();
}
| 16.641304 | 108 | 0.555846 |
58959c6beb8606cc4fab76b57b5e646f55747fe8 | 293 | php | PHP | app/Models/OnlinePerson.php | wangsllsgnaw/yunda.com | b368cb38907f89d022d78822682c56edaac05f11 | [
"BSD-Source-Code",
"IJG"
] | null | null | null | app/Models/OnlinePerson.php | wangsllsgnaw/yunda.com | b368cb38907f89d022d78822682c56edaac05f11 | [
"BSD-Source-Code",
"IJG"
] | null | null | null | app/Models/OnlinePerson.php | wangsllsgnaw/yunda.com | b368cb38907f89d022d78822682c56edaac05f11 | [
"BSD-Source-Code",
"IJG"
] | null | null | null | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class OnlinePerson extends Model{
protected $connection = 'online_mysql';
protected $table = 'person';
public function personRefer(){
return $this->hasOne('App\Models\OnlinePersonRefer','person_id', 'id');
}
} | 20.928571 | 73 | 0.726962 |
21c90a89b44f0a624771008af6a22e535ccd3c3d | 1,209 | js | JavaScript | app/imports/api/intentions/intentions.js | TheAmplifield/platform | 22e2d8d262b7aea2765ae70e2964b2e24df6bea2 | [
"MIT"
] | 1 | 2020-04-14T04:40:40.000Z | 2020-04-14T04:40:40.000Z | app/imports/api/intentions/intentions.js | toddgoldfarb/platform | 22e2d8d262b7aea2765ae70e2964b2e24df6bea2 | [
"MIT"
] | 1 | 2018-01-19T20:52:57.000Z | 2018-01-19T20:52:57.000Z | app/imports/api/intentions/intentions.js | toddgoldfarb/platform | 22e2d8d262b7aea2765ae70e2964b2e24df6bea2 | [
"MIT"
] | null | null | null | import { Mongo } from 'meteor/mongo';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
// import { amplify } from '../likes/methods.js';
// import { Likes } from '../likes/likes.js';
const IntentionSchema = new SimpleSchema({
userId: {
type: String,
},
userName: {
type: String,
},
userAvatar: {
type: String,
},
userLocation: {
type: String,
},
userLatlng: {
type: [String],
optional: true,
},
eventId: {
type: String,
optional: true,
},
text: {
type: String,
},
ampCount: {
type: Number,
min: 0,
defaultValue: 0,
},
pinned: {
type: Boolean,
defaultValue: false,
},
createdAt: {
type: Date,
},
});
const Intentions = new Mongo.Collection('intentions');
Intentions.attachSchema(IntentionSchema);
/* Intentions.helpers({
* amplify(callback) {
* amplify.call({ intentionId: this._id }, callback);
* },
*
* userAmplified() {
* return !!Likes.findOne({ userId: Meteor.userId(), objectId: this._id });
* },
* });
* */
// if (Meteor.isClient) {
// Intentions._transform = function transform(doc) {
// return new IntentionModel(doc);
// };
// }
export { Intentions };
| 18.890625 | 79 | 0.589744 |
8ddcae4de52f412e2a2f8399c01932cdf56bab60 | 1,008 | js | JavaScript | bili.rootconfig.js | alex-min/animxyz | 944090b0361945d5cec211b93acbcfcf49440247 | [
"MIT"
] | 2 | 2021-01-14T01:16:34.000Z | 2021-01-14T07:36:26.000Z | bili.rootconfig.js | alex-min/animxyz | 944090b0361945d5cec211b93acbcfcf49440247 | [
"MIT"
] | null | null | null | bili.rootconfig.js | alex-min/animxyz | 944090b0361945d5cec211b93acbcfcf49440247 | [
"MIT"
] | 1 | 2021-01-14T02:21:01.000Z | 2021-01-14T02:21:01.000Z | module.exports = function (pkg) {
const banner = `/**
* ${pkg.moduleName} v${pkg.version}
* Copyright (c) 2020-present Ingram Projects
* Released under the ${pkg.license} License.
* ${pkg.homepage}
*/
`
return {
banner,
input: 'src/index.js',
output: {
moduleName: pkg.moduleName,
fileName({ format }, defaultFileName) {
if (format === 'umd') {
return `${pkg.moduleName}.js`
}
if (format === 'esm') {
return `${pkg.moduleName}.esm.js`
}
if (format === 'cjs') {
return `${pkg.moduleName}.cjs.js`
}
return defaultFileName
},
format: ['umd', 'esm', 'cjs'],
sourceMapExcludeSources: true,
},
babel: {
minimal: true,
},
extendConfig(config, { format }) {
if (format === 'umd') {
config.output.minify = true
config.env = {
...config.env,
NODE_ENV: 'production',
}
}
return config
},
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})],
}
}
| 21.913043 | 97 | 0.566468 |
b0236fe3d1a042b6fb68c15775194e43935217f6 | 464 | py | Python | azure_cli.py | isabella232/azure-storage-dd | fc763f71a4b84498d2d7f3ef90660c9f891b85af | [
"BSD-3-Clause"
] | 2 | 2017-06-21T11:02:34.000Z | 2019-07-19T21:10:30.000Z | azure_cli.py | DataDog/azure-storage-dd | fc763f71a4b84498d2d7f3ef90660c9f891b85af | [
"BSD-3-Clause"
] | 3 | 2017-08-07T04:43:32.000Z | 2018-05-28T10:26:43.000Z | azure_cli.py | isabella232/azure-storage-dd | fc763f71a4b84498d2d7f3ef90660c9f891b85af | [
"BSD-3-Clause"
] | 5 | 2017-03-28T23:08:19.000Z | 2021-02-24T11:27:21.000Z | """
CLI for Azure
"""
#stdlib
import argparse
# cli modules
from cli.storage_azure import StorageCLI
if __name__ == "__main__":
tools = [
StorageCLI,
]
parser = argparse.ArgumentParser(
description="Azure CLI to create/manage resource groups, namespaces, and generate data")
sub_parsers = parser.add_subparsers(help="commands")
for tool in tools:
tool(sub_parsers)
args = parser.parse_args()
args.func(args)
| 19.333333 | 96 | 0.676724 |
be42d46af18cec75b95acf43a30aabf00bedfe3d | 4,739 | ts | TypeScript | client/src/game/api/events/shape/core.ts | hktrpg/PlanarAlly | ec2db6d53a619a9629e40f1ed755b2ef97f128bd | [
"MIT"
] | null | null | null | client/src/game/api/events/shape/core.ts | hktrpg/PlanarAlly | ec2db6d53a619a9629e40f1ed755b2ef97f128bd | [
"MIT"
] | 1 | 2020-11-28T05:00:28.000Z | 2020-11-28T05:00:28.000Z | client/src/game/api/events/shape/core.ts | franluque2/PlanarAlly | d512b501f9e9803d13f7d38f37970f92708a67ab | [
"MIT"
] | null | null | null | import { SyncMode } from "../../../../core/comm/types";
import { ServerShape } from "../../../comm/types/shapes";
import { EventBus } from "../../../event-bus";
import { layerManager } from "../../../layers/manager";
import { floorStore, getFloorId } from "../../../layers/store";
import { moveFloor, moveLayer } from "../../../layers/utils";
import { gameManager } from "../../../manager";
import { changeGroupLeader, addGroupMember } from "../../../shapes/group";
import { Shape } from "../../../shapes/shape";
import { socket } from "../../socket";
import { Text } from "../../../shapes/text";
import { Rect } from "../../../shapes/rect";
import { Circle } from "../../../shapes/circle";
socket.on("Shape.Set", (data: ServerShape) => {
// hard reset a shape
const old = layerManager.UUIDMap.get(data.uuid);
if (old) old.layer.removeShape(old, SyncMode.NO_SYNC);
const shape = gameManager.addShape(data);
if (shape) EventBus.$emit("Shape.Set", shape);
});
socket.on("Shape.Add", (shape: ServerShape) => {
gameManager.addShape(shape);
});
socket.on("Shapes.Add", (shapes: ServerShape[]) => {
shapes.forEach(shape => gameManager.addShape(shape));
});
socket.on("Shapes.Remove", (shapes: string[]) => {
for (const uid of shapes) {
const shape = layerManager.UUIDMap.get(uid);
if (shape !== undefined) shape.layer.removeShape(shape, SyncMode.NO_SYNC);
}
});
socket.on("Shapes.Position.Update", (data: { uuid: string; position: { angle: number; points: number[][] } }[]) => {
for (const sh of data) {
const shape = layerManager.UUIDMap.get(sh.uuid);
if (shape === undefined) {
console.log(`Attempted to move unknown shape ${sh.uuid}`);
continue;
}
shape.setPositionRepresentation(sh.position);
}
});
socket.on("Shape.Order.Set", (data: { uuid: string; index: number }) => {
if (!layerManager.UUIDMap.has(data.uuid)) {
console.log(`Attempted to move the shape order of an unknown shape`);
return;
}
const shape = layerManager.UUIDMap.get(data.uuid)!;
shape.layer.moveShapeOrder(shape, data.index, false);
});
socket.on("Shapes.Floor.Change", (data: { uuids: string[]; floor: string }) => {
const shapes = <Shape[]>data.uuids.map(u => layerManager.UUIDMap.get(u) ?? undefined).filter(s => s !== undefined);
if (shapes.length === 0) return;
moveFloor(shapes, layerManager.getFloor(getFloorId(data.floor))!, false);
if (shapes.some(s => s.ownedBy({ editAccess: true })))
floorStore.selectFloor({ targetFloor: data.floor, sync: false });
});
socket.on("Shapes.Layer.Change", (data: { uuids: string[]; floor: string; layer: string }) => {
const shapes = <Shape[]>data.uuids.map(u => layerManager.UUIDMap.get(u) ?? undefined).filter(s => s !== undefined);
if (shapes.length === 0) return;
moveLayer(shapes, layerManager.getLayer(layerManager.getFloor(getFloorId(data.floor))!, data.layer)!, false);
});
socket.on("Shapes.Group.Leader.Set", (data: { leader: string; members: string[] }) => {
changeGroupLeader({ ...data, sync: false });
});
socket.on("Shapes.Group.Member.Add", (data: { leader: string; member: string }) => {
addGroupMember({ ...data, sync: false });
});
socket.on(
"Shapes.Trackers.Update",
(data: { uuid: string; value: number; shape: string; _type: "tracker" | "aura" }) => {
const shape = layerManager.UUIDMap.get(data.shape);
if (shape === undefined) return;
let tracker: Tracker | Aura | undefined;
if (data._type === "tracker") tracker = shape.trackers.find(t => t.uuid === data.uuid);
else tracker = shape.auras.find(a => a.uuid === data.uuid);
if (tracker !== undefined) {
tracker.value = data.value;
if (data._type === "aura") shape.layer.invalidate(!(<Aura>tracker).visionSource);
}
},
);
socket.on("Shape.Text.Value.Set", (data: { uuid: string; text: string }) => {
const shape = <Text | undefined>layerManager.UUIDMap.get(data.uuid);
if (shape === undefined) return;
shape.text = data.text;
shape.layer.invalidate(true);
});
socket.on("Shape.Rect.Size.Update", (data: { uuid: string; w: number; h: number }) => {
const shape = <Rect | undefined>layerManager.UUIDMap.get(data.uuid);
if (shape === undefined) return;
shape.w = data.w;
shape.h = data.h;
shape.layer.invalidate(!shape.triggersVisionRecalc);
});
socket.on("Shape.Circle.Size.Update", (data: { uuid: string; r: number }) => {
const shape = <Circle | undefined>layerManager.UUIDMap.get(data.uuid);
if (shape === undefined) return;
shape.r = data.r;
shape.layer.invalidate(!shape.triggersVisionRecalc);
});
| 39.491667 | 119 | 0.62376 |
ecc84d63102111b9160c1042a616d52a86695d8b | 12,266 | lua | Lua | addons/GearSwap/beta_examples_and_information/Byrth_THF.lua | sigilbaram/Lua | 8a950dc13a8d828eaa3c7f0b30bc746e7756607e | [
"Unlicense"
] | 167 | 2015-01-25T05:08:39.000Z | 2022-02-18T12:12:19.000Z | addons/GearSwap/beta_examples_and_information/Byrth_THF.lua | sigilbaram/Lua | 8a950dc13a8d828eaa3c7f0b30bc746e7756607e | [
"Unlicense"
] | 415 | 2015-01-03T04:51:19.000Z | 2022-03-30T14:12:43.000Z | addons/GearSwap/beta_examples_and_information/Byrth_THF.lua | sigilbaram/Lua | 8a950dc13a8d828eaa3c7f0b30bc746e7756607e | [
"Unlicense"
] | 437 | 2015-01-05T08:12:13.000Z | 2022-03-11T06:25:36.000Z | include('organizer-lib')
function get_sets()
TP_Index = 1
Idle_Index = 1
ta_hands = {name="Adhemar Wristbands +1"}
acc_hands = {name="Adhemar Wristbands +1"}
wsd_hands = {name="Meg. Gloves +1",}
crit_hands = {name="Adhemar Wristbands +1"}
dt_hands = { name="Herculean Gloves", augments={'Accuracy+30','Damage taken-4%','STR+9','Attack+4',}}
waltz_hands = { name="Herculean Gloves", augments={'Accuracy+22','"Waltz" potency +11%','STR+9',}}
sets.weapons = {}
sets.weapons[1] = {main="Taming Sari"}
sets.weapons[2]={main="Twashtar"}
sets.weapons[3]={main="Atoyac"}
sets.JA = {}
-- sets.JA.Conspirator = {body="Raider's Vest +2"}
-- sets.JA.Accomplice = {head="Raider's Bonnet +2"}
-- sets.JA.Collaborator = {head="Raider's Bonnet +2"}
sets.JA['Perfect Dodge'] = {hands="Plun. Armlets +1"}
sets.JA.Steal = {ammo="Barathrum",neck="Pentagalus Charm",hands="Thief's Kote",
waist="Key Ring Belt",legs="Pillager's Culottes +1",feet="Pillager's Poulaines +1"}
sets.JA.Flee = {feet="Pillager's Poulaines +1"}
sets.JA.Despoil = {ammo="Barathrum",legs="Raider's Culottes +2",feet="Skulker's Poulaines"}
-- sets.JA.Mug = {head="Assassin's Bonnet +2"}
sets.JA.Waltz = {head="Anwig Salade",
neck="Unmoving Collar +1",
body="Passion Jacket",
hands=waltz_hands,
ring1="Valseur's Ring",
ring2="Carbuncle Ring +1",
waist="Aristo Belt",
legs="Desultor Tassets",
feet="Dance Shoes"
}
sets.WS = {}
sets.WS.SA = {}
sets.WS.TA = {}
sets.WS.SATA = {}
sets.WS.Evisceration = {
ammo="Yetshila",
head="Adhemar Bonnet +1",
body="Abnoba Kaftan",
hands=crit_hands,
legs={ name="Lustr. Subligar +1", augments={'Accuracy+20','DEX+8','Crit. hit rate+3%',}},
feet="Adhe. Gamashes +1",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +25',}},
right_ear="Mache Earring +1",
left_ring="Begrudging Ring",
right_ring="Ramuh Ring +1",
back={ name="Toutatis's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
}
sets.WS["Rudra's Storm"] = {ammo="Seething Bomblet +1",
head="Lustratio Cap +1",
neck="Caro Necklace",
ear1="Moonshade Earring",
ear2="Ishvara Earring",
body="Adhemar Jacket +1",
hands=wsd_hands,
ring1="Ramuh Ring +1",
ring2="Ramuh Ring +1",
back={ name="Toutatis's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
waist="Grunfeld Rope",
legs="Lustratio Subligar +1",
feet="Lustratio Leggings +1",
}
sets.WS.SA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],{ammo="Yetshila",
head="Adhemar Bonnet +1",
body={ name="Herculean Vest", augments={'Accuracy+21','Crit. hit damage +5%','DEX+9',}},
}
)
sets.WS.TA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],{ammo="Yetshila",
head="Adhemar Bonnet +1",
body={ name="Herculean Vest", augments={'Accuracy+21','Crit. hit damage +5%','DEX+9',}},
}
)
sets.WS["Mandalic Stab"] = sets.WS["Rudra's Storm"]
sets.WS.SA["Mandalic Stab"] = sets.WS.SA["Rudra's Storm"]
sets.WS.TA["Mandalic Stab"] = sets.WS.TA["Rudra's Storm"]
sets.WS.Exenterator = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Fotia Gorget",ear1="Steelflash Earring",ear2="Bladeborn Earring",
body="Adhemar Jacket +1",
hands=ta_hands,
right_ring="Ilabrat Ring",
ring2="Epona's Ring",
back={ name="Toutatis's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
waist="Fotia Belt",
legs="Mummu Kecks +1",
feet="Adhemar Gamashes +1"
}
TP_Set_Names = {"Low Man","Delay Cap","Evasion","TH","Acc","DT"}
sets.TP = {}
sets.TP['Low Man'] = {
ammo="Seething Bomblet +1",
head="Adhemar Bonnet +1",
body="Adhemar Jacket +1",
hands={ name="Floral Gauntlets", augments={'Rng.Acc.+15','Accuracy+15','"Triple Atk."+3','Magic dmg. taken -4%',}},
legs="Mummu Kecks +1",
feet={ name="Herculean Boots", augments={'Accuracy+25','"Triple Atk."+4','DEX+10',}},
neck="Lissome Necklace",
waist="Reiki Yotai",
left_ear="Suppanomimi",
right_ear="Brutal Earring",
left_ring="Hetairoi Ring",
right_ring="Epona's Ring",
back={ name="Toutatis's Cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},
}
sets.TP['TH'] = set_combine(sets.TP['Low Man'],{
hands={ name="Plun. Armlets +1", augments={'Enhances "Perfect Dodge" effect',}},
feet="Skulker's Poulaines",
})
sets.TP['Acc'] = {
ammo="Falcon Eye",
head={ name="Dampening Tam", augments={'DEX+10','Accuracy+15','Mag. Acc.+15','Quadruple Attack +3',}},
body="Adhemar Jacket +1",
hands=acc_hands,
legs="Mummu Kecks +1",
feet={ name="Herculean Boots", augments={'Accuracy+25','"Triple Atk."+4','DEX+10',}},
neck="Combatant's Torque",
waist="Olseni Belt",
left_ear="Suppanomimi",
right_ear="Telos Earring",
left_ring="Ramuh Ring +1",
right_ring="Ramuh Ring +1",
back={ name="Toutatis's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
}
sets.TP['Delay Cap'] = {
ammo="Seething Bomblet +1",
head="Adhemar Bonnet +1",
body="Adhemar Jacket +1",
hands=ta_hands,
legs="Mummu Kecks +1",
feet={ name="Herculean Boots", augments={'Accuracy+25','"Triple Atk."+4','DEX+10',}},
neck="Lissome Necklace",
waist="Windbuffet Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Hetairoi Ring",
right_ring="Epona's Ring",
back={ name="Toutatis's Cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},
}
sets.TP.Evasion = {
ammo="Yamarang",
head="Adhemar Bonnet +1",
body="Adhemar Jacket +1",
hands=ta_hands,
legs="Mummu Kecks +1",
feet="Adhe. Gamashes +1",
neck="Combatant's Torque",
waist="Kasiri Belt",
left_ear="Eabani Earring",
right_ear="Infused Earring",
left_ring="Vengeful Ring",
right_ring="Epona's Ring",
back={ name="Canny Cape", augments={'DEX+5','"Dual Wield"+5',}},
}
sets.TP.DT = {
ammo="Seething Bomblet +1",
head={ name="Dampening Tam", augments={'DEX+10','Accuracy+15','Mag. Acc.+15','Quadruple Attack +3',}},
body="Emet Harness +1",
hands=dt_hands,
legs="Mummu Kecks +1",
feet={ name="Herculean Boots", augments={'Accuracy+20 Attack+20','Phys. dmg. taken -5%','DEX+10','Accuracy+6',}},
neck="Loricate Torque +1",
waist="Reiki Yotai",
left_ear="Suppanomimi",
right_ear="Genmei Earring",
left_ring="Defending Ring",
right_ring={ name="Dark Ring", augments={'Breath dmg. taken -4%','Phys. dmg. taken -6%','Magic dmg. taken -5%',}},
back={ name="Canny Cape", augments={'DEX+5','"Dual Wield"+5',}},
}
Idle_Set_Names = {'Normal','MDT',"STP"}
sets.Idle = {}
sets.Idle.Normal = {
ammo="Yamarang",
head="Meghanada Visor +1",
body="Emet Harness +1",
hands=dt_hands,
legs="Mummu Kecks +1",
feet="Skd. Jambeaux +1",
neck="Wiglen Gorget",
waist="Kasiri Belt",
left_ear="Etiolation Earring",
right_ear="Genmei Earring",
left_ring="Paguroidea Ring",
right_ring="Sheltered Ring",
back={ name="Toutatis's Cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},
}
sets.Idle.MDT = {
ammo="Yamarang",
head={ name="Dampening Tam", augments={'DEX+10','Accuracy+15','Mag. Acc.+15','Quadruple Attack +3',}},
body="Emet Harness +1",
hands=dt_hands,
legs="Mummu Kecks +1",
feet="Skd. Jambeaux +1",
neck="Loricate Torque +1",
waist="Wanion Belt",
left_ear="Etiolation Earring",
right_ear="Genmei Earring",
left_ring="Defending Ring",
right_ring={ name="Dark Ring", augments={'Breath dmg. taken -4%','Phys. dmg. taken -6%','Magic dmg. taken -5%',}},
back="Mollusca Mantle",
}
sets.Idle['STP'] = {
main="Vajra",
sub="Twashtar",
ammo="Ginsen",
head="Meghanada Visor +1",
body={ name="Herculean Vest", augments={'Accuracy+21','Crit. hit damage +5%','DEX+9',}},
hands="Adhemar Wristbands +1",
legs={ name="Samnuha Tights", augments={'STR+8','DEX+9','"Dbl.Atk."+3','"Triple Atk."+2',}},
feet="Skd. Jambeaux +1",
neck="Combatant's Torque",
waist="Goading Belt",
left_ear="Telos Earring",
right_ear="Digni. Earring",
left_ring="Apate Ring",
right_ring="Rajas Ring",
back={ name="Toutatis's Cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},
}
send_command('input /macro book 12;wait .1;input /macro set 2')
sets.FastCast = {
ammo="Impatiens",
head={ name="Herculean Helm", augments={'"Fast Cast"+6','Mag. Acc.+2',}},
body={ name="Taeon Tabard", augments={'Accuracy+22','"Fast Cast"+5','Crit. hit damage +3%',}},
hands="Leyline Gloves",
legs="Enif Cosciales",
feet={ name="Herculean Boots", augments={'Mag. Acc.+16','"Fast Cast"+6','MND+4',}},
neck="Orunmila's Torque",
left_ear="Loquac. Earring",
right_ear="Enchntr. Earring +1",
left_ring="Rahab Ring",
right_ring="Weather. Ring +1",
}
sets.frenzy = {head="Frenzy Sallet"}
end
function precast(spell)
if sets.JA[spell.english] then
equip(sets.JA[spell.english])
elseif spell.type=="WeaponSkill" then
if sets.WS[spell.english] then equip(sets.WS[spell.english]) end
if buffactive['sneak attack'] and buffactive['trick attack'] and sets.WS.SATA[spell.english] then equip(sets.WS.SATA[spell.english])
elseif buffactive['sneak attack'] and sets.WS.SA[spell.english] then equip(sets.WS.SA[spell.english])
elseif buffactive['trick attack'] and sets.WS.TA[spell.english] then equip(sets.WS.TA[spell.english]) end
elseif string.find(spell.english,'Waltz') then
equip(sets.JA.Waltz)
elseif spell.action_type == "Magic" then
equip(sets.FastCast)
end
end
function aftercast(spell)
if player.status=='Engaged' then
equip(sets.TP[TP_Set_Names[TP_Index]])
else
equip(sets.Idle[Idle_Set_Names[Idle_Index]])
end
end
function status_change(new,old)
if T{'Idle','Resting'}:contains(new) then
equip(sets.Idle[Idle_Set_Names[Idle_Index]])
elseif new == 'Engaged' then
equip(sets.TP[TP_Set_Names[TP_Index]])
end
end
function buff_change(buff,gain_or_loss)
if buff=="Sneak Attack" then
soloSA = gain_or_loss
elseif buff=="Trick Attack" then
soloTA = gain_or_loss
elseif gain_or_loss and buff == 'Sleep' and player.hp > 99 then
print('putting on Frenzy sallet!')
equip(sets.frenzy)
end
end
function self_command(command)
if command == 'toggle TP set' then
TP_Index = TP_Index +1
if TP_Index > #TP_Set_Names then TP_Index = 1 end
send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
equip(sets.TP[TP_Set_Names[TP_Index]])
elseif command == 'toggle Idle set' then
Idle_Index = Idle_Index +1
if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
equip(sets.Idle[Idle_Set_Names[Idle_Index]])
end
end | 38.211838 | 140 | 0.579733 |
385551cb907d17e1dc710e2bbc3b791973b96209 | 1,323 | php | PHP | src/main/php/com/selfcoders/phpdyndns/config/User.php | Programie/PHPDynDNS | 18521e41a4345b4d824593da07181886bf307ccc | [
"MIT"
] | 3 | 2015-05-15T12:14:28.000Z | 2020-11-10T21:40:33.000Z | src/main/php/com/selfcoders/phpdyndns/config/User.php | Programie/PHPDynDNS | 18521e41a4345b4d824593da07181886bf307ccc | [
"MIT"
] | 1 | 2020-06-09T20:57:03.000Z | 2020-06-11T16:28:25.000Z | src/main/php/com/selfcoders/phpdyndns/config/User.php | Programie/PHPDynDNS | 18521e41a4345b4d824593da07181886bf307ccc | [
"MIT"
] | 1 | 2018-02-20T01:43:13.000Z | 2018-02-20T01:43:13.000Z | <?php
namespace com\selfcoders\phpdyndns\config;
class User
{
/**
* @var string
*/
public $username;
/**
* @var string
*/
private $passwordHash;
/**
* @var Host[]
* @required
*/
public $hosts = [];
/**
* @var string|null
*/
public $postProcess;
/**
* @param string $password
* @return bool
*/
public function checkPassword(string $password)
{
return password_verify($password, $this->passwordHash);
}
/**
* @param string $hostname
* @return Host|null
*/
public function getHost(string $hostname)
{
return $this->hosts[$hostname] ?? null;
}
/**
* @param string $hash
* @required
*/
public function setPasswordHash(string $hash)
{
$this->passwordHash = $hash;
}
/**
* @param string $command
*/
public function setPostProcess(string $command)
{
$this->postProcess = $command;
}
/**
* @param Host[] $hosts
*/
public function setHosts(array $hosts)
{
foreach ($hosts as $hostname => $host) {
if ($host->hostname === null) {
$host->hostname = $hostname;
}
$this->hosts[$host->hostname] = $host;
}
}
} | 18.375 | 63 | 0.50189 |
f616f24d16b479a5662683750dc5047c412e924e | 49,886 | cpp | C++ | project4/mariadb/server/storage/connect/tabfmt.cpp | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 11 | 2017-10-28T08:41:08.000Z | 2021-06-24T07:24:21.000Z | project4/mariadb/server/storage/connect/tabfmt.cpp | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | null | null | null | project4/mariadb/server/storage/connect/tabfmt.cpp | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 4 | 2017-09-07T09:33:26.000Z | 2021-02-19T07:45:08.000Z | /************* TabFmt C++ Program Source Code File (.CPP) **************/
/* PROGRAM NAME: TABFMT */
/* ------------- */
/* Version 3.9.2 */
/* */
/* COPYRIGHT: */
/* ---------- */
/* (C) Copyright to the author Olivier BERTRAND 2001 - 2017 */
/* */
/* WHAT THIS PROGRAM DOES: */
/* ----------------------- */
/* This program are the TABFMT classes DB execution routines. */
/* The base class CSV is comma separated files. */
/* FMT (Formatted) files are those having a complex internal record */
/* format described in the Format keyword of their definition. */
/***********************************************************************/
/***********************************************************************/
/* Include relevant MariaDB header file. */
/***********************************************************************/
#include "my_global.h"
#if defined(__WIN__)
#include <io.h>
#include <fcntl.h>
#include <errno.h>
#include <locale.h>
#if defined(__BORLANDC__)
#define __MFC_COMPAT__ // To define min/max as macro
#endif
//#include <windows.h>
#include "osutil.h"
#else
#if defined(UNIX)
#include <errno.h>
#include <unistd.h>
#include "osutil.h"
#else
#include <io.h>
#endif
#include <fcntl.h>
#endif
/***********************************************************************/
/* Include application header files: */
/* global.h is header containing all global declarations. */
/* plgdbsem.h is header containing the DB application declarations. */
/* tabdos.h is header containing the TABDOS class declarations. */
/***********************************************************************/
#include "global.h"
#include "plgdbsem.h"
#include "mycat.h"
#include "filamap.h"
#if defined(GZ_SUPPORT)
#include "filamgz.h"
#endif // GZ_SUPPORT
#if defined(ZIP_SUPPORT)
#include "filamzip.h"
#endif // ZIP_SUPPORT
#include "tabfmt.h"
#include "tabmul.h"
#define NO_FUNC
#include "plgcnx.h" // For DB types
#include "resource.h"
/***********************************************************************/
/* This should be an option. */
/***********************************************************************/
#define MAXCOL 200 /* Default max column nb in result */
#define TYPE_UNKNOWN 10 /* Must be greater than other types */
/***********************************************************************/
/* External function. */
/***********************************************************************/
USETEMP UseTemp(void);
/***********************************************************************/
/* CSVColumns: constructs the result blocks containing the description */
/* of all the columns of a CSV file that will be retrieved by #GetData.*/
/* Note: the algorithm to set the type is based on the internal values */
/* of types (TYPE_STRING < TYPE_DOUBLE < TYPE_INT) (1 < 2 < 7). */
/* If these values are changed, this will have to be revisited. */
/***********************************************************************/
PQRYRES CSVColumns(PGLOBAL g, PCSZ dp, PTOS topt, bool info)
{
static int buftyp[] = {TYPE_STRING, TYPE_SHORT, TYPE_STRING,
TYPE_INT, TYPE_INT, TYPE_SHORT};
static XFLD fldtyp[] = {FLD_NAME, FLD_TYPE, FLD_TYPENAME,
FLD_PREC, FLD_LENGTH, FLD_SCALE};
static unsigned int length[] = {6, 6, 8, 10, 10, 6};
const char *fn;
char sep, q;
int rc, mxr;
bool hdr;
char *p, *colname[MAXCOL], dechar, buf[8];
int i, imax, hmax, n, nerr, phase, blank, digit, dec, type;
int ncol = sizeof(buftyp) / sizeof(int);
int num_read = 0, num_max = 10000000; // Statistics
int len[MAXCOL], typ[MAXCOL], prc[MAXCOL];
PCSVDEF tdp;
PTDBCSV tcvp;
PTDBASE tdbp;
PQRYRES qrp;
PCOLRES crp;
if (info) {
imax = hmax = 0;
length[0] = 128;
goto skipit;
} // endif info
//if (GetIntegerTableOption(g, topt, "Multiple", 0)) {
// strcpy(g->Message, "Cannot find column definition for multiple table");
// return NULL;
//} // endif Multiple
// num_max = atoi(p+1); // Max num of record to test
imax = hmax = nerr = 0;
for (i = 0; i < MAXCOL; i++) {
colname[i] = NULL;
len[i] = 0;
typ[i] = TYPE_UNKNOWN;
prc[i] = 0;
} // endfor i
/*********************************************************************/
/* Get the CSV table description block. */
/*********************************************************************/
tdp = new(g) CSVDEF;
tdp->Database = dp;
if ((tdp->Zipped = GetBooleanTableOption(g, topt, "Zipped", false))) {
#if defined(ZIP_SUPPORT)
tdp->Entry = GetStringTableOption(g, topt, "Entry", NULL);
tdp->Mulentries = (tdp->Entry)
? strchr(tdp->Entry, '*') || strchr(tdp->Entry, '?')
: GetBooleanTableOption(g, topt, "Mulentries", false);
#else // !ZIP_SUPPORT
strcpy(g->Message, "ZIP not supported by this version");
return NULL;
#endif // !ZIP_SUPPORT
} // endif // Zipped
fn = tdp->Fn = GetStringTableOption(g, topt, "Filename", NULL);
if (!tdp->Fn) {
strcpy(g->Message, MSG(MISSING_FNAME));
return NULL;
} // endif Fn
if (!(tdp->Lrecl = GetIntegerTableOption(g, topt, "Lrecl", 0)))
tdp->Lrecl = 4096;
tdp->Multiple = GetIntegerTableOption(g, topt, "Multiple", 0);
p = (char*)GetStringTableOption(g, topt, "Separator", ",");
tdp->Sep = (strlen(p) == 2 && p[0] == '\\' && p[1] == 't') ? '\t' : *p;
#if defined(__WIN__)
if (tdp->Sep == ',' || strnicmp(setlocale(LC_NUMERIC, NULL), "French", 6))
dechar = '.';
else
dechar = ',';
#else // !__WIN__
dechar = '.';
#endif // !__WIN__
sep = tdp->Sep;
tdp->Quoted = GetIntegerTableOption(g, topt, "Quoted", -1);
p = (char*)GetStringTableOption(g, topt, "Qchar", "");
tdp->Qot = *p;
if (tdp->Qot && tdp->Quoted < 0)
tdp->Quoted = 0;
else if (!tdp->Qot && tdp->Quoted >= 0)
tdp->Qot = '"';
q = tdp->Qot;
hdr = GetBooleanTableOption(g, topt, "Header", false);
tdp->Maxerr = GetIntegerTableOption(g, topt, "Maxerr", 0);
tdp->Accept = GetBooleanTableOption(g, topt, "Accept", false);
if (tdp->Accept && tdp->Maxerr == 0)
tdp->Maxerr = INT_MAX32; // Accept all bad lines
mxr = MY_MAX(0, tdp->Maxerr);
if (trace)
htrc("File %s Sep=%c Qot=%c Header=%d maxerr=%d\n",
SVP(tdp->Fn), tdp->Sep, tdp->Qot, tdp->Header, tdp->Maxerr);
if (tdp->Zipped)
tcvp = new(g)TDBCSV(tdp, new(g)UNZFAM(tdp));
else
tcvp = new(g) TDBCSV(tdp, new(g) DOSFAM(tdp));
tcvp->SetMode(MODE_READ);
if (tdp->Multiple) {
tdbp = new(g)TDBMUL(tcvp);
tdbp->SetMode(MODE_READ);
} else
tdbp = tcvp;
/*********************************************************************/
/* Open the CSV file. */
/*********************************************************************/
if (tdbp->OpenDB(g))
return NULL;
if (hdr) {
/*******************************************************************/
/* Make the column names from the first line. */
/*******************************************************************/
phase = 0;
if ((rc = tdbp->ReadDB(g)) == RC_OK) {
p = PlgDBDup(g, tcvp->To_Line);
//skip leading blanks
for (; *p == ' '; p++) ;
if (q && *p == q) {
// Header is quoted
p++;
phase = 1;
} // endif q
colname[0] = p;
} else if (rc == RC_EF) {
sprintf(g->Message, MSG(FILE_IS_EMPTY), fn);
goto err;
} else
goto err;
for (i = 1; *p; p++)
if (phase == 1 && *p == q) {
*p = '\0';
phase = 0;
} else if (*p == sep && !phase) {
*p = '\0';
//skip leading blanks
for (; *(p+1) == ' '; p++) ;
if (q && *(p+1) == q) {
// Header is quoted
p++;
phase = 1;
} // endif q
colname[i++] = p + 1;
} // endif sep
num_read++;
imax = hmax = i;
for (i = 0; i < hmax; i++)
length[0] = MY_MAX(length[0], strlen(colname[i]));
tcvp->Header = true; // In case of multiple table
} // endif hdr
for (num_read++; num_read <= num_max; num_read++) {
/*******************************************************************/
/* Now start the reading process. Read one line. */
/*******************************************************************/
if ((rc = tdbp->ReadDB(g)) == RC_OK) {
} else if (rc == RC_EF) {
sprintf(g->Message, MSG(EOF_AFTER_LINE), num_read -1);
break;
} else {
sprintf(g->Message, MSG(ERR_READING_REC), num_read, fn);
goto err;
} // endif's
/*******************************************************************/
/* Make the test for field lengths. */
/*******************************************************************/
i = n = phase = blank = digit = dec = 0;
for (p = tcvp->To_Line; *p; p++)
if (*p == sep) {
if (phase != 1) {
if (i == MAXCOL - 1) {
sprintf(g->Message, MSG(TOO_MANY_FIELDS), num_read, fn);
goto err;
} // endif i
if (n) {
len[i] = MY_MAX(len[i], n);
type = (digit || (dec && n == 1)) ? TYPE_STRING
: (dec) ? TYPE_DOUBLE : TYPE_INT;
typ[i] = MY_MIN(type, typ[i]);
prc[i] = MY_MAX((typ[i] == TYPE_DOUBLE) ? (dec - 1) : 0, prc[i]);
} // endif n
i++;
n = phase = blank = digit = dec = 0;
} else // phase == 1
n++;
} else if (*p == ' ') {
if (phase < 2)
n++;
if (blank)
digit = 1;
} else if (*p == q) {
if (phase == 0) {
if (blank)
if (++nerr > mxr) {
sprintf(g->Message, MSG(MISPLACED_QUOTE), num_read);
goto err;
} else
goto skip;
n = 0;
phase = digit = 1;
} else if (phase == 1) {
if (*(p+1) == q) {
// This is currently not implemented for CSV tables
// if (++nerr > mxr) {
// sprintf(g->Message, MSG(QUOTE_IN_QUOTE), num_read);
// goto err;
// } else
// goto skip;
p++;
n++;
} else
phase = 2;
} else if (++nerr > mxr) { // phase == 2
sprintf(g->Message, MSG(MISPLACED_QUOTE), num_read);
goto err;
} else
goto skip;
} else {
if (phase == 2)
if (++nerr > mxr) {
sprintf(g->Message, MSG(MISPLACED_QUOTE), num_read);
goto err;
} else
goto skip;
// isdigit cannot be used here because of debug assert
if (!strchr("0123456789", *p)) {
if (!digit && *p == dechar)
dec = 1; // Decimal point found
else if (blank || !(*p == '-' || *p == '+'))
digit = 1;
} else if (dec)
dec++; // More decimals
n++;
blank = 1;
} // endif's *p
if (phase == 1)
if (++nerr > mxr) {
sprintf(g->Message, MSG(UNBALANCE_QUOTE), num_read);
goto err;
} else
goto skip;
if (n) {
len[i] = MY_MAX(len[i], n);
type = (digit || n == 0 || (dec && n == 1)) ? TYPE_STRING
: (dec) ? TYPE_DOUBLE : TYPE_INT;
typ[i] = MY_MIN(type, typ[i]);
prc[i] = MY_MAX((typ[i] == TYPE_DOUBLE) ? (dec - 1) : 0, prc[i]);
} // endif n
imax = MY_MAX(imax, i+1);
skip: ; // Skip erroneous line
} // endfor num_read
if (trace) {
htrc("imax=%d Lengths:", imax);
for (i = 0; i < imax; i++)
htrc(" %d", len[i]);
htrc("\n");
} // endif trace
tdbp->CloseDB(g);
skipit:
if (trace)
htrc("CSVColumns: imax=%d hmax=%d len=%d\n",
imax, hmax, length[0]);
/*********************************************************************/
/* Allocate the structures used to refer to the result set. */
/*********************************************************************/
qrp = PlgAllocResult(g, ncol, imax, IDS_COLUMNS + 3,
buftyp, fldtyp, length, false, false);
if (info || !qrp)
return qrp;
qrp->Nblin = imax;
/*********************************************************************/
/* Now get the results into blocks. */
/*********************************************************************/
for (i = 0; i < imax; i++) {
if (i >= hmax) {
sprintf(buf, "COL%.3d", i+1);
p = buf;
} else
p = colname[i];
if (typ[i] == TYPE_UNKNOWN) // Void column
typ[i] = TYPE_STRING;
crp = qrp->Colresp; // Column Name
crp->Kdata->SetValue(p, i);
crp = crp->Next; // Data Type
crp->Kdata->SetValue(typ[i], i);
crp = crp->Next; // Type Name
crp->Kdata->SetValue(GetTypeName(typ[i]), i);
crp = crp->Next; // Precision
crp->Kdata->SetValue(len[i], i);
crp = crp->Next; // Length
crp->Kdata->SetValue(len[i], i);
crp = crp->Next; // Scale (precision)
crp->Kdata->SetValue(prc[i], i);
} // endfor i
/*********************************************************************/
/* Return the result pointer for use by GetData routines. */
/*********************************************************************/
return qrp;
err:
tdbp->CloseDB(g);
return NULL;
} // end of CSVCColumns
/* --------------------------- Class CSVDEF -------------------------- */
/***********************************************************************/
/* CSVDEF constructor. */
/***********************************************************************/
CSVDEF::CSVDEF(void)
{
Fmtd = Header = false;
//Maxerr = 0;
Quoted = -1;
Sep = ',';
Qot = '\0';
} // end of CSVDEF constructor
/***********************************************************************/
/* DefineAM: define specific AM block values from XDB file. */
/***********************************************************************/
bool CSVDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
{
char buf[8];
// Double check correctness of offset values
if (Catfunc == FNC_NO)
for (PCOLDEF cdp = To_Cols; cdp; cdp = cdp->GetNext())
if (cdp->GetOffset() < 1 && !cdp->IsSpecial()) {
strcpy(g->Message, MSG(BAD_OFFSET_VAL));
return true;
} // endif Offset
// Call DOSDEF DefineAM with am=CSV so FMT is not confused with FIX
if (DOSDEF::DefineAM(g, "CSV", poff))
return true;
GetCharCatInfo("Separator", ",", buf, sizeof(buf));
Sep = (strlen(buf) == 2 && buf[0] == '\\' && buf[1] == 't') ? '\t' : *buf;
Quoted = GetIntCatInfo("Quoted", -1);
GetCharCatInfo("Qchar", "", buf, sizeof(buf));
Qot = *buf;
if (Qot && Quoted < 0)
Quoted = 0;
else if (!Qot && Quoted >= 0)
Qot = '"';
Fmtd = (!Sep || (am && (*am == 'F' || *am == 'f')));
Header = GetBoolCatInfo("Header", false);
Maxerr = GetIntCatInfo("Maxerr", 0);
Accept = GetBoolCatInfo("Accept", false);
if (Accept && Maxerr == 0)
Maxerr = INT_MAX32; // Accept all bad lines
return false;
} // end of DefineAM
/***********************************************************************/
/* GetTable: makes a new Table Description Block. */
/***********************************************************************/
PTDB CSVDEF::GetTable(PGLOBAL g, MODE mode)
{
PTDBASE tdbp;
if (Catfunc != FNC_COL) {
USETEMP tmp = UseTemp();
bool map = Mapped && mode != MODE_INSERT &&
!(tmp != TMP_NO && mode == MODE_UPDATE) &&
!(tmp == TMP_FORCE &&
(mode == MODE_UPDATE || mode == MODE_DELETE));
PTXF txfp;
/*******************************************************************/
/* Allocate a file processing class of the proper type. */
/*******************************************************************/
if (Zipped) {
#if defined(ZIP_SUPPORT)
if (mode == MODE_READ || mode == MODE_ANY || mode == MODE_ALTER) {
txfp = new(g) UNZFAM(this);
} else if (mode == MODE_INSERT) {
txfp = new(g) ZIPFAM(this);
} else {
strcpy(g->Message, "UPDATE/DELETE not supported for ZIP");
return NULL;
} // endif's mode
#else // !ZIP_SUPPORT
strcpy(g->Message, "ZIP not supported");
return NULL;
#endif // !ZIP_SUPPORT
} else if (map) {
// Should be now compatible with UNIX
txfp = new(g) MAPFAM(this);
} else if (Compressed) {
#if defined(GZ_SUPPORT)
if (Compressed == 1)
txfp = new(g) GZFAM(this);
else
txfp = new(g) ZLBFAM(this);
#else // !GZ_SUPPORT
strcpy(g->Message, "Compress not supported");
return NULL;
#endif // !GZ_SUPPORT
} else
txfp = new(g) DOSFAM(this);
/*******************************************************************/
/* Allocate a TDB of the proper type. */
/* Column blocks will be allocated only when needed. */
/*******************************************************************/
if (!Fmtd)
tdbp = new(g) TDBCSV(this, txfp);
else
tdbp = new(g) TDBFMT(this, txfp);
if (Multiple)
tdbp = new(g) TDBMUL(tdbp);
else
/*****************************************************************/
/* For block tables, get eventually saved optimization values. */
/*****************************************************************/
if (tdbp->GetBlockValues(g)) {
PushWarning(g, tdbp);
// return NULL; // causes a crash when deleting index
} else {
if (IsOptimized()) {
if (map) {
txfp = new(g) MBKFAM(this);
} else if (Compressed) {
#if defined(GZ_SUPPORT)
if (Compressed == 1)
txfp = new(g) ZBKFAM(this);
else {
txfp->SetBlkPos(To_Pos);
((PZLBFAM)txfp)->SetOptimized(To_Pos != NULL);
} // endelse
#else
sprintf(g->Message, MSG(NO_FEAT_SUPPORT), "GZ");
return NULL;
#endif
} else
txfp = new(g) BLKFAM(this);
((PTDBDOS)tdbp)->SetTxfp(txfp);
} // endif Optimized
} // endelse
} else
tdbp = new(g)TDBCCL(this);
return tdbp;
} // end of GetTable
/* -------------------------- Class TDBCSV --------------------------- */
/***********************************************************************/
/* Implementation of the TDBCSV class. */
/***********************************************************************/
TDBCSV::TDBCSV(PCSVDEF tdp, PTXF txfp) : TDBDOS(tdp, txfp)
{
#if defined(_DEBUG)
assert (tdp);
#endif
Field = NULL;
Offset = NULL;
Fldlen = NULL;
Fields = 0;
Nerr = 0;
Quoted = tdp->Quoted;
Maxerr = tdp->Maxerr;
Accept = tdp->Accept;
Header = tdp->Header;
Sep = tdp->GetSep();
Qot = tdp->GetQot();
} // end of TDBCSV standard constructor
TDBCSV::TDBCSV(PGLOBAL g, PTDBCSV tdbp) : TDBDOS(g, tdbp)
{
Fields = tdbp->Fields;
if (Fields) {
if (tdbp->Offset)
Offset = (int*)PlugSubAlloc(g, NULL, sizeof(int) * Fields);
if (tdbp->Fldlen)
Fldlen = (int*)PlugSubAlloc(g, NULL, sizeof(int) * Fields);
Field = (PSZ *)PlugSubAlloc(g, NULL, sizeof(PSZ) * Fields);
for (int i = 0; i < Fields; i++) {
if (Offset)
Offset[i] = tdbp->Offset[i];
if (Fldlen)
Fldlen[i] = tdbp->Fldlen[i];
if (Field) {
assert (Fldlen);
Field[i] = (PSZ)PlugSubAlloc(g, NULL, Fldlen[i] + 1);
Field[i][Fldlen[i]] = '\0';
} // endif Field
} // endfor i
} else {
Field = NULL;
Offset = NULL;
Fldlen = NULL;
} // endif Fields
Nerr = tdbp->Nerr;
Maxerr = tdbp->Maxerr;
Quoted = tdbp->Quoted;
Accept = tdbp->Accept;
Header = tdbp->Header;
Sep = tdbp->Sep;
Qot = tdbp->Qot;
} // end of TDBCSV copy constructor
// Method
PTDB TDBCSV::Clone(PTABS t)
{
PTDB tp;
PCSVCOL cp1, cp2;
PGLOBAL g = t->G; // Is this really useful ???
tp = new(g) TDBCSV(g, this);
for (cp1 = (PCSVCOL)Columns; cp1; cp1 = (PCSVCOL)cp1->GetNext()) {
cp2 = new(g) CSVCOL(cp1, tp); // Make a copy
NewPointer(t, cp1, cp2);
} // endfor cp1
return tp;
} // end of Clone
/***********************************************************************/
/* Allocate CSV column description block. */
/***********************************************************************/
PCOL TDBCSV::MakeCol(PGLOBAL g, PCOLDEF cdp, PCOL cprec, int n)
{
return new(g) CSVCOL(g, cdp, this, cprec, n);
} // end of MakeCol
/***********************************************************************/
/* Check whether the number of errors is greater than the maximum. */
/***********************************************************************/
bool TDBCSV::CheckErr(void)
{
return (++Nerr) > Maxerr;
} // end of CheckErr
/***********************************************************************/
/* CSV EstimatedLength. Returns an estimated minimum line length. */
/***********************************************************************/
int TDBCSV::EstimatedLength(void)
{
int n = 0;
PCOLDEF cdp;
if (trace)
htrc("EstimatedLength: Fields=%d Columns=%p\n", Fields, Columns);
for (cdp = To_Def->GetCols(); cdp; cdp = cdp->GetNext())
if (!cdp->IsSpecial() && !cdp->IsVirtual()) // A true column
n++;
return --n; // Number of separators if all fields are null
} // end of Estimated Length
#if 0
/***********************************************************************/
/* CSV tables needs the use temporary files for Update. */
/***********************************************************************/
bool TDBCSV::IsUsingTemp(PGLOBAL g)
{
return (Use_Temp == TMP_YES || Use_Temp == TMP_FORCE ||
(Use_Temp == TMP_AUTO && Mode == MODE_UPDATE));
} // end of IsUsingTemp
#endif // 0 (Same as TDBDOS one)
/***********************************************************************/
/* CSV Access Method opening routine. */
/* First allocate the Offset and Fldlen arrays according to the */
/* greatest field used in that query. Then call the DOS opening fnc. */
/***********************************************************************/
bool TDBCSV::OpenDB(PGLOBAL g)
{
bool rc = false;
PCOLDEF cdp;
PDOSDEF tdp = (PDOSDEF)To_Def;
if (Use != USE_OPEN && (Columns || Mode == MODE_UPDATE)) {
// Allocate the storage used to read (or write) records
int i, len;
PCSVCOL colp;
if (!Fields) // May have been set in TABFMT::OpenDB
if (Mode != MODE_UPDATE && Mode != MODE_INSERT) {
for (colp = (PCSVCOL)Columns; colp; colp = (PCSVCOL)colp->Next)
if (!colp->IsSpecial() && !colp->IsVirtual())
Fields = MY_MAX(Fields, (int)colp->Fldnum);
if (Columns)
Fields++; // Fldnum was 0 based
} else
for (cdp = tdp->GetCols(); cdp; cdp = cdp->GetNext())
if (!cdp->IsSpecial() && !cdp->IsVirtual())
Fields++;
Offset = (int*)PlugSubAlloc(g, NULL, sizeof(int) * Fields);
Fldlen = (int*)PlugSubAlloc(g, NULL, sizeof(int) * Fields);
if (Mode == MODE_INSERT || Mode == MODE_UPDATE) {
Field = (PSZ*)PlugSubAlloc(g, NULL, sizeof(PSZ) * Fields);
Fldtyp = (bool*)PlugSubAlloc(g, NULL, sizeof(bool) * Fields);
} // endif Mode
for (i = 0; i < Fields; i++) {
Offset[i] = 0;
Fldlen[i] = 0;
if (Field) {
Field[i] = NULL;
Fldtyp[i] = false;
} // endif Field
} // endfor i
if (Field)
// Prepare writing fields
if (Mode != MODE_UPDATE) {
for (colp = (PCSVCOL)Columns; colp; colp = (PCSVCOL)colp->Next)
if (!colp->IsSpecial() && !colp->IsVirtual()) {
i = colp->Fldnum;
len = colp->GetLength();
Field[i] = (PSZ)PlugSubAlloc(g, NULL, len + 1);
Field[i][len] = '\0';
Fldlen[i] = len;
Fldtyp[i] = IsTypeNum(colp->GetResultType());
} // endif colp
} else // MODE_UPDATE
for (cdp = tdp->GetCols(); cdp; cdp = cdp->GetNext())
if (!cdp->IsSpecial() && !cdp->IsVirtual()) {
i = cdp->GetOffset() - 1;
len = cdp->GetLength();
Field[i] = (PSZ)PlugSubAlloc(g, NULL, len + 1);
Field[i][len] = '\0';
Fldlen[i] = len;
Fldtyp[i] = IsTypeNum(cdp->GetType());
} // endif cdp
} // endif Use
if (Header) {
// Check that the Lrecl is at least equal to the header line length
int headlen = 0;
PCOLDEF cdp;
PDOSDEF tdp = (PDOSDEF)To_Def;
for (cdp = tdp->GetCols(); cdp; cdp = cdp->GetNext())
headlen += strlen(cdp->GetName()) + 3; // 3 if names are quoted
if (headlen > Lrecl) {
Lrecl = headlen;
Txfp->Lrecl = headlen;
} // endif headlen
} // endif Header
Nerr = 0;
rc = TDBDOS::OpenDB(g);
if (!rc && Mode == MODE_UPDATE && To_Kindex)
// Because KINDEX::Init is executed in mode READ, we must restore
// the Fldlen array that was modified when reading the table file.
for (cdp = tdp->GetCols(); cdp; cdp = cdp->GetNext())
Fldlen[cdp->GetOffset() - 1] = cdp->GetLength();
return rc;
} // end of OpenDB
/***********************************************************************/
/* SkipHeader: Physically skip first header line if applicable. */
/* This is called from TDBDOS::OpenDB and must be executed before */
/* Kindex construction if the file is accessed using an index. */
/***********************************************************************/
bool TDBCSV::SkipHeader(PGLOBAL g)
{
int len = GetFileLength(g);
bool rc = false;
#if defined(_DEBUG)
if (len < 0)
return true;
#endif // _DEBUG
if (Header) {
if (Mode == MODE_INSERT) {
if (!len) {
// New file, the header line must be constructed and written
int i, n = 0;
int hlen = 0;
bool q = Qot && Quoted > 0;
PCOLDEF cdp;
// Estimate the length of the header list
for (cdp = To_Def->GetCols(); cdp; cdp = cdp->GetNext()) {
hlen += (1 + strlen(cdp->GetName()));
hlen += ((q) ? 2 : 0);
n++; // Calculate the number of columns
} // endfor cdp
if (hlen > Lrecl) {
sprintf(g->Message, MSG(LRECL_TOO_SMALL), hlen);
return true;
} // endif hlen
// File is empty, write a header record
memset(To_Line, 0, Lrecl);
// The column order in the file is given by the offset value
for (i = 1; i <= n; i++)
for (cdp = To_Def->GetCols(); cdp; cdp = cdp->GetNext())
if (cdp->GetOffset() == i) {
if (q)
To_Line[strlen(To_Line)] = Qot;
strcat(To_Line, cdp->GetName());
if (q)
To_Line[strlen(To_Line)] = Qot;
if (i < n)
To_Line[strlen(To_Line)] = Sep;
} // endif Offset
rc = (Txfp->WriteBuffer(g) == RC_FX);
} // endif !FileLength
} else if (Mode == MODE_DELETE) {
if (len)
rc = (Txfp->SkipRecord(g, true) == RC_FX);
} else if (len) // !Insert && !Delete
rc = (Txfp->SkipRecord(g, false) == RC_FX || Txfp->RecordPos(g));
} // endif Header
return rc;
} // end of SkipHeader
/***********************************************************************/
/* ReadBuffer: Physical read routine for the CSV access method. */
/***********************************************************************/
int TDBCSV::ReadBuffer(PGLOBAL g)
{
//char *p1, *p2, *p = NULL;
char *p2, *p = NULL;
int i, n, len, rc = Txfp->ReadBuffer(g);
bool bad = false;
if (trace > 1)
htrc("CSV: Row is '%s' rc=%d\n", To_Line, rc);
if (rc != RC_OK || !Fields)
return rc;
else
p2 = To_Line;
// Find the offsets and lengths of the columns for this row
for (i = 0; i < Fields; i++) {
if (!bad) {
if (Qot && *p2 == Qot) { // Quoted field
//for (n = 0, p1 = ++p2; (p = strchr(p1, Qot)); p1 = p + 2)
// if (*(p + 1) == Qot)
// n++; // Doubled internal quotes
// else
// break; // Final quote
for (n = 0, p = ++p2; p; p++)
if (*p == Qot || *p == '\\') {
if (*(++p) == Qot)
n++; // Escaped internal quotes
else if (*(p - 1) == Qot)
break; // Final quote
} // endif *p
if (p) {
//len = p++ - p2;
len = (int)(p - p2 - 1);
// if (Sep != ' ')
// for (; *p == ' '; p++) ; // Skip blanks
if (*p != Sep && i != Fields - 1) { // Should be the separator
if (CheckErr()) {
sprintf(g->Message, MSG(MISSING_FIELD),
i+1, Name, RowNumber(g));
return RC_FX;
} else if (Accept)
bad = true;
else
return RC_NF;
} // endif p
if (n) {
int j, k;
// Suppress the escape of internal quotes
for (j = k = 0; j < len; j++, k++) {
if (p2[j] == Qot || (p2[j] == '\\' && p2[j + 1] == Qot))
j++; // skip escape char
else if (p2[j] == '\\')
p2[k++] = p2[j++]; // avoid \\Qot
p2[k] = p2[j];
} // endfor i, j
len -= n;
} // endif n
} else if (CheckErr()) {
sprintf(g->Message, MSG(BAD_QUOTE_FIELD),
Name, i+1, RowNumber(g));
return RC_FX;
} else if (Accept) {
len = strlen(p2);
bad = true;
} else
return RC_NF;
} else if ((p = strchr(p2, Sep)))
len = (int)(p - p2);
else if (i == Fields - 1)
len = strlen(p2);
else if (Accept && Maxerr == 0) {
len = strlen(p2);
bad = true;
} else if (CheckErr()) {
sprintf(g->Message, MSG(MISSING_FIELD), i+1, Name, RowNumber(g));
return RC_FX;
} else if (Accept) {
len = strlen(p2);
bad = true;
} else
return RC_NF;
} else
len = 0;
Offset[i] = (int)(p2 - To_Line);
if (Mode != MODE_UPDATE)
Fldlen[i] = len;
else if (len > Fldlen[i]) {
sprintf(g->Message, MSG(FIELD_TOO_LONG), i+1, RowNumber(g));
return RC_FX;
} else {
strncpy(Field[i], p2, len);
Field[i][len] = '\0';
} // endif Mode
if (p)
p2 = p + 1;
} // endfor i
return rc;
} // end of ReadBuffer
/***********************************************************************/
/* Prepare the line to write. */
/***********************************************************************/
bool TDBCSV::PrepareWriting(PGLOBAL g)
{
char sep[2], qot[2];
int i, nlen, oldlen = strlen(To_Line);
if (trace > 1)
htrc("CSV WriteDB: R%d Mode=%d key=%p link=%p\n",
Tdb_No, Mode, To_Key_Col, To_Link);
// Before writing the line we must check its length
if ((nlen = CheckWrite(g)) < 0)
return true;
// Before writing the line we must make it
sep[0] = Sep;
sep[1] = '\0';
qot[0] = Qot;
qot[1] = '\0';
*To_Line = '\0';
for (i = 0; i < Fields; i++) {
if (i)
strcat(To_Line, sep);
if (Field[i])
if (!strlen(Field[i])) {
// Generally null fields are not quoted
if (Quoted > 2)
// Except if explicitely required
strcat(strcat(To_Line, qot), qot);
} else if (Qot && (strchr(Field[i], Sep) || *Field[i] == Qot
|| Quoted > 1 || (Quoted == 1 && !Fldtyp[i])))
if (strchr(Field[i], Qot)) {
// Field contains quotes that must be doubled
int j, k = strlen(To_Line), n = strlen(Field[i]);
To_Line[k++] = Qot;
for (j = 0; j < n; j++) {
if (Field[i][j] == Qot)
To_Line[k++] = Qot;
To_Line[k++] = Field[i][j];
} // endfor j
To_Line[k++] = Qot;
To_Line[k] = '\0';
} else
strcat(strcat(strcat(To_Line, qot), Field[i]), qot);
else
strcat(To_Line, Field[i]);
} // endfor i
#if defined(_DEBUG)
assert ((unsigned)nlen == strlen(To_Line));
#endif
if (Mode == MODE_UPDATE && nlen < oldlen
&& !((PDOSFAM)Txfp)->GetUseTemp()) {
// In Update mode with no temp file, line length must not change
To_Line[nlen] = Sep;
for (nlen++; nlen < oldlen; nlen++)
To_Line[nlen] = ' ';
To_Line[nlen] = '\0';
} // endif
if (trace > 1)
htrc("Write: line is=%s", To_Line);
return false;
} // end of PrepareWriting
/***********************************************************************/
/* Data Base write routine CSV file access method. */
/***********************************************************************/
int TDBCSV::WriteDB(PGLOBAL g)
{
// Before writing the line we must check and prepare it
if (PrepareWriting(g))
return RC_FX;
/*********************************************************************/
/* Now start the writing process. */
/*********************************************************************/
return Txfp->WriteBuffer(g);
} // end of WriteDB
/***********************************************************************/
/* Check whether a new line fit in the file lrecl size. */
/***********************************************************************/
int TDBCSV::CheckWrite(PGLOBAL g)
{
int maxlen, n, nlen = (Fields - 1);
if (trace > 1)
htrc("CheckWrite: R%d Mode=%d\n", Tdb_No, Mode);
// Before writing the line we must check its length
maxlen = (Mode == MODE_UPDATE && !Txfp->GetUseTemp())
? strlen(To_Line) : Lrecl;
// Check whether record is too int
for (int i = 0; i < Fields; i++)
if (Field[i]) {
if (!(n = strlen(Field[i])))
n += (Quoted > 2 ? 2 : 0);
else if (strchr(Field[i], Sep) || (Qot && *Field[i] == Qot)
|| Quoted > 1 || (Quoted == 1 && !Fldtyp[i]))
if (!Qot) {
sprintf(g->Message, MSG(SEP_IN_FIELD), i + 1);
return -1;
} else {
// Quotes inside a quoted field must be doubled
char *p1, *p2;
for (p1 = Field[i]; (p2 = strchr(p1, Qot)); p1 = p2 + 1)
n++;
n += 2; // Outside quotes
} // endif
if ((nlen += n) > maxlen) {
strcpy(g->Message, MSG(LINE_TOO_LONG));
return -1;
} // endif nlen
} // endif Field
return nlen;
} // end of CheckWrite
/* ------------------------------------------------------------------- */
/***********************************************************************/
/* Implementation of the TDBFMT class. */
/***********************************************************************/
TDBFMT::TDBFMT(PGLOBAL g, PTDBFMT tdbp) : TDBCSV(g, tdbp)
{
FldFormat = tdbp->FldFormat;
To_Fld = tdbp->To_Fld;
FmtTest = tdbp->FmtTest;
Linenum = tdbp->Linenum;
} // end of TDBFMT copy constructor
// Method
PTDB TDBFMT::Clone(PTABS t)
{
PTDB tp;
PCSVCOL cp1, cp2;
//PFMTCOL cp1, cp2;
PGLOBAL g = t->G; // Is this really useful ???
tp = new(g) TDBFMT(g, this);
for (cp1 = (PCSVCOL)Columns; cp1; cp1 = (PCSVCOL)cp1->GetNext()) {
//for (cp1 = (PFMTCOL)Columns; cp1; cp1 = (PFMTCOL)cp1->GetNext()) {
cp2 = new(g) CSVCOL(cp1, tp); // Make a copy
// cp2 = new(g) FMTCOL(cp1, tp); // Make a copy
NewPointer(t, cp1, cp2);
} // endfor cp1
return tp;
} // end of Clone
/***********************************************************************/
/* Allocate FMT column description block. */
/***********************************************************************/
PCOL TDBFMT::MakeCol(PGLOBAL g, PCOLDEF cdp, PCOL cprec, int n)
{
return new(g) CSVCOL(g, cdp, this, cprec, n);
//return new(g) FMTCOL(cdp, this, cprec, n);
} // end of MakeCol
/***********************************************************************/
/* FMT EstimatedLength. Returns an estimated minimum line length. */
/* The big problem here is how can we astimated that minimum ? */
/***********************************************************************/
int TDBFMT::EstimatedLength(void)
{
// This is rather stupid !!!
return ((PDOSDEF)To_Def)->GetEnding() + (int)((Lrecl / 10) + 1);
} // end of EstimatedLength
/***********************************************************************/
/* FMT Access Method opening routine. */
/***********************************************************************/
bool TDBFMT::OpenDB(PGLOBAL g)
{
Linenum = 0;
if (Mode == MODE_INSERT || Mode == MODE_UPDATE) {
sprintf(g->Message, MSG(FMT_WRITE_NIY), "FMT");
return true; // NIY
} // endif Mode
if (Use != USE_OPEN && Columns) {
// Make the formats used to read records
PSZ pfm;
int i, n;
PCSVCOL colp;
PCOLDEF cdp;
PDOSDEF tdp = (PDOSDEF)To_Def;
for (colp = (PCSVCOL)Columns; colp; colp = (PCSVCOL)colp->Next)
if (!colp->IsSpecial() && !colp->IsVirtual()) // a true column
Fields = MY_MAX(Fields, (int)colp->Fldnum);
if (Columns)
Fields++; // Fldnum was 0 based
To_Fld = PlugSubAlloc(g, NULL, Lrecl + 1);
FldFormat = (PSZ*)PlugSubAlloc(g, NULL, sizeof(PSZ) * Fields);
memset(FldFormat, 0, sizeof(PSZ) * Fields);
FmtTest = (int*)PlugSubAlloc(g, NULL, sizeof(int) * Fields);
memset(FmtTest, 0, sizeof(int) * Fields);
// Get the column formats
for (cdp = tdp->GetCols(); cdp; cdp = cdp->GetNext())
if (!cdp->IsSpecial() && !cdp->IsVirtual()
&& (i = cdp->GetOffset() - 1) < Fields) {
if (!(pfm = cdp->GetFmt())) {
sprintf(g->Message, MSG(NO_FLD_FORMAT), i + 1, Name);
return true;
} // endif pfm
// Roughly check the Fmt format
if ((n = strlen(pfm) - 2) < 4) {
sprintf(g->Message, MSG(BAD_FLD_FORMAT), i + 1, Name);
return true;
} // endif n
FldFormat[i] = (PSZ)PlugSubAlloc(g, NULL, n + 5);
strcpy(FldFormat[i], pfm);
if (!strcmp(pfm + n, "%m")) {
// This is a field that can be missing. Flag it so it can
// be handled with special processing.
FldFormat[i][n+1] = 'n'; // To have sscanf normal processing
FmtTest[i] = 2;
} else if (i+1 < Fields && strcmp(pfm + n, "%n")) {
// There are trailing characters after the field contents
// add a marker for the next field start position.
strcat(FldFormat[i], "%n");
FmtTest[i] = 1;
} // endif's
} // endif i
} // endif Use
return TDBCSV::OpenDB(g);
} // end of OpenDB
/***********************************************************************/
/* ReadBuffer: Physical read routine for the FMT access method. */
/***********************************************************************/
int TDBFMT::ReadBuffer(PGLOBAL g)
{
int i, len, n, deb, fin, nwp, pos = 0, rc;
bool bad = false;
if ((rc = Txfp->ReadBuffer(g)) != RC_OK || !Fields)
return rc;
else
++Linenum;
if (trace > 1)
htrc("FMT: Row %d is '%s' rc=%d\n", Linenum, To_Line, rc);
// Find the offsets and lengths of the columns for this row
for (i = 0; i < Fields; i++) {
if (!bad) {
deb = fin = -1;
if (!FldFormat[i]) {
n = 0;
} else if (FmtTest[i] == 1) {
nwp = -1;
n = sscanf(To_Line + pos, FldFormat[i], &deb, To_Fld, &fin, &nwp);
} else {
n = sscanf(To_Line + pos, FldFormat[i], &deb, To_Fld, &fin);
if (n != 1 && (deb >= 0 || i == Fields - 1) && FmtTest[i] == 2) {
// Missing optional field, not an error
n = 1;
if (i == Fields - 1)
fin = deb = 0;
else
fin = deb;
} // endif n
nwp = fin;
} // endif i
if (n != 1 || deb < 0 || fin < 0 || nwp < 0) {
// This is to avoid a very strange sscanf bug occuring
// with fields that ends with a null character.
// This bug causes subsequent sscanf to return in error,
// so next lines are not parsed correctly.
sscanf("a", "%*c"); // Seems to reset things Ok
if (CheckErr()) {
sprintf(g->Message, MSG(BAD_LINEFLD_FMT), Linenum, i + 1, Name);
return RC_FX;
} else if (Accept)
bad = true;
else
return RC_NF;
} // endif n...
} // endif !bad
if (!bad) {
Offset[i] = pos + deb;
len = fin - deb;
} else {
nwp = 0;
Offset[i] = pos;
len = 0;
} // endif bad
// if (Mode != MODE_UPDATE)
Fldlen[i] = len;
// else if (len > Fldlen[i]) {
// sprintf(g->Message, MSG(FIELD_TOO_LONG), i+1, To_Tdb->RowNumber(g));
// return RC_FX;
// } else {
// strncpy(Field[i], To_Line + pos, len);
// Field[i][len] = '\0';
// } // endif Mode
pos += nwp;
} // endfor i
if (bad)
Nerr++;
else
sscanf("a", "%*c"); // Seems to reset things Ok
return rc;
} // end of ReadBuffer
/***********************************************************************/
/* Data Base write routine FMT file access method. */
/***********************************************************************/
int TDBFMT::WriteDB(PGLOBAL g)
{
sprintf(g->Message, MSG(FMT_WRITE_NIY), "FMT");
return RC_FX; // NIY
} // end of WriteDB
// ------------------------ CSVCOL functions ----------------------------
/***********************************************************************/
/* CSVCOL public constructor */
/***********************************************************************/
CSVCOL::CSVCOL(PGLOBAL g, PCOLDEF cdp, PTDB tdbp, PCOL cprec, int i)
: DOSCOL(g, cdp, tdbp, cprec, i, "CSV")
{
Fldnum = Deplac - 1;
Deplac = 0;
} // end of CSVCOL constructor
/***********************************************************************/
/* CSVCOL constructor used for copying columns. */
/* tdbp is the pointer to the new table descriptor. */
/***********************************************************************/
CSVCOL::CSVCOL(CSVCOL *col1, PTDB tdbp) : DOSCOL(col1, tdbp)
{
Fldnum = col1->Fldnum;
} // end of CSVCOL copy constructor
/***********************************************************************/
/* VarSize: This function tells UpdateDB whether or not the block */
/* optimization file must be redone if this column is updated, even */
/* it is not sorted or clustered. This applies to a blocked table, */
/* because if it is updated using a temporary file, the block size */
/* may be modified. */
/***********************************************************************/
bool CSVCOL::VarSize(void)
{
PTXF txfp = ((PTDBCSV)To_Tdb)->Txfp;
if (txfp->IsBlocked() && txfp->GetUseTemp())
// Blocked table using a temporary file
return true;
else
return false;
} // end VarSize
/***********************************************************************/
/* ReadColumn: call DOSCOL::ReadColumn after having set the offet */
/* and length of the field to read as calculated by TDBCSV::ReadDB. */
/***********************************************************************/
void CSVCOL::ReadColumn(PGLOBAL g)
{
int rc;
PTDBCSV tdbp = (PTDBCSV)To_Tdb;
/*********************************************************************/
/* If physical reading of the line was deferred, do it now. */
/*********************************************************************/
if (!tdbp->IsRead())
if ((rc = tdbp->ReadBuffer(g)) != RC_OK) {
if (rc == RC_EF)
sprintf(g->Message, MSG(INV_DEF_READ), rc);
throw 34;
} // endif
if (tdbp->Mode != MODE_UPDATE) {
int colen = Long; // Column length
// Set the field offset and length for this row
Deplac = tdbp->Offset[Fldnum]; // Field offset
Long = tdbp->Fldlen[Fldnum]; // Field length
if (trace > 1)
htrc("CSV ReadColumn %s Fldnum=%d offset=%d fldlen=%d\n",
Name, Fldnum, Deplac, Long);
if (Long > colen && tdbp->CheckErr()) {
Long = colen; // Restore column length
sprintf(g->Message, MSG(FLD_TOO_LNG_FOR),
Fldnum + 1, Name, To_Tdb->RowNumber(g), tdbp->GetFile(g));
throw 34;
} // endif Long
// Now do the reading
DOSCOL::ReadColumn(g);
// Restore column length
Long = colen;
} else { // Mode Update
// Field have been copied in TDB Field array
PSZ fp = tdbp->Field[Fldnum];
if (Dsp)
for (int i = 0; fp[i]; i++)
if (fp[i] == Dsp)
fp[i] = '.';
Value->SetValue_psz(fp);
// Set null when applicable
if (Nullable)
Value->SetNull(Value->IsZero());
} // endif Mode
} // end of ReadColumn
/***********************************************************************/
/* WriteColumn: The column is written in TDBCSV matching Field. */
/***********************************************************************/
void CSVCOL::WriteColumn(PGLOBAL g)
{
char *p, buf[64];
int flen;
PTDBCSV tdbp = (PTDBCSV)To_Tdb;
if (trace > 1)
htrc("CSV WriteColumn: col %s R%d coluse=%.4X status=%.4X\n",
Name, tdbp->GetTdb_No(), ColUse, Status);
flen = GetLength();
if (trace > 1)
htrc("Lrecl=%d Long=%d field=%d coltype=%d colval=%p\n",
tdbp->Lrecl, Long, flen, Buf_Type, Value);
/*********************************************************************/
/* Check whether the new value has to be converted to Buf_Type. */
/*********************************************************************/
if (Value != To_Val)
Value->SetValue_pval(To_Val, false); // Convert the updated value
/*********************************************************************/
/* Get the string representation of the column value. */
/*********************************************************************/
p = Value->ShowValue(buf);
if (trace > 1)
htrc("new length(%p)=%d\n", p, strlen(p));
if ((signed)strlen(p) > flen) {
sprintf(g->Message, MSG(BAD_FLD_LENGTH), Name, p, flen,
tdbp->RowNumber(g), tdbp->GetFile(g));
throw 34;
} else if (Dsp)
for (int i = 0; p[i]; i++)
if (p[i] == '.')
p[i] = Dsp;
if (trace > 1)
htrc("buffer=%s\n", p);
/*********************************************************************/
/* Updating must be done also during the first pass so writing the */
/* updated record can be checked for acceptable record length. */
/*********************************************************************/
if (Fldnum < 0) {
// This can happen for wrong offset value in XDB files
sprintf(g->Message, MSG(BAD_FIELD_RANK), Fldnum + 1, Name);
throw 34;
} else
strncpy(tdbp->Field[Fldnum], p, flen);
if (trace > 1)
htrc(" col written: '%s'\n", p);
} // end of WriteColumn
/* ---------------------------TDBCCL class --------------------------- */
/***********************************************************************/
/* TDBCCL class constructor. */
/***********************************************************************/
TDBCCL::TDBCCL(PCSVDEF tdp) : TDBCAT(tdp)
{
Topt = tdp->GetTopt();
} // end of TDBCCL constructor
/***********************************************************************/
/* GetResult: Get the list the CSV file columns. */
/***********************************************************************/
PQRYRES TDBCCL::GetResult(PGLOBAL g)
{
return CSVColumns(g, ((PTABDEF)To_Def)->GetPath(), Topt, false);
} // end of GetResult
/* ------------------------ End of TabFmt ---------------------------- */
| 31.916827 | 77 | 0.434972 |
2563487a02b8a53bbcd797aff466f2fcd9443663 | 452 | js | JavaScript | node_modules/uploadcare-widget-tab-effects/src/components/Content/Content.js | ShinKano/ssi-codecamp | 50806c4beadfec61cbea1ea7a27ee8deaa518691 | [
"MIT"
] | 7 | 2017-04-04T16:42:45.000Z | 2022-01-18T21:35:39.000Z | node_modules/uploadcare-widget-tab-effects/src/components/Content/Content.js | ShinKano/ssi-codecamp | 50806c4beadfec61cbea1ea7a27ee8deaa518691 | [
"MIT"
] | 22 | 2016-10-31T10:36:23.000Z | 2022-01-14T13:05:35.000Z | node_modules/uploadcare-widget-tab-effects/src/components/Content/Content.js | sharife/golden-thread | 2b4bdbc36a1cfb605fd4c68ec91e56ea06db0256 | [
"MIT"
] | 12 | 2016-12-05T09:55:21.000Z | 2022-03-24T14:36:18.000Z | import {createNode} from 'tools'
import template from './Content.html'
const Content = () => {
let $element
const getElement = () => {
if (!$element) {
render()
}
return $element
}
const render = () => {
$element = createNode(template())
}
const appendChild = ($child) => {
if (!$element) return
$element.appendChild($child)
}
return {
getElement,
appendChild,
}
}
export default Content
| 14.125 | 37 | 0.577434 |
b0fc26363a944ae235b1ace84d6ecfd3be084a74 | 901 | rs | Rust | src/modules/slack/mod.rs | scanbots/rat | 800e19b3004cf0ffb076c8c8a70b1ed5cd32ccf1 | [
"MIT"
] | 11 | 2017-05-06T14:36:31.000Z | 2021-08-02T20:38:05.000Z | src/modules/slack/mod.rs | scanbots/rat | 800e19b3004cf0ffb076c8c8a70b1ed5cd32ccf1 | [
"MIT"
] | 69 | 2017-05-06T06:27:06.000Z | 2021-01-11T08:31:11.000Z | src/modules/slack/mod.rs | scanbots/rat | 800e19b3004cf0ffb076c8c8a70b1ed5cd32ccf1 | [
"MIT"
] | 5 | 2017-05-06T06:25:14.000Z | 2020-10-25T05:02:40.000Z | use config::Config;
use errors::*;
use clap::{App, ArgMatches, SubCommand};
pub const NAME: &'static str = "slack";
mod auth;
mod client;
#[derive(Debug, Deserialize)]
pub struct SlackConfig {
pub client_id: String,
pub client_secret: String,
pub access_token: Option<String>,
}
pub fn build_sub_cli() -> App<'static, 'static> {
SubCommand::with_name(NAME)
.about("Slack")
.subcommand(auth::build_sub_cli())
}
pub fn call(cli_args: Option<&ArgMatches>, config: &Config) -> Result<()> {
let subcommand = cli_args.unwrap();
let subcommand_name = subcommand.subcommand_name().ok_or_else(|| ErrorKind::NoSubcommandSpecified(NAME.to_string()))?;
match subcommand_name {
auth::NAME => auth::call(subcommand.subcommand_matches(subcommand_name), config)
.chain_err(|| ErrorKind::ModuleFailed(NAME.to_string())),
_ => Ok(())
}
} | 28.15625 | 122 | 0.669256 |
3d3cce2dd9a71376dff13bde223422321967802a | 2,189 | sql | SQL | safarii_db.sql | adeesulaeman/safarii.ueu | 97ea501a7b9d48407d9621cd58305d9113b4cb31 | [
"MIT"
] | 1 | 2018-03-23T06:29:51.000Z | 2018-03-23T06:29:51.000Z | safarii_db.sql | adeesulaeman/Safarii | 97ea501a7b9d48407d9621cd58305d9113b4cb31 | [
"MIT"
] | null | null | null | safarii_db.sql | adeesulaeman/Safarii | 97ea501a7b9d48407d9621cd58305d9113b4cb31 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 25, 2017 at 06:52 AM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 7.1.4
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: `safarii_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `panduan_tbl`
--
CREATE TABLE `panduan_tbl` (
`id_panduan` int(11) NOT NULL,
`tgl_panduan` date NOT NULL,
`judul_panduan` varchar(50) NOT NULL,
`isi_panduan` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `panduan_tbl`
--
INSERT INTO `panduan_tbl` (`id_panduan`, `tgl_panduan`, `judul_panduan`, `isi_panduan`) VALUES
(6, '0000-00-00', 'Oke dehhh', '<p><strong>Lorem</strong> ipsum dolor </p>');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id_users` int(11) NOT NULL,
`nama_users` varchar(50) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`email_users` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `panduan_tbl`
--
ALTER TABLE `panduan_tbl`
ADD PRIMARY KEY (`id_panduan`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id_users`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `panduan_tbl`
--
ALTER TABLE `panduan_tbl`
MODIFY `id_panduan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id_users` 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 */;
| 23.537634 | 94 | 0.670169 |
474325ad506e583eae6693442d2b78950b7d8e06 | 8,276 | dart | Dart | packages/core/lib/src/data/css.dart | Stewioie/flutter_widget_from_html | 525182b8b3709a1090e759388b37f8a5a19bb6fb | [
"MIT"
] | 3 | 2021-04-24T21:17:43.000Z | 2022-02-02T06:19:09.000Z | packages/core/lib/src/data/css.dart | Stewioie/flutter_widget_from_html | 525182b8b3709a1090e759388b37f8a5a19bb6fb | [
"MIT"
] | null | null | null | packages/core/lib/src/data/css.dart | Stewioie/flutter_widget_from_html | 525182b8b3709a1090e759388b37f8a5a19bb6fb | [
"MIT"
] | 1 | 2021-04-24T19:58:34.000Z | 2021-04-24T19:58:34.000Z | part of '../core_data.dart';
/// A border of a box.
@immutable
class CssBorder {
final CssBorderSide? _all;
final CssBorderSide? _bottom;
final bool inherit;
final CssBorderSide? _inlineEnd;
final CssBorderSide? _inlineStart;
final CssBorderSide? _left;
final CssBorderSide? _right;
final CssBorderSide? _top;
/// Creates a border.
const CssBorder({
CssBorderSide? all,
CssBorderSide? bottom,
this.inherit = false,
CssBorderSide? inlineEnd,
CssBorderSide? inlineStart,
CssBorderSide? left,
CssBorderSide? right,
CssBorderSide? top,
}) : _all = all,
_bottom = bottom,
_inlineEnd = inlineEnd,
_inlineStart = inlineStart,
_left = left,
_right = right,
_top = top;
/// Returns `true` if all sides are unset.
bool get isNone =>
(_all == null || _all == CssBorderSide.none) &&
(_bottom == null || _bottom == CssBorderSide.none) &&
(_inlineEnd == null || _inlineEnd == CssBorderSide.none) &&
(_inlineStart == null || _inlineStart == CssBorderSide.none) &&
(_left == null || _left == CssBorderSide.none) &&
(_right == null || _right == CssBorderSide.none) &&
(_top == null || _top == CssBorderSide.none);
/// Creates a copy of this border with the sides from [other].
CssBorder copyFrom(CssBorder other) => copyWith(
bottom: other._bottom,
inlineEnd: other._inlineEnd,
inlineStart: other._inlineStart,
left: other._left,
right: other._right,
top: other._top,
);
/// Creates a copy of this border but with the given fields replaced with the new values.
CssBorder copyWith({
CssBorderSide? bottom,
CssBorderSide? inlineEnd,
CssBorderSide? inlineStart,
CssBorderSide? left,
CssBorderSide? right,
CssBorderSide? top,
}) =>
CssBorder(
all: _all,
bottom: CssBorderSide._copyWith(_bottom, bottom),
inherit: inherit,
inlineEnd: CssBorderSide._copyWith(_inlineEnd, inlineEnd),
inlineStart: CssBorderSide._copyWith(_inlineStart, inlineStart),
left: CssBorderSide._copyWith(_left, left),
right: CssBorderSide._copyWith(_right, right),
top: CssBorderSide._copyWith(_top, top),
);
/// Calculates [Border].
Border? getValue(TextStyleHtml tsh) {
final bottom = CssBorderSide._copyWith(_all, _bottom)?._getValue(tsh);
final left = CssBorderSide._copyWith(
_all,
_left ??
(tsh.textDirection == TextDirection.ltr
? _inlineStart
: _inlineEnd))
?._getValue(tsh);
final right = CssBorderSide._copyWith(
_all,
_right ??
(tsh.textDirection == TextDirection.ltr
? _inlineEnd
: _inlineStart))
?._getValue(tsh);
final top = CssBorderSide._copyWith(_all, _top)?._getValue(tsh);
if (bottom == null && left == null && right == null && top == null) {
return null;
}
return Border(
bottom: bottom ?? BorderSide.none,
left: left ?? BorderSide.none,
right: right ?? BorderSide.none,
top: top ?? BorderSide.none,
);
}
}
/// A side of a border of a box.
@immutable
class CssBorderSide {
/// The color of this side of the border.
final Color? color;
/// The style of this side of the border.
final TextDecorationStyle? style;
/// The width of this side of the border.
final CssLength? width;
/// Creates the side of a border.
const CssBorderSide({this.color, this.style, this.width});
/// A border that is not rendered.
static const none = CssBorderSide();
BorderSide? _getValue(TextStyleHtml tsh) => identical(this, none)
? null
: BorderSide(
color: color ?? tsh.style.color ?? const BorderSide().color,
// TODO: add proper support for other border styles
style: style != null ? BorderStyle.solid : BorderStyle.none,
width: width?.getValue(tsh) ?? 0.0,
);
static CssBorderSide? _copyWith(CssBorderSide? base, CssBorderSide? value) =>
base == null || identical(value, none)
? value
: value == null
? base
: CssBorderSide(
color: value.color ?? base.color,
style: value.style ?? base.style,
width: value.width ?? base.width,
);
}
/// A length measurement.
@immutable
class CssLength {
/// The measurement number.
final double number;
/// The measurement unit.
final CssLengthUnit unit;
/// Creates a measurement.
///
/// [number] must not be negative.
const CssLength(
this.number, [
this.unit = CssLengthUnit.px,
]) : assert(number >= 0);
/// Returns `true` if value is non-zero.
bool get isNotEmpty => number > 0;
/// Calculates value in logical pixel.
double? getValue(TextStyleHtml tsh,
{double? baseValue, double? scaleFactor}) {
double value;
switch (unit) {
case CssLengthUnit.auto:
return null;
case CssLengthUnit.em:
baseValue ??= tsh.style.fontSize;
if (baseValue == null) return null;
value = baseValue * number;
scaleFactor = 1;
break;
case CssLengthUnit.percentage:
if (baseValue == null) return null;
value = baseValue * number / 100;
scaleFactor = 1;
break;
case CssLengthUnit.pt:
value = number * 96 / 72;
break;
case CssLengthUnit.px:
value = number;
break;
}
if (scaleFactor != null) value *= scaleFactor;
return value;
}
@override
String toString() =>
number.toString() + unit.toString().replaceAll('CssLengthUnit.', '');
}
/// A set of length measurements.
@immutable
class CssLengthBox {
/// The bottom measurement.
final CssLength? bottom;
final CssLength? _inlineEnd;
final CssLength? _inlineStart;
final CssLength? _left;
final CssLength? _right;
/// The top measurement.
final CssLength? top;
/// Creates a set.
const CssLengthBox({
this.bottom,
CssLength? inlineEnd,
CssLength? inlineStart,
CssLength? left,
CssLength? right,
this.top,
}) : _inlineEnd = inlineEnd,
_inlineStart = inlineStart,
_left = left,
_right = right;
/// Creates a copy with the given measurements replaced with the new values.
CssLengthBox copyWith({
CssLength? bottom,
CssLength? inlineEnd,
CssLength? inlineStart,
CssLength? left,
CssLength? right,
CssLength? top,
}) =>
CssLengthBox(
bottom: bottom ?? this.bottom,
inlineEnd: inlineEnd ?? _inlineEnd,
inlineStart: inlineStart ?? _inlineStart,
left: left ?? _left,
right: right ?? _right,
top: top ?? this.top,
);
/// Returns `true` if any of the left, right, inline measurements is set.
bool get hasLeftOrRight =>
_inlineEnd?.isNotEmpty == true ||
_inlineStart?.isNotEmpty == true ||
_left?.isNotEmpty == true ||
_right?.isNotEmpty == true;
/// Calculates the left value taking text direction into account.
double? getValueLeft(TextStyleHtml tsh) => (_left ??
(tsh.textDirection == TextDirection.ltr ? _inlineStart : _inlineEnd))
?.getValue(tsh);
/// Calculates the right value taking text direction into account.
double? getValueRight(TextStyleHtml tsh) => (_right ??
(tsh.textDirection == TextDirection.ltr ? _inlineEnd : _inlineStart))
?.getValue(tsh);
}
/// Length measurement units.
enum CssLengthUnit {
/// Special value: auto.
auto,
/// Relative unit: em.
em,
/// Relative unit: percentage.
percentage,
/// Absolute unit: points, 1pt = 1/72th of 1in.
pt,
/// Absolute unit: pixels, 1px = 1/96th of 1in.
px,
}
/// The whitespace behavior.
enum CssWhitespace {
/// Sequences of white space are collapsed.
/// Newline characters in the source are handled the same as other white space.
/// Lines are broken as necessary to fill line boxes.
normal,
/// Sequences of white space are preserved.
/// Lines are only broken at newline characters in the source and at <br> elements.
pre,
}
| 28.14966 | 91 | 0.621315 |
c679f84c442722ea50c6ed1d56b59b685f35c94f | 2,333 | py | Python | models.py | nas3444/capstoneproject | 6653591ecf26fc466a3429969c514563b00f17cd | [
"PostgreSQL",
"MIT"
] | null | null | null | models.py | nas3444/capstoneproject | 6653591ecf26fc466a3429969c514563b00f17cd | [
"PostgreSQL",
"MIT"
] | null | null | null | models.py | nas3444/capstoneproject | 6653591ecf26fc466a3429969c514563b00f17cd | [
"PostgreSQL",
"MIT"
] | null | null | null | from datetime import datetime
import os
from sqlalchemy import Column, String, Integer, create_engine, ForeignKey
from flask_sqlalchemy import SQLAlchemy
import json
from config import DatabaseURI
from flask_migrate import Migrate
# Creating DB
database_path = DatabaseURI.SQLALCHEMY_DATABASE_URI
db = SQLAlchemy()
def setup_db(app, database_path=database_path):
app.config["SQLALCHEMY_DATABASE_URI"] = database_path
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
db.app = app
db.init_app(app)
db.create_all()
migrate = Migrate(app, db)
# Movies Model
class Movie(db.Model):
__tablename__ = 'movies'
id = Column(Integer, primary_key=True)
title = Column(String, nullable=False, unique=True)
image = Column(String)
release_date = Column(db.DateTime)
actors = db.relationship('Actor', backref='Movie',
lazy='dynamic')
def __init__(self, title, image, release_date):
self.title = title
self.image = image
self.release_date = release_date
def insert(self):
db.session.add(self)
db.session.commit()
def update(self):
db.session.commit()
def delete(self):
db.session.delete(self)
db.session.commit()
def format(self):
return {
'id': self.id,
'title': self.title,
'image': self.image,
'release_date': self.release_date
}
# Actors Model
class Actor(db.Model):
___tablename___ = 'actors'
id = Column(Integer, primary_key=True)
name = Column(String, nullable=False, unique=True)
age = Column(Integer)
gender = Column(String)
movie_id = db.Column(db.Integer, db.ForeignKey('movies.id'))
def __init__(self, name, age, gender, movie_id):
self.name = name
self.age = age
self.gender = gender
self.movie_id = movie_id
def insert(self):
db.session.add(self)
db.session.commit()
def update(self):
db.session.commit()
def delete(self):
db.session.delete(self)
db.session.commit()
def format(self):
return {
'id': self.id,
'name': self.name,
'age': self.age,
'gender': self.gender,
'movie_id': self.movie_id
}
| 24.819149 | 73 | 0.621089 |
57f1015bebc342ef538d7de32b3a5d5ec4bfd912 | 4,055 | php | PHP | modules/index.php | domesticjones/hod-exonym | 19aac431e8b8f2bb138c83dffd9d39ff7fc9b80d | [
"MIT"
] | null | null | null | modules/index.php | domesticjones/hod-exonym | 19aac431e8b8f2bb138c83dffd9d39ff7fc9b80d | [
"MIT"
] | 2 | 2020-04-12T04:02:51.000Z | 2021-03-09T10:15:59.000Z | modules/index.php | domesticjones/exonym-docker | 0e0a1f7a427b59db6611d1865cc95a434e5900bd | [
"MIT"
] | null | null | null | <?php
if (!defined('WPINC')) { die; }
// Module Content Wrapper
function ex_wrap($position, $name = 'default', $classes = null, $print = true) {
$output = '';
$classesOuter = ['module'];
if($classes) { array_push($classesOuter, $classes); }
$classesInner = ['module-inner'];
$classesInnerPrint = [];
$styleInline = '';
if($position == 'start' || $position == 'start-modules') {
$stylesBackground = '';
$stylesOuterPrint = [];
$stylesInnerPrint = [];
if($position == 'start-modules') {
$size = get_sub_field('module_size');
$p = get_sub_field('module_padding');
$pad = ['module-pad-t-' . $p['top'], 'module-pad-b-' . $p['bottom'], 'module-pad-l-' . $p['left'], 'module-pad-r-' . $p['right']];
$height = $size['height']['number'];
if($height > 0) { $styleInline .= ' style="min-height: ' . $height . $size['height']['measure'] . ';"'; }
$width = $size['width']['size'];
$constrain = $size['width']['constrain'];
$align = $size['width']['align'];
if($width != 'full' && $constrain) {
array_push($classesOuter, 'module-constrain', 'module-width-' . $width, 'module-align-' . $align);
} else {
array_push($classesInner, 'module-width-' . $width, 'module-align-' . $align);
}
$styleText = get_sub_field('module_text');
array_push($stylesInnerPrint, 'module-text-' . $styleText['size'], 'module-color-' . $styleText['color']);
$styleBg = get_sub_field('module_background');
$styleAni = get_sub_field('module_animate');
if($styleAni['on_enter']) { array_push($stylesOuterPrint, 'animate-on-enter'); }
if($styleAni['on_leave']) { array_push($stylesOuterPrint, 'animate-on-leave'); }
if($styleBg['settings']['color']) { array_push($stylesOuterPrint, 'module-bg-' . $styleBg['settings']['color']); }
if($styleBg['image']) {
$stylesBgInline = [];
$stylesBgClasses = ['module-bg'];
if($styleBg['settings']['parallax']) {
array_push($stylesBgClasses, 'animate-parallax');
array_push($stylesBgClasses, 'animate-z-' . $styleBg['settings']['intensity']);
}
array_push($stylesBgInline, 'background-image: url(' . $styleBg['image']['sizes']['jumbo'] . ')');
array_push($stylesBgInline, 'background-position: ' . $styleBg['settings']['position_x'] . ' ' . $styleBg['settings']['position_y']);
array_push($stylesBgInline, 'opacity: ' . $styleBg['settings']['opacity'] / 100);
$stylesBackground = '<div class="' . implode(' ', $stylesBgClasses) . '" style="' . implode('; ', $stylesBgInline) . '"></div>';
}
$classesInnerPrint = array_merge($classesInner, $pad, $stylesInnerPrint);
}
$id = str_replace(' ', '-', strtolower(get_sub_field('module_id')));
array_push($classesOuter, 'module-' . $name, implode(' ', $stylesOuterPrint));
$output .= '<section id="' . $id . '" class="' . implode(' ', array_merge($classesOuter, $stylesOuterPrint)) . '"' . $styleInline . '>';
if($stylesBackground) { $output .= $stylesBackground; }
$output .= '<div class="' . implode(' ' , $classesInnerPrint) . '">';
} elseif($position == 'end') {
$output .= '</div>';
$output .= '</section>';
} elseif($position == 'start-body') {
$output .= '<article id="' . get_post_type() . '-' . get_the_ID() . '" class="module-wrapper ' . implode(' ', get_post_class()) . '">';
} elseif($position == 'end-body') {
$output .= '</article>';
}
if($print) {
echo $output;
} else {
return $output;
}
}
function ex_content($id = false) {
if(!$id) { $id = $post->ID; }
if(have_rows('content_builder', $id)) {
while(have_rows('content_builder', $id)) {
the_row();
ex_wrap('start-modules');
echo '<p>asdf</p><blockquote><q>Quote Goes Here</q><cite>Person Name</cite></blockquote>';
ex_wrap('end');
}
}
}
| 49.45122 | 143 | 0.560049 |
8ec367be23609de0bc73f2dc1362b49cb256df90 | 2,657 | js | JavaScript | app.js | scutee3/codeview | 47dee987a58d9f5aab0f5c30566d093eca8525e8 | [
"MIT"
] | 3 | 2021-07-02T09:29:45.000Z | 2021-12-26T03:32:18.000Z | app.js | scutee3/codeview | 47dee987a58d9f5aab0f5c30566d093eca8525e8 | [
"MIT"
] | 113 | 2021-05-11T14:45:01.000Z | 2022-03-23T02:23:10.000Z | app.js | scutee3/codeview | 47dee987a58d9f5aab0f5c30566d093eca8525e8 | [
"MIT"
] | 2 | 2021-06-23T15:56:13.000Z | 2021-12-13T11:50:27.000Z | var createError = require("http-errors");
var express = require("express");
var cookieParser = require("cookie-parser");
var logger = require("morgan");
var usersRouter = require("./routes/users");
var problemsRouter = require("./routes/problems");
var interviewsRouter = require("./routes/interviews");
var answersRouter = require("./routes/answers");
var commentsRouter = require("./routes/comments");
var app = express();
// json setup
app.set("json spaces", 2);
app.use(logger("dev"));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.all("*", function (req, res, next) {
// 允许访问header字段
res.header("Access-Control-Expose-Headers", "Total-Count");
// 暂时允许所有跨域请求
res.header("Access-Control-Allow-Origin", "*");
res.header(
"Access-Control-Allow-Headers",
"Content-Type,Content-Length, Authorization, Accept,X-Requested-With"
);
res.header(
"Access-Control-Allow-Methods",
"POST, GET, OPTIONS, PUT, PATCH, DELETE"
);
res.header("Access-Control-Allow-Credentials", "true");
res.header("X-Powered-By", " 3.2.1");
if (req.method === "OPTIONS") res.sendStatus(200);
/*让options请求快速返回*/ else next();
});
var expressJwt = require("express-jwt");
// jwt中间件
app.use(
expressJwt({
credentialsRequired: false,
secret: "codeview", //加密密钥
algorithms: ["HS256"],
}).unless({
path: ["/users", "/tokens"], //添加不需要token验证的路由
})
);
app.get("/", function (req, res) {
var port = app.get("port") === 80 ? "" : app.get("port");
var url = `${req.protocol}://${req.hostname}:${port}`;
var ans = {
login_url: "/tokens",
users_url: "/users?{id, name, email, page, per_page}",
problems_url: "/problems?{iid, pid, word, page, per_page}",
interviews_url: "/interviews?{id, role, page, per_page}",
answers_url: "/answers?{iid, role, page, per_page}",
comments_url: "/comments?{iid, cid, since, page, per_page}",
};
Object.keys(ans).map((key) => (ans[key] = url + ans[key]));
res.status(200).json(ans);
});
app.get("/test", function (req, res) {
res.send("测试自动部署!");
});
app.use(["/users", "/tokens"], usersRouter);
app.use("/problems", problemsRouter);
app.use("/interviews", interviewsRouter);
app.use("/answers", answersRouter);
app.use("/comments", commentsRouter);
// catch 404 and forward to error handler
app.use(function (req, res, next) {
next(createError(404));
});
// error handler
app.use(function (err, req, res) {
res.status(err.status || 500).json({
message: err.message,
documentation_url:
"https://app.swaggerhub.com/apis-docs/tootal/codeview/1.0.0",
});
});
module.exports = app;
| 28.569892 | 73 | 0.650734 |
eecb00638bd38c2254600cae7f1c161d8ec291b0 | 4,909 | go | Go | vendor/github.com/hashicorp/terraform/builtin/providers/test/resource_defaults_test.go | pavel-z1/terraform-provider-phpipam | 47bd3b89f37f642350a3b29f071f93a16124776c | [
"Apache-2.0"
] | null | null | null | vendor/github.com/hashicorp/terraform/builtin/providers/test/resource_defaults_test.go | pavel-z1/terraform-provider-phpipam | 47bd3b89f37f642350a3b29f071f93a16124776c | [
"Apache-2.0"
] | null | null | null | vendor/github.com/hashicorp/terraform/builtin/providers/test/resource_defaults_test.go | pavel-z1/terraform-provider-phpipam | 47bd3b89f37f642350a3b29f071f93a16124776c | [
"Apache-2.0"
] | null | null | null | package test
import (
"strings"
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestResourceDefaults_basic(t *testing.T) {
resource.UnitTest(t, resource.TestCase{
Providers: testAccProviders,
CheckDestroy: testAccCheckResourceDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
}
`),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_string", "default string",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_bool", "1",
),
resource.TestCheckNoResourceAttr(
"test_resource_defaults.foo", "nested.#",
),
),
},
},
})
}
func TestResourceDefaults_change(t *testing.T) {
resource.UnitTest(t, resource.TestCase{
Providers: testAccProviders,
CheckDestroy: testAccCheckResourceDestroy,
Steps: []resource.TestStep{
{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
}
`),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_string", "default string",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_bool", "1",
),
resource.TestCheckNoResourceAttr(
"test_resource_defaults.foo", "nested.#",
),
),
},
{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
default_string = "new"
default_bool = false
nested {
optional = "nested"
}
}
`),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_string", "new",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_bool", "false",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.#", "1",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.2950978312.optional", "nested",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.2950978312.string", "default nested",
),
),
},
{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
default_string = "new"
default_bool = false
nested {
optional = "nested"
string = "new"
}
}
`),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_string", "new",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_bool", "false",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.#", "1",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.782850362.optional", "nested",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.782850362.string", "new",
),
),
},
},
})
}
func TestResourceDefaults_inSet(t *testing.T) {
resource.UnitTest(t, resource.TestCase{
Providers: testAccProviders,
CheckDestroy: testAccCheckResourceDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
nested {
optional = "val"
}
}
`),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_string", "default string",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "default_bool", "1",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.2826070548.optional", "val",
),
resource.TestCheckResourceAttr(
"test_resource_defaults.foo", "nested.2826070548.string", "default nested",
),
),
},
},
})
}
func TestResourceDefaults_import(t *testing.T) {
// FIXME: The ReadResource after ImportResourceState sin't returning the
// complete state, yet the later refresh does.
return
resource.UnitTest(t, resource.TestCase{
Providers: testAccProviders,
CheckDestroy: testAccCheckResourceDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: strings.TrimSpace(`
resource "test_resource_defaults" "foo" {
nested {
optional = "val"
}
}
`),
},
{
ImportState: true,
ImportStateVerify: true,
ResourceName: "test_resource_defaults.foo",
},
},
})
}
func TestDefaults_emptyString(t *testing.T) {
config := `
resource "test_resource_defaults" "test" {
default_string = ""
}
`
resource.UnitTest(t, resource.TestCase{
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("test_resource_defaults.test", "default_string", ""),
),
},
},
})
}
| 25.045918 | 89 | 0.678753 |
4b68327de115fb63425fb394ef35d2566477cad3 | 4,240 | cpp | C++ | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | bhushanasati25/College | 638ab4f038a783beae297652623e8c6679465fef | [
"MIT"
] | 4 | 2020-10-22T15:37:09.000Z | 2022-02-17T17:30:03.000Z | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | null | null | null | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | 5 | 2021-06-19T01:23:18.000Z | 2022-02-26T14:47:15.000Z | // Write C/C++ program for storing matrix. Write functions for
// 1. Check whether given matrix is upper triangular or not
// 2. Compute summation of diagonal elements
// 3. Compute transpose of matrix
// 4. Add, subtract and multiply two matrices
// Author: Mohit Khedkar
#include<iostream>
using namespace std;
void diagonal(int[3][3]);
void triangular(int[3][3]);
void transpose(int[3][3]);
void arithmatic(int[3][3]);
int main()
{ int mat[3][3], choice;
cout<<"\nEnter the elements in matrix";
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cin>>mat[i][j];
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cout<<mat[i][j]<<"\t";
}
cout<<"\n";
}
cout<<"\nMENU\n 1) To check for diagonal elements \n 2) To check for upper triangular matrix \n 3) Transpose \n 4) Arithmatic operations\n";
cin>>choice;
switch(choice)
{
case 1 :diagonal(mat);
break;
case 2 :triangular(mat);
break;
case 3 :transpose(mat);
break;
case 4 :arithmatic(mat);
break;
default : cout<<"\nEnter the valid option!!!";
break;
}
return 0;
}
void diagonal(int mat[3][3])
{ int a=0;
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
if(i==j&&mat[i][j]==0)
{
a++;
}
}
}
if(a==3){
cout<<"\nIt is a diagonal matrix";}
else
cout<<"\nIt is not a diagonal matrix";
}
void triangular(int mat[3][3])
{int b=0;
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
if(i>j&&mat[i][j]==0)
{
b++;
}
}
}
if(b==3)
{cout<<"\nIt is an upper triangular matrix\n";
}
else
cout<<"It is not an upper traingular matrix";
}
void transpose(int mat[3][3])
{for(int j=0;j<3;j++)
{
for(int i=0;i<3;i++)
{
cout<<mat[i][j]<<"\t";
}
cout<<"\n";
}
}
void arithmatic(int mat[3][3])
{ int art[3][3],choice, mut[3][3],sum[3][3],sub[3][3];
cout<<"\nEnter the values in another matrix\n";
for(int k=0;k<3;k++)
{
for(int l=0;l<3;l++)
{
cin>>art[k][l];
cout<<" ";
}
}
cout<<"1)Addition \n 2) Subtraction \n 3) Multiplication";
cout<<"\nChoose the operation you want to perform : ";
cin>>choice;
switch(choice)
{
case 1 : for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
sum[i][j]=mat[i][j]+art[i][j];
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cout<<sum[i][j]<<"\t";
}
cout<<"\n";
}
break;
case 2 :for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
sub[i][j]=mat[i][j]-art[i][j];
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cout<<sub[i][j]<<"\t";
}
cout<<"\n";
}
break;
case 3 :for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
mut[i][j]=0;
}
}
for(int k=0;k<3;k++){
for(int l=0;l<3;l++){
for(int a=0;a<3;a++){
mut[k][l]=mut[k][l]+(mat[l][a]*art[a][k]);
}
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cout<<mut[j][i]<<"\t";
}
cout<<"\n";
}
break;
default : cout<<"\nEnter the valid option!!!";
break;
}
}
| 20.582524 | 143 | 0.365094 |
7fb6301611a4b17d623253f500111e7783160074 | 6,993 | php | PHP | app/view/Proveedor/ViewProveedor.php | DarwinMT/subcompro_studen | bde31c2f47b3cb5a11488bb1db7da7b6ef8ce379 | [
"MIT"
] | null | null | null | app/view/Proveedor/ViewProveedor.php | DarwinMT/subcompro_studen | bde31c2f47b3cb5a11488bb1db7da7b6ef8ce379 | [
"MIT"
] | null | null | null | app/view/Proveedor/ViewProveedor.php | DarwinMT/subcompro_studen | bde31c2f47b3cb5a11488bb1db7da7b6ef8ce379 | [
"MIT"
] | null | null | null | <div ng-controller="logicaproveedor" >
<!--notificaciones-->
<div class="row ">
<div class="col-xs-12 notificaciones" style="position: absolute; z-index: 2000;">
</div>
</div>
<!--notificaciones-->
<div class="container" ng-init="get_permisos();get_proveedore(); get_notificaciones();">
<div class="row">
<div class="col-xs-12">
<h3 ><strong> </strong></h3>
<h3 class="page-header"><strong>{{Titulo}}</strong></h3>
</div>
</div>
<div id="fmr_proveedor" ng-hide=" newandedit=='0' " ng-show=" newandedit=='1' ">
<div class="row">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">DNI : </span>
<input type="text" class="form-control" name="dni_per" id="dni_per" ng-model="dni_per" >
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Nombres : </span>
<input type="text" class="form-control" name="nombre_per" id="nombre_per" ng-model="nombre_per" >
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Appellidos : </span>
<input type="text" class="form-control" name="apellido_per" id="apellido_per" ng-model="apellido_per" >
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Género : </span>
<select class="form-control" name="genero_per" id="genero_per" ng-model="genero_per" >
<option value="M">Masculino</option>
<option value="F">Femenino</option>
</select>
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Dirección : </span>
<input type="text" class="form-control" name="direccion_per" id="direccion_per" ng-model="direccion_per" >
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Teléfono : </span>
<input type="text" class="form-control" name="telefono_per" id="telefono_per" ng-model="telefono_per" >
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Celular : </span>
<input type="text" class="form-control" name="celular_per" id="celular_per" ng-model="celular_per" >
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Correo : </span>
<input type="text" class="form-control" name="correo_per" id="correo_per" ng-model="correo_per" >
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Dirección Op. : </span>
<input type="text" class="form-control" name="direccion_emp_pro" id="direccion_emp_pro" ng-model="direccion_emp_pro" >
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Teléfono Op. : </span>
<input type="text" class="form-control" name="telefono_emp_pro" id="telefono_emp_pro" ng-model="telefono_emp_pro" >
</div>
</div>
</div>
<div class="row">
<div class="text-center col-xs-12">
<button type="button" class="btn btn-sm btn-primary" ng-click=" newandedit='0'; get_proveedore(); " > Registro</button>
<button type="button" ng-disabled="list_permisos.access_save==0 " ng-hide=" aux_edicion!='0' " ng-show=" aux_edicion=='0' " ng-click="int_proveedor();" class="btn btn-sm btn-success"> Guardar</button>
<button type="button" ng-disabled="list_permisos.access_edit==0 " ng-hide=" aux_edicion!='1' " ng-show=" aux_edicion=='1' " ng-click="save_edit();" class="btn btn-sm btn-info"> Guardar</button>
<button type="button" class="btn btn-sm btn-default"> Cancelar</button>
</div>
</div>
</div>
<div id="list_proveedor" ng-hide=" newandedit=='1' " ng-show=" newandedit=='0' " >
<div class="row">
<div class="col-xs-4">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i class="glyphicon glyphicon-search"></i></span>
<input type="text" class="form-control" name="txt_buscar" ng-keyup="get_proveedore();" id="txt_buscar" ng-model="txt_buscar" >
</div>
</div>
<div class="col-xs-4">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1" >Estado </span>
<select class="form-control" name="cmb_estado" ng-change="get_proveedore();" id="cmb_estado" ng-model="cmb_estado">
<option value="1">Activo</option>
<option value="0">Inactivo</option>
</select>
</div>
</div>
<div class="col-xs-4">
<button class="btn btn-primary " ng-click="get_proveedore();"><i class="glyphicon glyphicon-search"></i></button>
<button class="btn btn-primary " ng-click=" newandedit='1'; aux_edicion='0'; clear_data(); ">Nuevo</button>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<table class="table table-bordered table-condensend">
<thead>
<tr class="btn-primary">
<th></th>
<th>Dni</th>
<th>Proveedor</th>
<th>Teléfono</th>
<th>Dirección</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat=" p in lista_proveedor">
<td>{{$index+1}}</td>
<td>{{p.dni_per}}</td>
<td>{{p.apellido_per+' '+p.nombre_per}}</td>
<td>{{p.telefono_per}}</td>
<td>{{p.direccion_per}}</td>
<td>
<button type="button" class="btn btn-primary" ng-click="init_edit(p);"><i class="glyphicon glyphicon-pencil"></i></button>
<button type="button" class="btn btn-danger" ng-disabled="list_permisos.access_delete==0 " ng-click=" activar_inactivar(p); " ><i class="glyphicon glyphicon-trash"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal fade" id="sms" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header btn-primary">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Mensaje</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12">
<strong>{{Mensaje}}</strong>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</div>
</div> | 36.046392 | 206 | 0.597598 |
4030951d92524931c1594c4de2a846e318de9aa1 | 933 | rb | Ruby | spec/commands/get_ready_files_command_spec.rb | cobaltroad/hotfolder | 0c5f1997d98035b351e493b19e394ed2a2ea79d0 | [
"MIT"
] | null | null | null | spec/commands/get_ready_files_command_spec.rb | cobaltroad/hotfolder | 0c5f1997d98035b351e493b19e394ed2a2ea79d0 | [
"MIT"
] | null | null | null | spec/commands/get_ready_files_command_spec.rb | cobaltroad/hotfolder | 0c5f1997d98035b351e493b19e394ed2a2ea79d0 | [
"MIT"
] | null | null | null | require 'spec_helper'
describe Hotfolder::GetReadyFilesCommand do
describe '.execute' do
before do
allow_any_instance_of(Hotfolder::Hotfile)
.to receive(:now)
.and_return now
end
let(:body) do
hash = YAML.load_file("spec/fixtures/get_valid_files.yml")
hash.to_json
end
let(:response) { double('HTTP response', body: body) }
let(:username) { 'goku' }
let(:new_files) { Hotfolder::Hotfile.build_from_response(response, username) }
let(:delay_seconds) { 86400 }
let(:subject) { described_class.execute(new_files, delay_seconds) }
context 'too soon for some files' do
let(:now) { Time.parse('2016-02-09T23:00:00Z').to_i }
specify { expect(subject.length).to eq 6 }
end
context 'late enough for all files' do
let(:now) { Time.parse('2016-02-11T23:00:00Z').to_i }
specify { expect(subject.length).to eq 8 }
end
end
end
| 27.441176 | 82 | 0.652733 |
54e80a2e7513849abb5df86a7f94d36c0259d8eb | 497 | go | Go | http.go | Chyroc/163-opencourse-download | 56f09fae9c6947f097df2e2c1d1af05ca7c7d352 | [
"Apache-2.0"
] | 1 | 2020-01-25T13:12:09.000Z | 2020-01-25T13:12:09.000Z | http.go | Chyroc/163-opencourse-download | 56f09fae9c6947f097df2e2c1d1af05ca7c7d352 | [
"Apache-2.0"
] | 1 | 2020-02-26T05:24:26.000Z | 2020-02-26T05:24:26.000Z | http.go | chyroc/163-opencourse-download | 56f09fae9c6947f097df2e2c1d1af05ca7c7d352 | [
"Apache-2.0"
] | null | null | null | package main
import (
"io/ioutil"
"net/http"
"golang.org/x/text/encoding/simplifiedchinese"
)
func httpGet(url string) (string, error) {
resp, err := http.Get(url)
if err != nil {
return "", err
}
defer resp.Body.Close()
bs, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", err
}
bs, err = gbkToUtf8(bs)
if err != nil {
return "", err
}
return string(bs), nil
}
func gbkToUtf8(s []byte) ([]byte, error) {
return simplifiedchinese.GBK.NewDecoder().Bytes(s)
}
| 15.060606 | 51 | 0.635815 |
42bb38cae3192af49826edf667ac6c61852f63de | 301 | kt | Kotlin | src/main/kotlin/com/cognifide/gradle/aem/instance/provision/ProvisionException.kt | sabberworm/gradle-aem-plugin | a689527570707c826a40b1b0fd081c8cb8087f5c | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/cognifide/gradle/aem/instance/provision/ProvisionException.kt | sabberworm/gradle-aem-plugin | a689527570707c826a40b1b0fd081c8cb8087f5c | [
"Apache-2.0"
] | null | null | null | src/main/kotlin/com/cognifide/gradle/aem/instance/provision/ProvisionException.kt | sabberworm/gradle-aem-plugin | a689527570707c826a40b1b0fd081c8cb8087f5c | [
"Apache-2.0"
] | null | null | null | package com.cognifide.gradle.aem.instance.provision
import com.cognifide.gradle.aem.common.instance.InstanceException
open class ProvisionException : InstanceException {
constructor(message: String, cause: Throwable) : super(message, cause)
constructor(message: String) : super(message)
}
| 27.363636 | 74 | 0.790698 |
5d0c3b90f20d4d8285413757a86b5a10ca171c7a | 16,731 | cpp | C++ | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/lush-pop | cdfe9d7b6a7ebb89ba036ab9a4f07d8db6817355 | [
"MIT"
] | 64 | 2020-07-08T18:49:29.000Z | 2022-03-23T22:58:49.000Z | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 1 | 2021-04-02T04:39:45.000Z | 2021-09-25T11:53:18.000Z | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 11 | 2020-12-04T18:19:11.000Z | 2022-01-10T08:50:08.000Z | /*
* Copyright 2012 Marco Martin <[email protected]>
* Copyright 2014 David Edmundson <[email protected]>
* Copyright 2016 Smith AR <[email protected]>
* Michail Vourlakos <[email protected]>
*
* This file is part of Latte-Dock and is a Fork of PlasmaCore::IconItem
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "iconitem.h"
// local
#include "extras.h"
// Qt
#include <QDebug>
#include <QPainter>
#include <QPaintEngine>
#include <QQuickWindow>
#include <QPixmap>
#include <QSGSimpleTextureNode>
#include <QuickAddons/ManagedTextureNode>
// KDE
#include <KIconTheme>
#include <KIconThemes/KIconLoader>
#include <KIconThemes/KIconEffect>
namespace Latte {
IconItem::IconItem(QQuickItem *parent)
: QQuickItem(parent),
m_lastValidSourceName(QString()),
m_smooth(false),
m_active(false),
m_textureChanged(false),
m_sizeChanged(false),
m_usesPlasmaTheme(false),
m_colorGroup(Plasma::Theme::NormalColorGroup)
{
setFlag(ItemHasContents, true);
connect(KIconLoader::global(), SIGNAL(iconLoaderSettingsChanged()),
this, SIGNAL(implicitWidthChanged()));
connect(KIconLoader::global(), SIGNAL(iconLoaderSettingsChanged()),
this, SIGNAL(implicitHeightChanged()));
connect(this, &QQuickItem::enabledChanged,
this, &IconItem::enabledChanged);
connect(this, &QQuickItem::windowChanged,
this, &IconItem::schedulePixmapUpdate);
connect(this, SIGNAL(overlaysChanged()),
this, SLOT(schedulePixmapUpdate()));
connect(this, SIGNAL(providesColorsChanged()),
this, SLOT(schedulePixmapUpdate()));
//initialize implicit size to the Dialog size
setImplicitWidth(KIconLoader::global()->currentSize(KIconLoader::Dialog));
setImplicitHeight(KIconLoader::global()->currentSize(KIconLoader::Dialog));
setSmooth(true);
}
IconItem::~IconItem()
{
}
void IconItem::setSource(const QVariant &source)
{
if (source == m_source) {
return;
}
m_source = source;
QString sourceString = source.toString();
// If the QIcon was created with QIcon::fromTheme(), try to load it as svg
if (source.canConvert<QIcon>() && !source.value<QIcon>().name().isEmpty()) {
sourceString = source.value<QIcon>().name();
}
if (!sourceString.isEmpty()) {
setLastValidSourceName(sourceString);
setLastLoadedSourceId(sourceString);
//If a url in the form file:// is passed, take the image pointed by that from disk
QUrl url(sourceString);
if (url.isLocalFile()) {
m_icon = QIcon();
m_imageIcon = QImage(url.path());
m_svgIconName.clear();
m_svgIcon.reset();
} else {
if (!m_svgIcon) {
m_svgIcon = std::make_unique<Plasma::Svg>(this);
m_svgIcon->setColorGroup(m_colorGroup);
m_svgIcon->setStatus(Plasma::Svg::Normal);
m_svgIcon->setUsingRenderingCache(false);
m_svgIcon->setDevicePixelRatio((window() ? window()->devicePixelRatio() : qApp->devicePixelRatio()));
connect(m_svgIcon.get(), &Plasma::Svg::repaintNeeded, this, &IconItem::schedulePixmapUpdate);
}
if (m_usesPlasmaTheme) {
//try as a svg icon from plasma theme
m_svgIcon->setImagePath(QLatin1String("icons/") + sourceString.split('-').first());
m_svgIcon->setContainsMultipleImages(true);
//invalidate the image path to recalculate it later
} else {
m_svgIcon->setImagePath(QString());
}
//success?
if (m_svgIcon->isValid() && m_svgIcon->hasElement(sourceString)) {
m_icon = QIcon();
m_svgIconName = sourceString;
//ok, svg not available from the plasma theme
} else {
//try to load from iconloader an svg with Plasma::Svg
const auto *iconTheme = KIconLoader::global()->theme();
QString iconPath;
if (iconTheme) {
iconPath = iconTheme->iconPath(sourceString + QLatin1String(".svg")
, static_cast<int>(qMin(width(), height()))
, KIconLoader::MatchBest);
if (iconPath.isEmpty()) {
iconPath = iconTheme->iconPath(sourceString + QLatin1String(".svgz")
, static_cast<int>(qMin(width(), height()))
, KIconLoader::MatchBest);
}
} else {
qWarning() << "KIconLoader has no theme set";
}
if (!iconPath.isEmpty()) {
m_svgIcon->setImagePath(iconPath);
m_svgIconName = sourceString;
//fail, use QIcon
} else {
//if we started with a QIcon use that.
m_icon = source.value<QIcon>();
if (m_icon.isNull()) {
m_icon = QIcon::fromTheme(sourceString);
}
m_svgIconName.clear();
m_svgIcon.reset();
m_imageIcon = QImage();
}
}
}
} else if (source.canConvert<QIcon>()) {
m_icon = source.value<QIcon>();
m_iconCounter++;
setLastLoadedSourceId("_icon_"+QString::number(m_iconCounter));
m_imageIcon = QImage();
m_svgIconName.clear();
m_svgIcon.reset();
} else if (source.canConvert<QImage>()) {
m_imageIcon = source.value<QImage>();
m_iconCounter++;
setLastLoadedSourceId("_image_"+QString::number(m_iconCounter));
m_icon = QIcon();
m_svgIconName.clear();
m_svgIcon.reset();
} else {
m_icon = QIcon();
m_imageIcon = QImage();
m_svgIconName.clear();
m_svgIcon.reset();
}
if (width() > 0 && height() > 0) {
schedulePixmapUpdate();
}
emit sourceChanged();
emit validChanged();
}
QVariant IconItem::source() const
{
return m_source;
}
void IconItem::setLastLoadedSourceId(QString id)
{
if (m_lastLoadedSourceId == id) {
return;
}
m_lastLoadedSourceId = id;
}
QString IconItem::lastValidSourceName()
{
return m_lastValidSourceName;
}
void IconItem::setLastValidSourceName(QString name)
{
if (m_lastValidSourceName == name || name == "" || name == "application-x-executable") {
return;
}
m_lastValidSourceName = name;
emit lastValidSourceNameChanged();
}
void IconItem::setColorGroup(Plasma::Theme::ColorGroup group)
{
if (m_colorGroup == group) {
return;
}
m_colorGroup = group;
if (m_svgIcon) {
m_svgIcon->setColorGroup(group);
}
emit colorGroupChanged();
}
Plasma::Theme::ColorGroup IconItem::colorGroup() const
{
return m_colorGroup;
}
void IconItem::setOverlays(const QStringList &overlays)
{
if (overlays == m_overlays) {
return;
}
m_overlays = overlays;
emit overlaysChanged();
}
QStringList IconItem::overlays() const
{
return m_overlays;
}
bool IconItem::isActive() const
{
return m_active;
}
void IconItem::setActive(bool active)
{
if (m_active == active) {
return;
}
m_active = active;
if (isComponentComplete()) {
schedulePixmapUpdate();
}
emit activeChanged();
}
bool IconItem::providesColors() const
{
return m_providesColors;
}
void IconItem::setProvidesColors(const bool provides)
{
if (m_providesColors == provides) {
return;
}
m_providesColors = provides;
emit providesColorsChanged();
}
void IconItem::setSmooth(const bool smooth)
{
if (smooth == m_smooth) {
return;
}
m_smooth = smooth;
update();
}
bool IconItem::smooth() const
{
return m_smooth;
}
bool IconItem::isValid() const
{
return !m_icon.isNull() || m_svgIcon || !m_imageIcon.isNull();
}
int IconItem::paintedWidth() const
{
return boundingRect().size().toSize().width();
}
int IconItem::paintedHeight() const
{
return boundingRect().size().toSize().height();
}
bool IconItem::usesPlasmaTheme() const
{
return m_usesPlasmaTheme;
}
void IconItem::setUsesPlasmaTheme(bool usesPlasmaTheme)
{
if (m_usesPlasmaTheme == usesPlasmaTheme) {
return;
}
m_usesPlasmaTheme = usesPlasmaTheme;
// Reload icon with new settings
const QVariant src = m_source;
m_source.clear();
setSource(src);
update();
emit usesPlasmaThemeChanged();
}
void IconItem::updatePolish()
{
QQuickItem::updatePolish();
loadPixmap();
}
QSGNode *IconItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData)
{
Q_UNUSED(updatePaintNodeData)
if (m_iconPixmap.isNull() || width() < 1.0 || height() < 1.0) {
delete oldNode;
return nullptr;
}
ManagedTextureNode *textureNode = dynamic_cast<ManagedTextureNode *>(oldNode);
if (!textureNode || m_textureChanged) {
if (oldNode)
delete oldNode;
textureNode = new ManagedTextureNode;
textureNode->setTexture(QSharedPointer<QSGTexture>(window()->createTextureFromImage(m_iconPixmap.toImage(), QQuickWindow::TextureCanUseAtlas)));
textureNode->setFiltering(smooth() ? QSGTexture::Linear : QSGTexture::Nearest);
m_sizeChanged = true;
m_textureChanged = false;
}
if (m_sizeChanged) {
const auto iconSize = qMin(boundingRect().size().width(), boundingRect().size().height());
const QRectF destRect(QPointF(boundingRect().center() - QPointF(iconSize / 2, iconSize / 2)), QSizeF(iconSize, iconSize));
textureNode->setRect(destRect);
m_sizeChanged = false;
}
return textureNode;
}
void IconItem::schedulePixmapUpdate()
{
polish();
}
void IconItem::enabledChanged()
{
schedulePixmapUpdate();
}
QColor IconItem::backgroundColor() const
{
return m_backgroundColor;
}
void IconItem::setBackgroundColor(QColor background)
{
if (m_backgroundColor == background) {
return;
}
m_backgroundColor = background;
emit backgroundColorChanged();
}
QColor IconItem::glowColor() const
{
return m_glowColor;
}
void IconItem::setGlowColor(QColor glow)
{
if (m_glowColor == glow) {
return;
}
m_glowColor = glow;
emit glowColorChanged();
}
void IconItem::updateColors()
{
QImage icon = m_iconPixmap.toImage();
if (icon.format() != QImage::Format_Invalid) {
float rtotal = 0, gtotal = 0, btotal = 0;
float total = 0.0f;
for(int row=0; row<icon.height(); ++row) {
QRgb *line = (QRgb *)icon.scanLine(row);
for(int col=0; col<icon.width(); ++col) {
QRgb pix = line[col];
int r = qRed(pix);
int g = qGreen(pix);
int b = qBlue(pix);
int a = qAlpha(pix);
float saturation = (qMax(r, qMax(g, b)) - qMin(r, qMin(g, b))) / 255.0f;
float relevance = .1 + .9 * (a / 255.0f) * saturation;
rtotal += (float)(r * relevance);
gtotal += (float)(g * relevance);
btotal += (float)(b * relevance);
total += relevance * 255;
}
}
int nr = (rtotal / total) * 255;
int ng = (gtotal / total) * 255;
int nb = (btotal / total) * 255;
QColor tempColor(nr, ng, nb);
if (tempColor.hsvSaturationF() > 0.15f) {
tempColor.setHsvF(tempColor.hueF(), 0.65f, tempColor.valueF());
}
tempColor.setHsvF(tempColor.hueF(), tempColor.saturationF(), 0.55f); //original 0.90f ???
setBackgroundColor(tempColor);
tempColor.setHsvF(tempColor.hueF(), tempColor.saturationF(), 1.0f);
setGlowColor(tempColor);
}
}
void IconItem::loadPixmap()
{
if (!isComponentComplete()) {
return;
}
const auto size = qMin(width(), height());
//final pixmap to paint
QPixmap result;
if (size <= 0) {
m_iconPixmap = QPixmap();
update();
return;
} else if (m_svgIcon) {
m_svgIcon->resize(size, size);
if (m_svgIcon->hasElement(m_svgIconName)) {
result = m_svgIcon->pixmap(m_svgIconName);
} else if (!m_svgIconName.isEmpty()) {
const auto *iconTheme = KIconLoader::global()->theme();
QString iconPath;
if (iconTheme) {
iconPath = iconTheme->iconPath(m_svgIconName + QLatin1String(".svg")
, static_cast<int>(qMin(width(), height()))
, KIconLoader::MatchBest);
if (iconPath.isEmpty()) {
iconPath = iconTheme->iconPath(m_svgIconName + QLatin1String(".svgz"),
static_cast<int>(qMin(width(), height()))
, KIconLoader::MatchBest);
}
} else {
qWarning() << "KIconLoader has no theme set";
}
if (!iconPath.isEmpty()) {
m_svgIcon->setImagePath(iconPath);
}
result = m_svgIcon->pixmap();
}
} else if (!m_icon.isNull()) {
result = m_icon.pixmap(QSize(static_cast<int>(size), static_cast<int>(size))
* (window() ? window()->devicePixelRatio() : qApp->devicePixelRatio()));
} else if (!m_imageIcon.isNull()) {
result = QPixmap::fromImage(m_imageIcon);
} else {
m_iconPixmap = QPixmap();
update();
return;
}
// Strangely KFileItem::overlays() returns empty string-values, so
// we need to check first whether an overlay must be drawn at all.
// It is more efficient to do it here, as KIconLoader::drawOverlays()
// assumes that an overlay will be drawn and has some additional
// setup time.
for (const QString &overlay : m_overlays) {
if (!overlay.isEmpty()) {
// There is at least one overlay, draw all overlays above m_pixmap
// and cancel the check
KIconLoader::global()->drawOverlays(m_overlays, result, KIconLoader::Desktop);
break;
}
}
if (!isEnabled()) {
result = KIconLoader::global()->iconEffect()->apply(result, KIconLoader::Desktop, KIconLoader::DisabledState);
} else if (m_active) {
result = KIconLoader::global()->iconEffect()->apply(result, KIconLoader::Desktop, KIconLoader::ActiveState);
}
m_iconPixmap = result;
if (m_providesColors && m_lastLoadedSourceId != m_lastColorsSourceId) {
m_lastColorsSourceId = m_lastLoadedSourceId;
updateColors();
}
m_textureChanged = true;
//don't animate initial setting
update();
}
void IconItem::itemChange(ItemChange change, const ItemChangeData &value)
{
QQuickItem::itemChange(change, value);
}
void IconItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
{
if (newGeometry.size() != oldGeometry.size()) {
m_sizeChanged = true;
if (newGeometry.width() > 1 && newGeometry.height() > 1) {
schedulePixmapUpdate();
} else {
update();
}
const auto oldSize = qMin(oldGeometry.size().width(), oldGeometry.size().height());
const auto newSize = qMin(newGeometry.size().width(), newGeometry.size().height());
if (!almost_equal(oldSize, newSize, 2)) {
emit paintedSizeChanged();
}
}
QQuickItem::geometryChanged(newGeometry, oldGeometry);
}
void IconItem::componentComplete()
{
QQuickItem::componentComplete();
schedulePixmapUpdate();
}
}
| 27.931553 | 152 | 0.591298 |
1a8ee7dd5aa6e48537e8cab7ed3b3d6f2943d279 | 979 | py | Python | shopping/views.py | steveshead/django-product-app-v2.0 | 985aee99faf1b76a3eaa9dd75396f2fe930e879f | [
"MIT"
] | null | null | null | shopping/views.py | steveshead/django-product-app-v2.0 | 985aee99faf1b76a3eaa9dd75396f2fe930e879f | [
"MIT"
] | null | null | null | shopping/views.py | steveshead/django-product-app-v2.0 | 985aee99faf1b76a3eaa9dd75396f2fe930e879f | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect
from carton.cart import Cart
from products.models import Product
def add(request):
cart = Cart(request.session)
product = Product.objects.get(id=request.GET.get('id'))
cart.add(product, price=product.price)
return redirect('shopping-cart-show')
def remove(request):
cart = Cart(request.session)
product = Product.objects.get(id=request.GET.get('id'))
cart.remove(product)
return redirect('shopping-cart-show')
def remove_single(request):
cart = Cart(request.session)
product = Product.objects.get(pk=request.GET.get('id'))
cart.remove_single(product)
return redirect('shopping-cart-show')
def clear(request):
cart = Cart(request.session)
product = Product.objects.all()
cart.clear()
return redirect('shopping-cart-show')
def show(request):
return render(request, 'shopping/show-cart.html')
| 25.763158 | 59 | 0.722165 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.