Comments (3)
Better view
from ps-housing.
@Pratco try this
CREATE TABLE IF NOT EXISTS `properties` (
`property_id` int(11) NOT NULL AUTO_INCREMENT,
`owner_citizenid` varchar(50) NOT NULL,
`street` VARCHAR(100) NULL,
`region` VARCHAR(100) NULL,
`description` LONGTEXT NULL,
`has_access` JSON NULL DEFAULT (JSON_ARRAY()), -- [citizenid1, citizenid2, ...]
`extra_imgs` JSON NULL DEFAULT (JSON_ARRAY()),
`furnitures` JSON NULL DEFAULT (JSON_ARRAY()),
`for_sale` boolean NOT NULL DEFAULT 1,
`price` int(11) NOT NULL DEFAULT 0,
`shell` varchar(50) NOT NULL,
`apartment` varchar(50) NULL DEFAULT NULL, -- if NULL then it's a house
`door_data` JSON NULL DEFAULT NULL, -- {"x": 0.0, "y": 0.0, "z": 0.0, "h": 0.0, "length": 0.0, "width": 0.0}
`garage_data` JSON NULL DEFAULT NULL, -- {"x": 0.0, "y": 0.0, "z": 0.0}
PRIMARY KEY (`property_id`),
CONSTRAINT `FK_owner_citizenid` FOREIGN KEY (`owner_citizenid`) REFERENCES `players` (`citizenid`) ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT `UQ_owner_apartment` UNIQUE (`owner_citizenid`, `apartment`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
from ps-housing.
@Pratco try this
CREATE TABLE IF NOT EXISTS `properties` ( `property_id` int(11) NOT NULL AUTO_INCREMENT, `owner_citizenid` varchar(50) NOT NULL, `street` VARCHAR(100) NULL, `region` VARCHAR(100) NULL, `description` LONGTEXT NULL, `has_access` JSON NULL DEFAULT (JSON_ARRAY()), -- [citizenid1, citizenid2, ...] `extra_imgs` JSON NULL DEFAULT (JSON_ARRAY()), `furnitures` JSON NULL DEFAULT (JSON_ARRAY()), `for_sale` boolean NOT NULL DEFAULT 1, `price` int(11) NOT NULL DEFAULT 0, `shell` varchar(50) NOT NULL, `apartment` varchar(50) NULL DEFAULT NULL, -- if NULL then it's a house `door_data` JSON NULL DEFAULT NULL, -- {"x": 0.0, "y": 0.0, "z": 0.0, "h": 0.0, "length": 0.0, "width": 0.0} `garage_data` JSON NULL DEFAULT NULL, -- {"x": 0.0, "y": 0.0, "z": 0.0} PRIMARY KEY (`property_id`), CONSTRAINT `FK_owner_citizenid` FOREIGN KEY (`owner_citizenid`) REFERENCES `players` (`citizenid`) ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT `UQ_owner_apartment` UNIQUE (`owner_citizenid`, `apartment`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Same error :( thanks
from ps-housing.
Related Issues (20)
- Feature Request
- SQL err: 150
- Bug HOT 1
- qb-multicharacter messed up server list so it hangs on loading screen . HOT 1
- Change / Add confirmation for player ID when giving them a buy menu HOT 2
- Config.SkipSelection no longer work in qb-multicharacter HOT 4
- Stuck on loading screen
- ps-housing Garage
- error in consolle when trying to sell a house. HOT 4
- Images not showing up HOT 2
- Image problem HOT 2
- Furniture does not get deleted properly
- Manage property error HOT 1
- Time desync when exiting house HOT 1
- sql
- BUCKETS not working correctly HOT 1
- sql error
- Error when leaving house
- Attempt to index nil vale (global 'lib') HOT 4
- Stashes not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps-housing.