Skip to content

Instantly share code, notes, and snippets.

@ayax79
Created January 5, 2012 23:54
Show Gist options
  • Save ayax79/1568058 to your computer and use it in GitHub Desktop.
Save ayax79/1568058 to your computer and use it in GitHub Desktop.
mysql> desc companies_users;
+--------------+--------------------------------------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------------------------------+------+-----+-------------------+-----------------------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| company_id | int(10) unsigned | NO | MUL | NULL | |
| user_id | int(10) unsigned | NO | | NULL | |
| access_level | enum('normal','admin','creator') | NO | MUL | normal | |
| status | enum('enabled','disabled','deleted') | NO | MUL | enabled | |
| created | datetime | NO | | NULL | |
| modified | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
+--------------+--------------------------------------+------+-----+-------------------+-----------------------------+
7 rows in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment