-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_registration.install
More file actions
46 lines (42 loc) · 948 Bytes
/
user_registration.install
File metadata and controls
46 lines (42 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @file
* Install, schema functions for the user_registration module.
*/
/**
* Implements hook_schema().
*
* Defines the database tables used by this module.
*
* @see hook_schema()
*
* @ingroup user_registration
*/
function user_registration_schema() {
$schema['user_custom_details'] = [
'description' => 'Table about custom data info',
'fields' => [
'id' => [
'type' => 'serial',
'not null' => TRUE,
'unsigned' => TRUE,
'description' => 'Primary Key: Unique Record ID.',
],
'full_name' => [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Full Name',
],
'phone_number' => [
'type' => 'varchar',
'length' => 30,
'not null' => TRUE,
'description' => 'Phone Number',
],
],
'primary key' => ['id'],
];
return $schema;
}