Skip to content

Instantly share code, notes, and snippets.

@gumacahin
Created July 15, 2012 01:37
Show Gist options
  • Save gumacahin/3114322 to your computer and use it in GitHub Desktop.
Save gumacahin/3114322 to your computer and use it in GitHub Desktop.
application/modules/Car/settings/my.sql
-- Cars/settings/my.sql
DROP TABLE IF EXISTS engine4_car_cars;
CREATE TABLE engine4_car_cars (
car_id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
title VARCHAR(128) NOT NULL,
description MEDIUMTEXT NOT NULL,
owner_id INT(11) UNSIGNED NOT NULL,
owner_type INT(11) UNSIGNED NOT NULL,
photo_id INT(11) UNSIGNED NOT NULL,
creation_date DATETIME NOT NULL,
modified_date DATETIME NOT NULL,
view_count INT(11) UNSIGNED NOT NULL,
comment_count INT(11) UNSIGNED NOT NULL,
search TINYINT(1) NOT NULL,
PRIMARY KEY (car_id),
INDEX (photo_id),
INDEX (owner_id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment