Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement primitive model and API handlers for Category #1360

Merged

Conversation

userlocalhost
Copy link
Member

@userlocalhost userlocalhost commented Jan 27, 2025

This adds new feature that gets together models that has same attribute (feature, purpose and so on).

Note

If you continue to use Database that have been used, you have to run following SQL.

--
-- Table structure for table `category_category`
--
DROP TABLE IF EXISTS `category_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `category_category` (
  `aclbase_ptr_id` int NOT NULL,
  `note` varchar(500) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`aclbase_ptr_id`),
  CONSTRAINT `category_category_aclbase_ptr_id_4e6f53eb_fk_acl_aclbase_id` FOREIGN KEY (`aclbase_ptr_id`) REFERENCES `acl_aclbase` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Table structure for table `entity_entity_categories`
--
DROP TABLE IF EXISTS `entity_entity_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `entity_entity_categories` (
  `id` int NOT NULL AUTO_INCREMENT,
  `entity_id` int NOT NULL,
  `category_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `entity_entity_categories_entity_id_category_id_ffa3df8e_uniq` (`entity_id`,`category_id`),
  KEY `entity_entity_catego_category_id_e3c736d7_fk_category_` (`category_id`),
  CONSTRAINT `entity_entity_catego_category_id_e3c736d7_fk_category_` FOREIGN KEY (`category_id`) REFERENCES `category_category` (`aclbase_ptr_id`),
  CONSTRAINT `entity_entity_catego_entity_id_730558de_fk_entity_en` FOREIGN KEY (`entity_id`) REFERENCES `entity_entity` (`aclbase_ptr_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

rest of work

  • create UI
    • list
    • create
    • edit

@userlocalhost userlocalhost force-pushed the feature/new_application/category branch 2 times, most recently from 00394c3 to 1f5681f Compare January 27, 2025 05:15
This adds new feature that gets together models that has same attribute
(feature, purpose and so on).
@userlocalhost userlocalhost force-pushed the feature/new_application/category branch from 1f5681f to c3167d9 Compare January 27, 2025 05:35
Copy link

github-actions bot commented Feb 5, 2025

⚡ ⚡ ⚡ Now the latest apiv2 client npm package is available at:
https://github.com/dmm-com/airone/pkgs/npm/airone-apiclient-typescript-fetch/versions

Copy link
Contributor

@hinashi hinashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hinashi hinashi merged commit 971e0bd into dmm-com:master Feb 5, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants