Database table creation rules


Table name writing system:
  • Module name is the prefix of table name.
  • Each and every table name will start with module prefix and continue by underscore (_).
  • If table name is as like as module name/prefix then table name will be module_prefix.
  • All table name contains small letters and join by underscore.

Column name writing system:
  • There was must be 5 default column in each table. Default column are (sl, ip, time_created, time_updated, time_deleted)
  • sl is Index of each table and will be integers, auto increment
  • ip is saved as long integers so filed is created as long integers.
  • time_created column created as timestamp and it saved row created time as UTC time zone, BikxTime will saved this timestamp automatically, if developer use "query" object.
  • time_updated column created as timestamp and it saved row created time as UTC time zone, BikxTime will update this timestamp automatically.  if developer use "query" object.
  • time_deleted column created as timestamp and it saved row created time as UTC time zone, BikxTime will update this timestamp automatically.  if developer use "query" object. It is a soft delete option. BikxTime never delete any rows. If time_deleted value is present it will act as deleted row.
  • st is a Varcharector string 20 character length. It is status column of each row.
  • Customize column will continue with full string with singular forms. Each word connect with underscore.
  • Name will goes as details as possible.

Comments