Giter Site home page Giter Site logo

bksystem's People

Contributors

leblue avatar leiflm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

praxnet

bksystem's Issues

SQLite schema of check_delete_user trigger

Views can't be modified. Either convert previous_fav_users to a table or remove the statements, that try to update the view as seen below.

CREATE TRIGGER "check_delete_user"
BEFORE DELETE ON "user_accounts"
FOR EACH ROW
BEGIN
SELECT CASE
WHEN OLD.uid = (SELECT userid FROM current_account_list)
THEN RAISE(ABORT, "Some unpaid products left in current_account_balance. Please make a new bill first.")
END;
DELETE FROM sales WHERE OLD.uid = sales.userid;
END;

show user status in views with color

Certain status codes in the user account list will prevent the user to purchase products. These user should be displayed in a different color.

DB constraints / default values

To avoid error while manipulating the database (adding user, etc.), add default values/constraints for tables where needed.
e.g. missig:

  • defaults to status (user / product).

administration user manual

The following actions should be documented / explained how they can be accomplished. Still there is more than one possible way. Mostly usage of SQL Manager extension for Firefox will be explained to allow administration from various platforms.

  • adding/deleting products to database. including how to set the pictures.
  • adding/deleting user_accounts.
  • create/undo the bill.
  • undo a sale.
  • reset the sales history.

add product status

add status field to database. Purpose is to exclude a product from being listed in the application views without the necessity to delete it from the database. Document status codes and meaning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.